Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

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
  #12  
Old 02-21-2006, 05:58 PM
bashy bashy is offline
 
Join Date: Nov 2005
Posts: 2,544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah i did notice that but i aint got a clue on how to fix
not only that there does not appear to be any problems so i left it..
Yeah its nowt to do with yours!!

Any ideas on how to fix it
Reply With Quote
  #13  
Old 02-21-2006, 06:16 PM
-=Sniper=- -=Sniper=- is offline
 
Join Date: May 2002
Posts: 605
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bashy
Yeah i did notice that but i aint got a clue on how to fix
not only that there does not appear to be any problems so i left it..
Yeah its nowt to do with yours!!
Any ideas on how to fix it
http://www.dynamicdrive.com/dynamicindex9/addbook.htm

Quote:
Remember, if your site's title contains apostrophes, they need to be backslashed when entered:
You will need to add slashes to the title before including it in the javascript, I'm not sure if theres a built in function in vb.

PHP Code:
addslashes($string
can be used in php
Reply With Quote
  #14  
Old 02-21-2006, 06:23 PM
reismarktq2 reismarktq2 is offline
 
Join Date: Feb 2003
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by -=Sniper=-
http://www.dynamicdrive.com/dynamicindex9/addbook.htm



You will need to add slashes to the title before including it in the javascript, I'm not sure if theres a built in function in vb.

PHP Code:
addslashes($string
can be used in php
The plug-in in the product XML already performs this task, so unfortunately, it isn't the cause of Bashy's problem. There is a special function in vB called addslashes_js for this specific purpose.
Reply With Quote
  #15  
Old 02-21-2006, 06:43 PM
bashy bashy is offline
 
Join Date: Nov 2005
Posts: 2,544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi guys...

You have both gone well above head
would 1 of you like to have admin access and take a gander?
Reply With Quote
  #16  
Old 02-21-2006, 08:57 PM
FleaBag's Avatar
FleaBag FleaBag is offline
 
Join Date: Dec 2001
Posts: 1,674
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Quote:
Originally Posted by FleaBag
Nice hack!
I've just upgraded my boards to version 3.5.4, and this hack should continue to work as intended without any extra steps needed.
Reply With Quote
  #18  
Old 02-22-2006, 10:15 AM
Floris Floris is offline
 
Join Date: Jan 2002
Posts: 1,898
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Now there's a cool idea!

Good stuff and thank you for sharing
Reply With Quote
  #19  
Old 02-22-2006, 10:58 AM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice one! Thanks.
Reply With Quote
  #20  
Old 02-22-2006, 03:30 PM
bashy bashy is offline
 
Join Date: Nov 2005
Posts: 2,544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi peeps

With regards to my problems and this hack, would i be better off uninstlling the hack
Or is some one gonna be kind enough to try and resolve this, admin access to me forum is available
Reply With Quote
  #21  
Old 02-24-2006, 02:25 PM
reismarktq2 reismarktq2 is offline
 
Join Date: Feb 2003
Posts: 109
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by klaush
Hello,

no idea for my problem with CMPS?

Without a solution this mod is not usable with portal frontends that takes forum threads in a block on the first site of the board for news or announcements.

Thanks!
I'm not sure I follow precisely what the problem is. You mind posting a link to your boards so I can see what you're talking about?
Reply With Quote
Reply

Thread Tools

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 04:29 AM.


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.10855 seconds
  • Memory Usage 2,316KB
  • Queries Executed 25 (?)
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
  • (2)bbcode_php
  • (5)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
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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