Back to vBulletin 3.7 Template Modifications

Bookmark Us on Navbar or footer
Mod Version: 1.00, by Magnumutz

This modification is in the archives.
vB Version: 3.7.x Rating: (6 votes - 4.83 average) Installs: 176
Released: 24 Dec 2007 Last Update: 19 May 2008 Downloads: 220
Not Supported Template Edits Re-usable Code  

Bookmark Us! (Add to Favorites) on Navbar or footer.

Brought to you by the http://haste-network.net/ - Free MMORPG Network


Please mark as "" if you use this modification, thanks !


Q: What this does?
A: It adds a "Bookmark Us" link in your navbar or your footer.

This code is a free source from DynamicDrive.com. Users are NOT allowed to remove the copyrights.

How to install:

In the header template place this at the end of the template:
HTML Code:
<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');
    elem.setAttribute('href',url);
    elem.setAttribute('title',title);
    elem.setAttribute('rel','sidebar');
    elem.click();
} 
else if(document.all)// ie
    window.external.AddFavorite(url, title);
}
</script>
Now, for the navbar version, search the navbar template for:
PHP Code:
    <if condition="$show['registerbutton']">
        <
td class="vbmenu_control"><a href="register.php$session[sessionurl_q]rel="nofollow">$vbphrase[register]</a></td>
    </if> 
After that, add:
PHP Code:
        <td class="vbmenu_control"><a href="javascript:bookmarksite('$vboptions[bbtitle]', '$vboptions[bburl]')">Bookmark Us!</a></td
For the footer version, search the footer template for:
PHP Code:
                <if condition="$show['contactus']"><a href="$vboptions[contactuslink]rel="nofollow" accesskey="9">$vbphrase[contact_us]</a> -</if> 
Above that, add:
PHP Code:
                <a href="javascript:bookmarksite('$vboptions[bbtitle]', '$vboptions[bburl]')">Bookmark Us!</a> - 
That's about it... tested with Firefox and IE6.

Added Installation Instructions file on 19th of May.

Please mark as "" if you use this modification, thanks !

Download

This modification is archived, downloads are still allowed.

File Type: %1$s Bookmark Us Install Instructions.txt (2.1 KB, 191 downloads)

Screenshots

Click image for larger version
Name:	navbar screenshot.JPG
Views:	1506
Size:	10.1 KB
ID:	73788   Click image for larger version
Name:	footer screenshot.JPG
Views:	1570
Size:	6.3 KB
ID:	73789  

Similar Mods

Additional Navbar In Footer vBulletin 3.6 Add-ons

vblts.ru supports vBulletin®, 2022-2024