Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications

Reply
 
Thread Tools
"Add to Favourites" in navbar - IE/Opera/Firefox Details »»
"Add to Favourites" in navbar - IE/Opera/Firefox
Version: 1.00, by sambah sambah is offline
Developer Last Online: Jul 2012 Show Printable Version Email this Page

Version: 3.6.0 Rating:
Released: 08-06-2006 Last Update: Never Installs: 21
 
No support by the author.

This is my first hack so go gentle. Its also tiny!

What it does?

This hack adds an "Add to Favourites" Button in your navbar, which the user can click on to add the forum to their favourites.

Install Time: 2 Minutes
Templates to Edit: 1
Files to edit: 1

Install Instructions:

1. Open your ftp client and navigate to forumroot/clientscript
2. Open vbulletin_global.js to edit

Add this to the file anywhere:

Code:
function addBookmark(title,url) {
if (window.sidebar) { 
window.sidebar.addPanel(title, url,""); 
} else if( document.all ) {
window.external.AddFavorite( url, title);
} else if( window.opera && window.print ) {
return true;
}
}
3. Close the file and reupload it to your server

4. Go to edit templates and open the template navbar

Look for:

Code:
<td id="navbar_search" class="vbmenu_control"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[search]</a> <script type="text/javascript"> vbmenu_register("navbar_search"); </script></td>
Below it add:

Code:
<td id="navbar_favourites"
class="vbmenu_control"><a href="#" onmousedown="addBookmark('Teensay Forums','http://www.teensay.co.uk/boards/')" onmouseover="return overlib('Bookmark us.');">Add to Favourites</a>  <script
type="text/javascript"> addBookmark("title"); </script></td>
5. Save the template

6. Click install

and you're done.

Hope this helps somebody!

Show Your Support

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

Comments
  #12  
Old 10-01-2006, 11:58 PM
oberheimhaven's Avatar
oberheimhaven oberheimhaven is offline
 
Join Date: May 2006
Location: Daytona Beach FLA
Posts: 266
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice hack zero issues with 3.6.0
Thxs mate
MArkAnthony
Reply With Quote
  #13  
Old 02-08-2007, 04:47 AM
FreshPrince FreshPrince is offline
 
Join Date: Oct 2006
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The hack works on my forum root, but not on my forum subdirectory:

http://www.politicsforumpoliticalworld.com/forum/

I have the link in the navbar under "Click here to BOOKMARK this Site"


I uploaded the vbulletin_global.js file to the client script folder in my forum root and my forum folder. What else can I do to make this work on all locations on my site?

Thanks
Reply With Quote
  #14  
Old 02-08-2007, 05:02 AM
Shazz's Avatar
Shazz Shazz is offline
 
Join Date: Jun 2006
Location: Utah
Posts: 4,758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

/me installed on test site
Reply With Quote
  #15  
Old 03-14-2007, 07:40 PM
dazed12 dazed12 is offline
 
Join Date: Jul 2006
Posts: 30
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i'm having probs on my site ... www.obkrew.net
Reply With Quote
  #16  
Old 03-14-2007, 07:55 PM
Shazz's Avatar
Shazz Shazz is offline
 
Join Date: Jun 2006
Location: Utah
Posts: 4,758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has minor bugs :|
Reply With Quote
  #17  
Old 03-24-2007, 10:21 AM
siriuxs siriuxs is offline
 
Join Date: Nov 2005
Location: Italia
Posts: 152
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

On firefox isn't functionally... why?
Reply With Quote
  #18  
Old 03-24-2007, 11:09 AM
PoetJA-1975's Avatar
PoetJA-1975 PoetJA-1975 is offline
 
Join Date: Sep 2006
Location: Meh...
Posts: 1,218
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dazed12 View Post
i'm having probs on my site ... www.obkrew.net
Quote:
Originally Posted by Shazz View Post
Has minor bugs :|
um... I think it would be nice if YAWL posted the issues so that the modification author can at least have a clue as to how to fix

Anyway - seems like a nice modification - Because of the file edit - I'll just wait till it works perfectly though...

Thanx for the share.

Jacquii.
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 07:17 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04106 seconds
  • Memory Usage 2,272KB
  • Queries Executed 24 (?)
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
  • (3)bbcode_code
  • (2)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
  • (1)pagenav_pagelink
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (7)postbit
  • (8)postbit_onlinestatus
  • (8)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_postinfo_query
  • fetch_postinfo
  • 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