Atlanta Intown Web Design

Home arrow Blog arrow How to Add Social Bookmarks to jReviews Templates

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. Use Joomla Social Bookmarking Plugins
  2. Add the code to your jReviews template

1. Joomla Social Bookmarking Plugins
I have personally installed and configured two of the popular social bookmarking plugins Social Bookmarking Buttons Plugin and SocioTag . Both are good and had their pros and cons.  Personally I did not want the extra code and links on my page.  I am not exactly sure of all of the code the plugins add.  My pages are already complex and I try to keep them as simple as possible.  Finally I could not get the button placement exactly where I wanted it.

2. Add the Social Bookmark code to the jReviews template
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 Bookmarks

Decide 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 Script

This 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 Bookmark

The 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. Image 
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 Button

StumbleUpon 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:
  1. <a href="http://www.stumbleupon.com/submit?url=  this section is pretty easy
  2. http://www.yoursite.com/article.php   For this section we need a way to call out the url of the page
  3. &title=The+Article+Title"> For this section we need a way to call out the page title.
  4. <img border=0 src=""**LINK TO stumbleit.gif**"" alt="StumbleUpon Toolbar"> Stumble It!</a> this section is also pretty easy and only needs to be modified with the correct image location and link text.
Here is the solution that I developed:
<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. 
  • {CONTENTURL}    echos the URL of the current page
  • {TITLE} echoes the title of the page
  • {TEMPLATE} like in the Del.icio.us echoes the path of the jReview template.
Note depending if you are use a SEF component or not you will get different results for the {CONTENTURL} I had issues with openSEF but since the project is dead I switched to sh404SEF and have not had any issues.  Not sure what happens with the core Joomla SEF mod.

Wrapping It Up

Once 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 Reviews







Reddit!Google!Technorati!StumbleUpon!Newsvine!
Comments (10)Add Comment
Here is another one...
written by chayes, December 09, 2007
Here is another one...

Link:

http://www.danogo.com/bookmarks

Icon:

http://www.danogo.com/images/danogo_bookmarks.gif
teknik bilisim security systems
written by teknikbil, July 08, 2008
Kamerasistem
written by teknikbil, July 08, 2008
real ilaclama
written by teknikbil, July 08, 2008
Teknik Bilisim Guvenlik Teknolojileri Alarm Sistemlei
written by hasan, July 09, 2008
Alarm Sİstemi,Alarm Sistemleri,Guvenlik Alarmı,Guvenlik Alarmlari,Guvenlik Alarm Sistemleri,Guvenlik Alarm Sistemi.
Teknik Bilisim Alarm Sistemi
written by hasan, July 09, 2008
Guvenlik Kameralari,Guvenlik Sistemleri,Kamera,Kamera Sistemleri,Guvenlik Kamera Sistemi,Guvenlik Kamera Sistemleri.
Social Bookmarking
written by Modulesoft, July 30, 2008
This is a nice posting. I really like this post.
test
written by ads, August 02, 2008
test sadfsf sdfdsfs sdfdsfs
Social Bookmarking
written by Social Bookmarking, August 04, 2008
Thanks for the great post on integrating the social bookmarking plugin in our template.

Write comment
quote
bold
italicize
underline
strike
url
image
quote
quote
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley

busy
 
< Prev   Next >

Newsletter Signup

Keep updated with our FREE newletter now!
* Email
* First Name
* Last Name
* = Required Field

Add the Intown Web Design Blog to your iGoogle Home Page

Add to Google

Atlanta Intown Web Design