Web-based widget for showing the latest posts from a GNU Social profile.
darcs clone https://vervis.peers.community/repos/ZEYKo
darcs clone USERNAME@vervis.peers.community:ZEYKo
GSEmbed is a web-based widget which displays a given GNU Social user’s feed on a website.
How to Use
- Check if a version of jQuery newer than the copy included with GSEmbed is available by visiting jQuery’s website. If so, you are advised download this version and use it instead of the included file.
- Copy the gsembed.js, gsembed.css and jquery-3.3.1.min.js files to a publically accessible location on your website’s server.
- Link to these files in the <head> of any documents on which you wish to include the widget. Order does not matter but make sure to link to jQuery before linking to GSEmbed.
- Add an element to the page with an id attribute. You may wish to add a message to the element which is shown in case GSEmbed is not loaded.
- Visit the desired GNU Social page for the widget and find the Activity Streams link. Copy its address for the next step.
- In any <script> tag after including gsembed.js, add the line gsembed.addWidget(“x”, “y”); to a jQuery function, where x is replaced with the Activity Streams link from step 5 and y is replaced with a hash symbol followed by the id from step 4.
All included documentation and scripts of GSEmbed are available under the Apache License 2.0, with the exception of the jQuery library which is available under the Expat License from jQuery.com.
Copyright © 2018 UltrasonicMadness.