Facebook Twitter Pinterest Share

vBulletin 3.X Add-ons & Template Modifications All the latest vBulletin 3.X Add-ons & Template Modifications.


New Thread  Post Reply
Smeker's Avatar
Smeker : 50+
Smeker will become famous soon enough
offline Joined: Sep 2007 Posts: 99 Thanked: 21
  #1  
Thread Starter Unread 12-26-07
Bookmark link on Navbar or footer

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


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:
<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:
    <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:
        <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:
                <if condition="$show['contactus']"><a href="$vboptions[contactuslink]rel="nofollow" accesskey="9">$vbphrase[contact_us]</a> -</if> 
Above that, add:
                <a href="javascript:bookmarksite('$vboptions[bbtitle]', '$vboptions[bburl]')">Bookmark Us!</a> - 
That's about it... tested with Firefox and IE6.
Quote
The Following 6 Users Say Thank You to Smeker For This Useful Post:
Abdess's Avatar
Abdess : Newbie
Abdess is on a distinguished road
offline Joined: Sep 2007 Posts: 1 Thanked: 0
  #2  
Unread 12-28-07
It's a good script !
cinneke's Avatar
cinneke : 50+
cinneke has a spectacular aura aboutcinneke has a spectacular aura aboutcinneke has a spectacular aura about
offline Joined: Sep 2007 Posts: 314 Thanked: 67
  #3  
Unread 12-29-07
any screens ? thx
welcome's Avatar
welcome : 50+
welcome is on a distinguished road
offline Joined: Jan 2008 Posts: 56 Thanked: 1
  #4  
Unread 03-11-08
not working for me... on firefox or IE VB 3.6.8 PL2
kaitrac's Avatar
kaitrac : Newbie +
kaitrac is on a distinguished road
offline Joined: Jan 2008 Posts: 13 Thanked: 1
  #5  
Unread 10-20-08
Thanks nice addon!
reggordon's Avatar
reggordon : Newbie +
reggordon is on a distinguished road
offline Joined: Mar 2008 Posts: 6 Thanked: 2
  #6  
Unread 10-21-08
I would be looking to only display the bookmark us link to guests. Would this be possible with this?

thanks
miniman's Avatar
miniman : Member
miniman is on a distinguished road
offline Joined: Apr 2009 Posts: 25 Thanked: 1
  #7  
Unread 04-21-09
works for me v3.6.8 PL2, thanks
New Thread  Post Reply

Thread Tools

Bookmarks
  • Submit Thread to Facebook
  • Submit Thread to Twitter
  • Submit Thread to Pinterest
  • Submit Thread to LinkedIn
  • Submit Thread to Reddit
Tags
footer, navbar, link, bookmark
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Powered by GYSN Underground 2021