CuteNews

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> [TUTORIAL] Social Bookmarks, AddToAny, AddThis
Rating 5 V
FUNimations
post Oct 10 2008, 03:43 PM
Post #1


CuteNews Support Crew Pimp
***

Group: Support
Posts: 16,512
Joined: 28-August 05
From: Belgium
Member No.: 5,662



**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
CODE
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
CODE
<a class="a2a_dd" onmouseover="a2a_show_dropdown(this)" onmouseout="a2a_onMouseOut_delay()" href="http://www.addtoany.com/share_save?linkname=MySite&amp;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"><img src="http://static.addtoany.com/buttons/share_save_171_16.gif" width="171" height="16" border="0" alt="Share/Save/Bookmark"/></a><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
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.
QUOTE
http%3A%2F%2Fwww.domain.com%2Findex.php%3F
this part is changed as it should but this for example
QUOTE
id%3D%7Bnews-id%7D%26
should be rebuild to contain the CuteNews template tags {}
-->
QUOTE
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.


--------------------

General FAQ
Spam Protection In Cutenews
Comments get deleted
_______________________
<< If you appreciate my help
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

 



RSS Lo-Fi Version Time is now: 31st October 2014 - 05:36 PM