Comments (4)
See also https://forum.dokuwiki.org/post/61568
from dokuwiki-plugin-socialite.
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.
The socialite plugin works in ckgedit. Maybe you can adapt that to your needs.
from dokuwiki-plugin-socialite.
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)
- URL and Sidebar
- url issue again HOT 1
- Incorrect metatada? HOT 1
- MIssing images
- Automatically add socialite on all pages? HOT 2
- Display: icon shows both icon and name HOT 2
- Make usable in sidebar/footer HOT 2
- Icons in Firefox HOT 3
- Google+ should be removed
- Adding socialite widgets to the page produce html-code with errors
- Illegal string offset 'abstract'
- Displaying vertically instead of horizontal
- Error: "Can't use method return value in write context" HOT 2
- Is it possible to see this by default on every page? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dokuwiki-plugin-socialite.