Back to vBulletin 3.8 Add-ons

Bookmark to favorites
Mod Version: 3.8.4, by tommydamic68

vB Version: 3.8.x Rating: (0 vote - 0 average) Installs: 2
Released: 29 Jan 2012 Last Update: Never Downloads: 0
Not Supported Template Edits Re-usable Code  

Sorry if something like this exists but i thought i would share and welcome any others that may be better or perhaps someone has a better option or recommendation.

About this hack:

This hack puts a bookmark button on your website so users or visitors can automatically bookmark your site to their favorites in their favorite browser. It does not work with Safari but there is a piece in the code which lets them know they must add the bookmark manually.

I have also attached my bookmark i created. Feel free to use it.

Features:

Automatically lets users and guests bookmark your site to their browser favorites so your site is an easy find with a click!

It let's Safari users know that they need to manually add your site in their bookmark favorites. Bookmark buttons generally do not work with Safari.

You can use your own button as well but i have included mine in an attachment.

The code:

This code comes from Dynamicdrive.com but i have obviously modified it to my liking and to work on Vbulletin and my site. You will also probably need to change the position and whether or not you want it in a "fixed" position to your sites layout.

You also need to fill in the red areas with your site name and URL of course and the image source URL. You will also probably need to set the position to your liking as well. I have the position numbers highlighted in red. I basically just played with the positioning to get it where i wanted it on the site. I added the code at the bottom of the ad_header_end template.

<script type="text/javascript">

/***********************************************
* Bookmark site script- © Dynamic Drive DHTML code library (http://www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

/* Modified to support Opera */
function bookmarksite(title,url){
if (window.sidebar) // firefox
window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
var elem = document.createElement('a');
elem.setAttribute('href',url);
elem.setAttribute('title',title);
elem.setAttribute('rel','sidebar');
elem.click();
}
else if(document.all)// ie
window.external.AddFavorite(url, title);
else {
alert("Sorry! Your browser doesn't support this function. Please bookmark this page manually.");
}
}
</script>

<a href="javascript:bookmarksite('YOUR SITE NAME', 'HTTP://WWW.YOURSITEURL.COM/')"><img src="YOUR IMAGE SOURCE" style="position: fixed; top: 150px; left:-5px;"border=0></a>

Download

No files for download.

Screenshots

Click image for larger version
Name:	Screen shot 2012-01-28 at 6.19.13 PM.jpg
Views:	107
Size:	34.8 KB
ID:	136152   Click image for larger version
Name:	book mark alone.png
Views:	93
Size:	8.4 KB
ID:	136155   Click image for larger version
Name:	Screen shot COMPLETE.png
Views:	135
Size:	30.7 KB
ID:	136156  

Similar Mods

favorites smilies vBulletin 2.x Full Releases
Add to Favorites vBulletin 3.5 Template Modifications

vblts.ru supports vBulletin®, 2022-2024