Back to vBulletin 3.5 Add-ons

Dynamic Bookmark Links 1.0.0
Mod Version: 1.00, by reismarktq2

This modification is in the archives.
vB Version: 3.5.3 Rating: (0 vote - 0 average) Installs: 14
Released: 21 Feb 2006 Last Update: 21 Feb 2006 Downloads: 19
Not Supported Uses Plugins Template Edits Additional Files  

Dynamic Bookmark Links

This hack will dynamically create a link on each page of your forums that will allow your users to bookmark the page they are currently on. The Javascript function that calls the browser's bookmark tool works with Internet Explorer and with any browser in the Mozilla family (Firefox, Netscape, and the Mozilla suite). I have not tested this hack with Opera or any other alternative browser, or with any version of vBulletin other than the most current (3.5.3 at the time of this writing). I can't imagine it not working with any version of the 3.5 series, however.

Installation

This hack requires:
  • 1 product import
  • 1 file upload
  • 3 template edits
Product Import

Import 'product-dynamic_bookmarks.xml' using vBulletin's Product Management tool. (Expand the Plugin System submenu, select 'Manage Products', then select 'Add/Import Product' at the bottom and use the 'Import Product' dialog.
  • The product XML adds one plug-in at the 'navbits' location to facilitate the creation of the URL and page title for the bookmark, and adds one global phrase.
File Upload

Upload bookmark.gif to your images/misc folder.

Template Edits
  1. In template 'headinclude', find:

    Code:
    <if condition="$vboptions['externalrss']"><link rel="alternate" type="application/rss+xml" title="$vboptions[bbtitle] RSS Feed" href="external.php?type=RSS" /></if>
    Add after:

    Code:
    <!-- Dynamic Bookmark Links -->
    <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
    ***********************************************/
    function bookmarksite(title, url) {
    	if (document.all)
    		window.external.AddFavorite(url, title);
    	else if (window.sidebar)
    		window.sidebar.addPanel(title, url, "");
    }
    </script>
    <!-- /Dynamic Bookmark Links -->
  2. In template 'navbar', find:

    Code:
    		<else />
    			<div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong></div>
    		</if>
    Replace with:

    Code:
    		<else />
    			<div class="navbar" style="font-size:10pt"><a href="$vboptions[forumhome].php$session[sessionurl_q]" accesskey="1"><img class="inlineimg" src="$stylevar[imgdir_misc]/navbits_start.gif" alt="" border="0" /></a> <strong>$vboptions[bbtitle]</strong>
    			<!-- Dynamic Bookmark Links -->
    			<a href="javascript:bookmarksite('$vboptions[bbtitle]', '$vboptions[bburl]')"><img src="$stylevar[imgdir_misc]/bookmark.gif" alt="$vbphrase[bookmark_this_page]" border="0" width="16" height="16" style="vertical-align: bottom;" /></a>
    			<!-- /Dynamic Bookmark Links -->
    			</div>
    		</if>
  3. In template 'navbar_link', find:

    Code:
    <else />
    	$nav_title
    </if>
    Replace with:

    Code:
    <else />
    	$nav_title
    	<!-- Dynamic Bookmark Links -->
    	<a href="javascript:bookmarksite('$booktitle - $vboptions[bbtitle]', '$bookurl')"><img src="$stylevar[imgdir_misc]/bookmark.gif" alt="$vbphrase[bookmark_this_page]" border="0" width="16" height="16" style="vertical-align: bottom;" /></a>
    	<!-- /Dynamic Bookmark Links -->
    </if>
DONE!

I will not be guaranteeing support for this hack, but I will try my best to handle all problems that may arise for you whenever I am online. This hack may only be distributed on vBulletin.org and may not be ported, translated, or otherwise modified and then made available publicily without my consent.

Please don't forget to click after installing this product!

Download

This modification is archived and cannot be downloaded.

Similar Mods

Miscellaneous Hacks Dynamic Amazon Links vBulletin 3.6 Add-ons

vblts.ru supports vBulletin®, 2022-2025