How to Add Social Bookmarks to jReviews Templates |
|
There are two main ways to add social bookmark submit buttons to jReviews templates and both are fairly straight forward:
1. Joomla Social Bookmarking Plugins Each social bookmarking system has its own special code to submit the link and information in the correct way. The easier it is for a visitor to add you page the more likely they are to add it. I decided to figure out the code for the most popular social bookmark system. Then I could add this to the jReviews template system. It was a little extra work but now I can add just the links I want, have complete control over the look and placement, and not worry about any unneeded code or links. Adding the Social BookmarksDecide where you want the bookmarks placed. I wanted the bookmark links at the top of the page. So I have reworked my editor header or the authorreviewheader.html file in the jReviews template. One requirement of using this file is you have to have an editor review. If you do not use editor reviews then you coluld modify the user review header file. I have designed my site so that every review item gets an editor review.View the Ceiva 7inch digital photo frame content page to see how the social bookmarks will display. Code to add Digg ScriptThis bookmark was pretty easy to add digg has done all of the work for you by creating a script:
<script src="http://digg.com/tools/diggthis.js"
type="text/javascript"></script>
Digg has plenty of ways to modify this and they can all be found on the Integrate Digg Page Code to add Del.icio.us BookmarkThe del.icio.us code was also pretty easy to add.
<a href="http://del.icio.us/post" onclick="window.open('http://del.icio.us/post?v= 4&noui&jump=close&url='+encodeURIComponent(location.href)+ '&title='+encode
URIComponent(document.title), 'delicious','toolbar=no,width=700,height=400'); return false;" alt="Submit to del.icio.us"><img src="{TEMPLATE}/custom_images/delicious25px.jpg"></a> The Del.icio.us page Save buttons are clearly explained. The only modification made was to the link text. It was changed from "Save This Page" to a shinny Del.ico.us button. Most people who are familiar with social bookmarks know this logo. See how the code calls the the Del.icio.us button image: <img src="{TEMPLATE}/custom_images/delicious25px.jpg"> The {TEMPLATE} is the jReviews template location. If I ever use this jReviews template on another site I do not have to update the location of the image. As long as I have a directory named custom_images in my active jReviews template directory with a file called delicious25px.jpg, the link will display properly Code to add StumbleUpon Submit ButtonStumbleUpon required the most work to get the correct form for the submit link:Here is an example of the required link:
<a href="http://www.stumbleupon.com/submit?url= http://www.yoursite.com/article.php&title=The+Article+Title"> <img border=0 src=""**LINK TO stumbleit.gif**"" alt="StumbleUpon Toolbar"> Stumble It!</a>
The link can be broken into 4 parts:
<a href="http://www.stumbleupon.com/submit?url={CONTENTURL} &title={TITLE}"> <img src="{TEMPLATE}/custom_images/stumbleupon-25px.png"></a>
I again used some of the jReviews template variables to accomplish the task.
Wrapping It UpOnce I had all of the correct links added to my editor header, it was time for some <div> and css action to place and format the links. This is up to you on how you want them to display. You can see all of this code in action at Digital Picture Frame ReviewsComments (10)
![]() written by chayes, December 09, 2007 written by hasan, July 09, 2008
Alarm Sİstemi,Alarm Sistemleri,Guvenlik Alarmı,Guvenlik Alarmlari,Guvenlik Alarm Sistemleri,Guvenlik Alarm Sistemi.
written by hasan, July 09, 2008
Guvenlik Kameralari,Guvenlik Sistemleri,Kamera,Kamera Sistemleri,Guvenlik Kamera Sistemi,Guvenlik Kamera Sistemleri.
written by Modulesoft, July 30, 2008
This is a nice posting. I really like this post.
written by Social Bookmarking, August 04, 2008
Thanks for the great post on integrating the social bookmarking plugin in our template.
Write comment
|
| < Prev | Next > |
|---|
Link:
http://www.danogo.com/bookmarks
Icon:
http://www.danogo.com/images/danogo_bookmarks.gif