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
  #2  
Old 02-21-2006, 03:07 PM
reismarktq2 reismarktq2 is offline
 
Join Date: Feb 2003
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

A simple screenshot that tells the whole story:
Reply With Quote
  #3  
Old 02-21-2006, 03:19 PM
D|ver's Avatar
D|ver D|ver is offline
 
Join Date: Feb 2003
Posts: 177
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice idea, thank you
Reply With Quote
  #4  
Old 02-21-2006, 04:01 PM
bashy bashy is offline
 
Join Date: Nov 2005
Posts: 2,544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi

Installed image is showing in firefox but when i click the image nothing happens
Actually i have just tried it in IE and again nothing happens when the image is clicked!
Reply With Quote
  #5  
Old 02-21-2006, 04:04 PM
The Chief's Avatar
The Chief The Chief is offline
 
Join Date: Aug 2005
Location: Montreal
Posts: 1,037
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

good idea, thanks!!
Reply With Quote
  #6  
Old 02-21-2006, 04:05 PM
reismarktq2 reismarktq2 is offline
 
Join Date: Feb 2003
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bashy
Installed image is showing in firefox but when i click the image nothing happens
Actually i have just tried it in IE and again nothing happens when the image is clicked!
Did you install the product XML? It's necessary for all the links to work except for forumhome.
Reply With Quote
  #7  
Old 02-21-2006, 04:30 PM
bashy bashy is offline
 
Join Date: Nov 2005
Posts: 2,544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi

Yip of course
Just dowble checked all edits and reimported the xml with overwrite ticked and still not working as it should be!!
Reply With Quote
  #8  
Old 02-21-2006, 05:34 PM
reismarktq2 reismarktq2 is offline
 
Join Date: Feb 2003
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It looks like the Javascript is clashing with something you've already got on your boards. This is the error I'm getting when I try it on your boards on IE:

Quote:
Line: 1
Char: 43
Error: Expected ')'
Code: 0
URL: http://www.bashys-place.com/forums/f...splay.php?f=71
The only thing I can think of is in headinclude, to replace this:

Code:
window.sidebar.addPanel(title, url, "")
with this:

Code:
window.sidebar.addPanel(title, url, "");
(The only difference between the two lines is the semi-colon at the end. I noticed this before posting the hack, but this was how the DynamicDrive function was originally written, and it didn't cause any problems on my boards that way.)

Hack updated to include this change.
Reply With Quote
  #9  
Old 02-21-2006, 05:40 PM
bashy bashy is offline
 
Join Date: Nov 2005
Posts: 2,544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi m8 thanks for trying but this didnt work either!!
Reply With Quote
  #10  
Old 02-21-2006, 05:52 PM
reismarktq2 reismarktq2 is offline
 
Join Date: Feb 2003
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bashy
Hi m8 thanks for trying but this didnt work either!!
Found another error on your site which seems to be completely unrelated to my code. Maybe this is what is causing your conflict?

Quote:
Line: 994
Char: 258
Error: Object doesn't support this action
Code: 0
URL: http://www.bashys-place.com/forums/...isplay.php?f=71
Needless to say, it doesn't appear as though my code is what's causing the problem. Sorry
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 06:30 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.07566 seconds
  • Memory Usage 2,307KB
  • Queries Executed 23 (?)
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
  • (8)bbcode_code
  • (4)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
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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