Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
Bookmark to favorites Details »»
Bookmark to favorites
Version: 3.8.4, by tommydamic68 tommydamic68 is offline
Developer Last Online: Jul 2014 Show Printable Version Email this Page

Category: Forum Home Enhancements - Version: 3.8.x Rating:
Released: 01-27-2012 Last Update: Never Installs: 2
Template Edits
Re-useable Code  
No support by the author.

Sorry if something like this exists but i thought i would share and welcome any others that may be better or perhaps someone has a better option or recommendation.

About this hack:

This hack puts a bookmark button on your website so users or visitors can automatically bookmark your site to their favorites in their favorite browser. It does not work with Safari but there is a piece in the code which lets them know they must add the bookmark manually.

I have also attached my bookmark i created. Feel free to use it.

Features:

Automatically lets users and guests bookmark your site to their browser favorites so your site is an easy find with a click!

It let's Safari users know that they need to manually add your site in their bookmark favorites. Bookmark buttons generally do not work with Safari.

You can use your own button as well but i have included mine in an attachment.

The code:

This code comes from Dynamicdrive.com but i have obviously modified it to my liking and to work on Vbulletin and my site. You will also probably need to change the position and whether or not you want it in a "fixed" position to your sites layout.

You also need to fill in the red areas with your site name and URL of course and the image source URL. You will also probably need to set the position to your liking as well. I have the position numbers highlighted in red. I basically just played with the positioning to get it where i wanted it on the site. I added the code at the bottom of the ad_header_end template.

<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
***********************************************/

/* Modified to support Opera */
function bookmarksite(title,url){
if (window.sidebar) // firefox
window.sidebar.addPanel(title, url, "");
else if(window.opera && window.print){ // opera
var elem = document.createElement('a');
elem.setAttribute('href',url);
elem.setAttribute('title',title);
elem.setAttribute('rel','sidebar');
elem.click();
}
else if(document.all)// ie
window.external.AddFavorite(url, title);
else {
alert("Sorry! Your browser doesn't support this function. Please bookmark this page manually.");
}
}
</script>

<a href="javascript:bookmarksite('YOUR SITE NAME', 'HTTP://WWW.YOURSITEURL.COM/')"><img src="YOUR IMAGE SOURCE" style="position: fixed; top: 150px; left:-5px;"border=0></a>

Screenshots

File Type: jpg Screen shot 2012-01-28 at 6.19.13 PM.jpg (34.8 KB, 0 views)
File Type: png book mark alone.png (8.4 KB, 0 views)
File Type: png Screen shot COMPLETE.png (30.7 KB, 0 views)

Show Your Support

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

Comments
  #2  
Old 01-31-2012, 07:38 AM
dizzynation's Avatar
dizzynation dizzynation is offline
 
Join Date: Jun 2011
Posts: 279
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will try it out
Reply With Quote
  #3  
Old 02-29-2012, 10:21 AM
bestone96 bestone96 is offline
 
Join Date: Sep 2011
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks a lot
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:05 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.04920 seconds
  • Memory Usage 2,227KB
  • Queries Executed 17 (?)
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
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (2)postbit
  • (3)postbit_attachment
  • (3)postbit_onlinestatus
  • (3)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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete