vBulletin Mods

The Official vBulletin Modifications Site

Bookmark to favorites
by tommydamic68
28 Jan 2012 23:36

3 Attachment(s)
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.


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 (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');
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.");

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

dizzynation 31 Jan 2012 08:38

Will try it out

bestone96 29 Feb 2012 11:21

thanks a lot

All times are GMT. The time now is 05:06.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2017, vBulletin Solutions Inc.
Copyright ©2001 - , vbulletin.org. All rights reserved.