vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Forum Home Enhancements - Bookmark Us on Navbar or footer (https://vborg.vbsupport.ru/showthread.php?t=166058)

Magnumutz 12-23-2007 10:00 PM

Bookmark Us on Navbar or footer
 
Bookmark Us! (Add to Favorites) on Navbar or footer.


Brought to you by the Haste Network - Free MMORPG Network


Please mark as "Installed" if you use this modification, thanks !



Q: What this does?
A: It adds a "Bookmark Us" link in your navbar or your footer.


This code is a free source from DynamicDrive.com. Users are NOT allowed to remove the copyrights.

How to install:

In the header template place this at the end of the template:
HTML Code:

<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);
}
</script>

Now, for the navbar version, search the navbar template for:
PHP Code:

    <if condition="$show['registerbutton']">
        <
td class="vbmenu_control"><a href="register.php$session[sessionurl_q]rel="nofollow">$vbphrase[register]</a></td>
    </if> 

After that, add:
PHP Code:

        <td class="vbmenu_control"><a href="javascript:bookmarksite('$vboptions[bbtitle]', '$vboptions[bburl]')">Bookmark Us!</a></td

For the footer version, search the footer template for:
PHP Code:

                <if condition="$show['contactus']"><a href="$vboptions[contactuslink]rel="nofollow" accesskey="9">$vbphrase[contact_us]</a> -</if> 

Above that, add:
PHP Code:

                <a href="javascript:bookmarksite('$vboptions[bbtitle]', '$vboptions[bburl]')">Bookmark Us!</a> - 

That's about it... tested with Firefox and IE6.

Added Installation Instructions file on 19th of May.

Please mark as "Installed" if you use this modification, thanks !

dvbusuario 12-25-2007 11:03 PM

Screenshots?
Demo?

Thaks!

Magnumutz 12-26-2007 12:24 AM

Dude, this adds a link in your navbar or footer. When you click on that link, a window pops-up and asks you if you want to add the website as a bookmark or favorite.
I added screenshots to the first post... simple links.

SwollenCranium 12-26-2007 12:39 AM

Good job, I'm sure some will use it.

But I'm 100% sure I do not want members that are incapable of using the bookmark feature in the usual manner.

Magnumutz 12-26-2007 01:45 AM

Well, it wasn't my idea in the first place. I only made it for vB :p
However, i know what' your saying... it's nasty to have newb members, that stay that way.

Hornstar 12-27-2007 10:20 AM

But still, if it invites users to bookmark your site (some forget to bookmark useful sites) and if this makes more people bookmark your site, you might just get more return visitors. I think this is quite a handy addition.

Thanks for sharing.

TPOCJames 01-06-2008 10:38 PM

Quote:

Originally Posted by hornstar1337 (Post 1410041)
But still, if it invites users to bookmark your site (some forget to bookmark useful sites) and if this makes more people bookmark your site, you might just get more return visitors. I think this is quite a handy addition.

Thanks for sharing.

I agree. Installed.

chennairam 01-08-2008 02:51 AM

How to put this ??

all are put only in header ?? please guide me individual how to install this... im new in forum

Brandon Sheley 01-16-2008 04:14 PM

Quote:

Originally Posted by chennairam (Post 1417541)
How to put this ??

all are put only in header ?? please guide me individual how to install this... im new in forum

The first post clearly explains how to add the link :)
You'll edit these 2 or 3 templates in your vBulletin Styles section in the admincp.

cheers

Dark Cynicus! 01-26-2008 12:05 AM

doesnt work for ie... =/ it works on firefox


All times are GMT. The time now is 01:04 AM.

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.01218 seconds
  • Memory Usage 1,753KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html_printable
  • (4)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete