fa-ribeiro / dokuwiki-plugin-socialite Goto Github PK
View Code? Open in Web Editor NEWLightweight social buttons plugin for dokuwiki
License: GNU General Public License v2.0
Lightweight social buttons plugin for dokuwiki
License: GNU General Public License v2.0
Socialite Plugin for DokuWiki Lightweight responsive social buttons All documentation for this plugin can be found at https://www.dokuwiki.org/plugin:socialite If you install this plugin manually, make sure it is installed in lib/plugins/socialite/ - if the folder is called different it will not work! Please refer to http://www.dokuwiki.org/plugins for additional info on how to install plugins in DokuWiki. ---- Copyright (C) Fernando Ribeiro <[email protected]> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. See the COPYING file in your DokuWiki folder for details
Icons doesn't display in Firefox, probably due to .ico format.
Why don't you use png format ?
Locialite
. Typo?
Update
does not make the message go away..svg images missing for StumbleUpon, Taringa, Xing in
https://github.com/fa-ribeiro/dokuwiki-plugin-socialite/tree/master/images
Hello,
Nice plugin, I like it, very useful in my blog section :) Thanks for your work.
It is possible to add social network ? I use Mastodon, Diaspora and Movim, and if I can share my article with a simple button in this network too, it's wonderful. However, they are federated network so maybe it is more difficult.
I want to use socialite within my blog using the blog-plugin. Blog posts are included by the main blog page. Socialite generate a url of the main page but not the url of the article page.
When inserting socialite in either sidebar or footer, it only shares the sidebar and footer pages, no matter what page I'm on. I am using ~~NOCACHE~~
.
Originally posted by @ahaituki in #17 (comment)
I am sort of new to DokuWiki; Is it possible to see this by default on every page?
And in that way "name" and "icon" displays the same. I checked your example page to see if it was an issue with my installation only, but same thing there.
Hello !
I use bootstrap template and a right sidebar.
So I created a righsidebar in wich in want to add "socialite", but link generate use $ID and so I got url to the righsidebar page.
It would be better to be able to use the URL of the current page (corresponding to $_SERVER["HTTP_REFERER"]).
Thanks :)
The social network Google+ does not exist anymore. It should be removed from this plugin.
is it possible to insert socialite on all pages automatically?
Thanks
Hi there,
after the installation (manually and auto) I got this error:
Can't use method return value in write context
Line: 132 and 166
File: syntax/buttons.php
Link: http://stackoverflow.com/questions/1075534/cant-use-method-return-value-in-write-context
I've moved the function calls in 132 and 166 to a temp value and it worked.
Regards,
SkullbocksDE
I just added this to https://pantsonfire.info/start and the icons are displaying vertically instead of horizontally. Even if I only put 2 buttons, it displays vertically.
Illegal string offset 'abstract' in /home/[domain]/public_html/lib/plugins/socialite/syntax/button.php on line 120
I've upgraded to Hogfather, but checking the logs I have this error from before the upgrade
Steps to reproduce:
Have latest dokuwiki installed
Have latest dokuwiki-plugin-socialite installed
Add ~~socialite~~
tag to the page
Validate the page with https://validator.w3.org
Get error:
Error: No
p
element in scope but a p end tag seen.
From line 88, column 1; to line 88, column 4
/li></ul>↩</p>↩↩↩↩
Why this happens and how to fix?
We need to change
<p>
<ul class="socialite">
<li class="icon"><a class="vk" target="_blank" href="...">Vk</a></li>
<li class="icon"><a class="telegram" target="_blank" href="...">Telegram</a></li>
<li class="icon"><a class="facebook" target="_blank" href="...">Facebook</a></li>
<li class="icon"><a class="twitter" target="_blank" href="...">Twitter</a></li>
</ul>
</p>
to
<ul class="socialite">
<li class="icon"><a class="vk" target="_blank" href="...">Vk</a></li>
<li class="icon"><a class="telegram" target="_blank" href="...">Telegram</a></li>
<li class="icon"><a class="facebook" target="_blank" href="...">Facebook</a></li>
<li class="icon"><a class="twitter" target="_blank" href="...">Twitter</a></li>
</ul>
On my local wiki I solved this by fixing <p>
tags with patch below:
--- /tmp/dokuwiki-plugin-socialite/
+++ /var/www/dokuwiki/lib/plugins/socialite/syntax/button.php
@@ -93,13 +93,13 @@
$display = $this->getConf('display') ;
}
- $renderer->doc .= '<ul class="socialite">';
+ $renderer->doc .= '</p><ul class="socialite">';
foreach ($data['networks'] as $network) {
if (in_array($network, $valid_networks)) {
$renderer->doc .= $this->socialite_button($display, $network);
}
}
- $renderer->doc .= '</ul>';
+ $renderer->doc .= '</ul><p>';
return true;
}
Note: the validation problem is also exists on your demo page - check https://validator.w3.org/nu/?doc=https%3A%2F%2Fservidordebian.org%2Fen%2Fblog%2F2015%2F08_24_dokuwiki-plugin-socialite .
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.