Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Dynamic Bookmark Links 1.0.0 Details »»
Dynamic Bookmark Links 1.0.0
Version: 1.00, by reismarktq2 reismarktq2 is offline
Developer Last Online: Jun 2012 Show Printable Version Email this Page

Version: 3.5.3 Rating:
Released: 02-20-2006 Last Update: 02-20-2006 Installs: 14
Uses Plugins Template Edits
Additional Files  
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 02-24-2006, 03:18 PM
reismarktq2 reismarktq2 is offline
 
Join Date: Feb 2003
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ignore my previous stupidity...

Looks like all the issue is that the path for the image is wrong. You may just want to go into the template for the news block and change it to the correct absolute path. (This doesn't seem to have anything to do with my hack, for those that are reading.)
Reply With Quote
  #23  
Old 02-24-2006, 03:27 PM
klaush klaush is offline
 
Join Date: Oct 2005
Posts: 340
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ups...., sorry, forget it!

I wrote this in the wrong section here!

It´s not your modification!

Just stupid!

Sorry!
Reply With Quote
  #24  
Old 02-24-2006, 03:30 PM
reismarktq2 reismarktq2 is offline
 
Join Date: Feb 2003
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by klaush
Ups...., sorry, forget it!

I wrote this in the wrong section here!

It?s not your modification!

Just stupid!

Sorry!
Yup, I realized my stupidity two seconds after you posted that
Reply With Quote
  #25  
Old 07-06-2006, 12:31 PM
Polo's Avatar
Polo Polo is offline
 
Join Date: Jun 2004
Posts: 893
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks. This mod could come in handy
Reply With Quote
  #26  
Old 05-28-2007, 01:29 AM
reismarktq2 reismarktq2 is offline
 
Join Date: Feb 2003
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have confirmed that this hack is working in vBulletin 3.6.7 PL1 without any edits. Hence, this should work fine for any board in the 3.5 or 3.6 series.
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 11:00 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04281 seconds
  • Memory Usage 2,265KB
  • Queries Executed 20 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (6)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete