Coder Social home page Coder Social logo

dokuwiki-plugin-socialite's Introduction

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

dokuwiki-plugin-socialite's People

Contributors

fa-ribeiro avatar fievel avatar katsube avatar klap-in avatar mjbohn avatar splitbrain avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

dokuwiki-plugin-socialite's Issues

Icons in Firefox

Icons doesn't display in Firefox, probably due to .ico format.
Why don't you use png format ?

[Feature] Add social network

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.

url issue again

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.

Make usable in sidebar/footer

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)

Display: icon shows both icon and name

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.

URL and Sidebar

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 :)

Illegal string offset 'abstract'

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

Adding socialite widgets to the page produce html-code with errors

Steps to reproduce:

  1. Have latest dokuwiki installed

  2. Have latest dokuwiki-plugin-socialite installed

  3. Add ~~socialite~~ tag to the page

  4. Validate the page with https://validator.w3.org

  5. 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 .

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.