]> git.mxchange.org Git - friendica-addons.git/commitdiff
Merge pull request #264 from tugelbend/master
authorfabrixxm <fabrix.xm@gmail.com>
Wed, 27 May 2015 13:14:12 +0000 (15:14 +0200)
committerfabrixxm <fabrix.xm@gmail.com>
Wed, 27 May 2015 13:14:12 +0000 (15:14 +0200)
documentation update for pageheader and pledgie addon

pageheader.tgz
pageheader/README
pageheader/pageheader.php
pledgie.tgz
pledgie/README [new file with mode: 0644]
pledgie/pledgie.php

index 209180332763abb40564368ea7fc282667ee9d94..de7fea73e0bcbecef75e7d56f4bcc68f0f77c987 100644 (file)
Binary files a/pageheader.tgz and b/pageheader.tgz differ
index 9ba60788c23bf74ad26b82abbc82303a7ee8c093..d3fbf9eab044fe940e07602dc08cebbd98febd71 100755 (executable)
@@ -5,4 +5,4 @@ Displays a text message for system announcements'
 The message is entered in the admin account at settings, Plugin settings.
 
 If you want to use HTML in the pageheader, create a file called pageheader.html 
-in the document root of your friendica instance and add the html there.
+in the document root of your friendica instance and add the html there.
\ No newline at end of file
index 7c65f8b567598068a23379f0cbf72705a38ab918..173fc707ef3f9e3d7ceb76b8447bfa23d597f72a 100755 (executable)
@@ -50,7 +50,7 @@ function pageheader_addon_settings(&$a,&$s) {
     $s .= '<div class="settings-block">';
     $s .= '<h3>' . t('"pageheader" Settings') . '</h3>';
     $s .= '<div id="pageheader-wrapper">';
-    $s .= '<label id="pageheader-label" for="pageheader-words">' . t('Message to display on every page on this server') . ' </label>';
+    $s .= '<label id="pageheader-label" for="pageheader-words">' . t('Message to display on every page on this server (or put a pageheader.html file in your docroot)') . ' </label>';
     $s .= '<textarea id="pageheader-words" type="text" name="pageheader-words">' . $words . '</textarea>';
     $s .= '</div><div class="clear"></div>';
 
index 48c5e8173d13065b89adedab39602a1cb236afc9..189582923e6588cd9d8779039231737e13fd902a 100644 (file)
Binary files a/pledgie.tgz and b/pledgie.tgz differ
diff --git a/pledgie/README b/pledgie/README
new file mode 100644 (file)
index 0000000..bcc7fe0
--- /dev/null
@@ -0,0 +1,11 @@
+Pledgie
+
+Allows administrators to add a Pledgie-Donation Button to all their friendica pages. 
+This could be useful f.e. for public nodes that want to raise some money for server 
+maintenance costs.
+
+Usage: 
+Add the campaign number of your pledgie campaign in the first field. To find out the campaign number, 
+go to your Pledgie campaign webpage. The campaign number is the number at the end of the URL.
+
+Add a describtion of your campaign in the second field.
\ No newline at end of file
index af72a45fb68f8c34bebccdaa91627787e595c736..986fd986fa6740ae2dfdfec05ad686d358b87f66 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /**
  * Name: Pledgie
- * Description: Show link to Friendica pledgie account for donating
+ * Description: Show link to a pledgie account for donating
  * Version: 1.1
  * Author: tony baldwin <tony@free-haven.org>
  *         Hauke Altmann <https://snarl.de/profile/tugelblend>
@@ -70,7 +70,7 @@ function pledgie_addon_settings_post(&$a,&$b) {
 function pledgie_active(&$a,&$b) {
        $campaign = get_config('pledgie-campaign','text');
        $describe = get_config('pledgie-describe','text');
-       $b .= '<div style="position: fixed; bottom: 5px; left: 60px;">';
+       $b .= '<div style="position: fixed; padding:5px; border-style:dotted; border-width:1px; background-color: white; line-height: 1; bottom: 5px; left: 20px; z-index: 1000; width: 150px; font-size: 12px;">';
        $b .= $describe . '<br/><a href=\'http://www.pledgie.com/campaigns/';
        $b .= $campaign;
        $b .= '\'><img alt=\'Click here to lend your support to: ' . $describe .  '!\' src=\'http://www.pledgie.com/campaigns/';