Easy Custom Follow Link Integration of Viafoura
- Easy to integrate with any Application working with Viafoura
- Next to zero configuration!!
- Support user login!!
- Create Viafoura user session cookie for you!!
- Support Follow status!
- Currently only support to follow user's comments only(follow article's comments will coming soon)
v 0.1 Released!
- jQuery - This is required by Viafoura Service it self.
Copy ViafouraFollowWidget.js
to your javascript folder.
If you like demos more than a boring documentation see the example.html
file and play with it.
The plugin can be called with jQuery in different ways.
$('.myElement').ViafouraFollowWidget();
any Html container tags(<div>
,<span>
, <td>
) etc. can be used. replace {USERID} with appropriate viafoura user ID
<div class="myElement" data-id="{USERID}"></div>
You can also provide the text in javascript for all link elements:
$('.myElement').ViafouraFollowWidget({
followLabelText:"Follow Link",
unFollowLabelText:"Unfollow Link"
});
You can change the default value for all options.
- followLabelText: Text To show as Follow Link.
- unFollowLabelText: Text To show as Un follow link.
Please send me an email or a tweet @XiiDEA with any feedback you have.
This plugin is my first attempt at a custom widget for Viafoura Integrated System, so any ideas for improvement are welcome.
Contribute!