Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Add social network #14

Open
Zatalyz opened this issue Dec 2, 2017 · 4 comments
Open

[Feature] Add social network #14

Zatalyz opened this issue Dec 2, 2017 · 4 comments

Comments

@Zatalyz
Copy link

Zatalyz commented Dec 2, 2017

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.

@turnermm
Copy link

turnermm commented Jul 3, 2018

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

@capiscuas
Copy link

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

@turnermm
Copy link

turnermm commented Jul 2, 2019

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

@Chris75forumname
Copy link

Chris75forumname commented Mar 13, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants