Topic: [TUTORIAL] Social Bookmarks
**OTHER service in next post**
Name: Social bookmarks
Author: FUNimations
CuteNews Compatibility: 1.3.6 - * (no incompatibility reported yet)
Description: Though there are numereous services for this, we'll use 1 as example. The needed info for other services should be the same as given for the example service. (AddToAny)
Instructions:
go to this site
Type: choose for the "Share/Save/Bookmark Widget" to share links to full stories. Or "Subscribe widget" to add the article to your rss news feed reader.
Button: well whatever you want.
Page Name: Name of your site if you like to do that.
Page url: add something like this
http://www.domain.com/index.php?subaction=showfull&id={news-id}&archive={archive-id}&start_from=&ucat={category-id}&
Then there are still some optional configuration settings i'm not going to discus.
Next click: "Get Button Code" and you'll get some code like
[url=h][img]http://static.addtoany.com/buttons/share_save_171_16.gif[/img][/url]<script type="text/javascript">a2a_linkname="MySite";a2a_linkurl="http://www.domain.com/index.php?subaction=showfull&id={news-id}&archive={archive-id}&start_from=&ucat={category-id}&";</script><script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script>
Now this part get's f*cked up in the generated code
linkurl=http%3A%2F%2Fwww.domain.com%2Findex.php%3Fsubaction%3Dshowfull%26id%3D%7Bnews-id%7D%26archive%3D%7Barchive-id%7D%26start_from%3D%26ucat%3D%7Bcategory-id%7D%26"
so make sure to rebuild the url like the one you had to insert in the form.
http%3A%2F%2Fwww.domain.com%2Findex.php%3F
this part is changed as it should but this for example
id%3D%7Bnews-id%7D%26
should be rebuild to contain the CuteNews template tags {}
-->id%3D{news-id}%26
and well, you add it to your full story template. Do not try to add this to your short stories. But if you do want it in the short story (and this is untested!) put the last <script> tag on the page where you have your CN include code and not in the templates.