diff --git a/QvitterPlugin.php b/QvitterPlugin.php index 46fae04..a61ee6f 100644 --- a/QvitterPlugin.php +++ b/QvitterPlugin.php @@ -57,6 +57,10 @@ class QvitterPlugin extends Plugin { // DEFAULT BACKGROUND COLOR $settings['defaultbackgroundcolor'] = '#f4f4f4'; + // DEFAULT BACKGROUND IMAGE + $settings['sitebackground'] = 'img/vagnsmossen.jpg'; + + // DEFAULT LINK COLOR $settings['defaultlinkcolor'] = '#0084B4'; diff --git a/README.md b/README.md index ddb751d..06e532b 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,7 @@ $config['site']['qvitter']['defaultlinkcolor'] = '#0084B4'; $config['site']['qvitter']['timebetweenpolling'] = 5000; $config['site']['qvitter']['urlshortenerapiurl'] = 'http://qttr.at/yourls-api.php'; $config['site']['qvitter']['urlshortenersignature'] = 'b6afeec983'; +$config['site']['qvitter']['sitebackground'] = 'img/vagnsmossen.jpg'; ```` Note: Qvitter is tested with GNU Social version 1.1.1-alpha2 (7e47026085fa4f2071e694d9c3e3fe2aa5142135). @@ -88,4 +89,4 @@ TODO 1. New "expand queet" api for getting conversation, retweets, favs and attachment in the same request -1. Node.js long polling server and an new api that serve aggregate of all polling users requests in one go \ No newline at end of file +1. Node.js long polling server and an new api that serve aggregate of all polling users requests in one go diff --git a/actions/qvitter.php b/actions/qvitter.php index 76081d5..d1d82a7 100644 --- a/actions/qvitter.php +++ b/actions/qvitter.php @@ -181,6 +181,7 @@ class QvitterAction extends ApiAction window.siteInstanceURL = ''; window.defaultLinkColor = ''; window.defaultBackgroundColor = ''; + window.siteBackground = ''; window.urlShortenerAPIURL = ''; window.urlShortenerSignature = ''; window.commonSessionToken = ''; diff --git a/js/qvitter.js b/js/qvitter.js index c1dd749..a5c0974 100644 --- a/js/qvitter.js +++ b/js/qvitter.js @@ -446,7 +446,7 @@ $('#classic-link').click(function(){ function logoutWithoutReload(doShake) { if(window.currentStream == 'statuses/public_timeline.json') { - $('body').css('background-image', 'url(' + window.fullUrlToThisQvitterApp + 'img/vagnsmossen.jpg)'); + $('body').css('background-image', 'url(' + window.fullUrlToThisQvitterApp + window.siteBackground)'); } $('input#nickname').focus();