Coder Social home page Coder Social logo

Comments (4)

turnermm avatar turnermm commented on May 31, 2024

See also https://forum.dokuwiki.org/post/61568

from dokuwiki-plugin-socialite.

capiscuas avatar capiscuas commented on May 31, 2024

I also like a lot this extension and I'd like to be able to share things to Fediverse social networks like Mastodon. In my blog I use this link:
https://surtdelcercle.cat/sharer/?text=TEXT_TO_SHARE&url=URL_TO_SHARE

from dokuwiki-plugin-socialite.

turnermm avatar turnermm commented on May 31, 2024

The socialite plugin works in ckgedit. Maybe you can adapt that to your needs.

from dokuwiki-plugin-socialite.

Chris75forumname avatar Chris75forumname commented on May 31, 2024

This plugin seems to be abandoned as of 2017? Suprisingly, it still works in 2023 (Igor)! However, all those issues mentioned here, still prevail. This plugin is very short and simple! Editing and adding to it, is very straight forward. It is easy as long as you follow the php and css code syntax!
Now, to add a new site to the list of sites, just add a new item to the /dokuwiki/lib/plugins/socialite/button.php > function socialite_button, in simple terms like so:

        case 'test':
            $name = 'Test';
            $href = 'https://test.com';
            break;

Also, add the new site (test) to the $valid_networks array in the same file (/dokuwiki/lib/plugins/socialite/button.php):
https://codesearch.dokuwiki.org/xref/plugin/socialite/syntax/button.php#85

That is basically it!

However, I also found a bug on the plugin page concerning the plugin syntax (fixed by me). It actually works with the : in the page syntax, as expected:

~~socialite: test twitter~~

Before checking out your results of your edits, don't forget to: .../doku.php?id=test_page&purge=true!
You should see your new button in your test_page by now. And the rest is styling (/dokuwiki/lib/plugins/socialite/style.css)!

Cheers!

https://forum.dokuwiki.org/d/20896-adding-a-network-to-socialite-plugin

from dokuwiki-plugin-socialite.

Related Issues (15)

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.