Bookmark to favorites
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 |
Similar Mods
favorites smilies | vBulletin 2.x Full Releases |
Add to Favorites | vBulletin 3.5 Template Modifications |