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

Aziz Elkbiry 01-26-2008 02:18 AM

thank you

ARB4HOSTING.COM 01-26-2008 11:13 AM

thanks....

UltraFanatics 02-12-2008 06:17 PM

When you say bookmark, does that mean add to favourites? or as homepage?

PaulSonny 02-12-2008 06:18 PM

This seems very basic? does it not?

Thanks, Paul.

Boofo 02-12-2008 06:27 PM

Quote:

Originally Posted by SwollenCranium (Post 1409179)
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.

You'll be surprise how many new visitors will use this if they actually see it. It seems to say come back and visit. ;)

Magnumutz 02-13-2008 06:44 AM

@UltraFanatics: Yes, as a favorite... bookmark is the Firefox term for it :p
@PaulSonny: Yeah, i mostly is. But it's the first one of it's kind :)

logicuk 02-13-2008 08:03 AM

does this work in IE7, FF2 ?

Magnumutz 02-13-2008 10:10 AM

Donno if it works with IE7, i don't have it on my PC, but it does with FF2.

youradhere4222 02-13-2008 08:16 PM

How should I align this on the left side of the footer bar? Thanks!

Magnumutz 02-14-2008 02:20 PM

Well... that depends on the skin you got. On the default skin i aligned it on the right side.

youradhere4222 02-14-2008 07:23 PM

Yes, I'm using the default skin...

Magnumutz 02-15-2008 02:25 PM

Then it'll auto align itself there... on the right side, just like in the screenshot.

youradhere4222 02-15-2008 03:56 PM

Yes, but I'm pretty sure I asked how to align it on the left side...

Magnumutz 02-16-2008 05:07 AM

Oh, my bad :p
I tried aligning it on the left side, right after the Style and Language selector... but it looks real ugly, the whole text breaks down like this:
Code:

Bookmark
Us!!


ShadowOne 05-16-2008 11:49 AM

Quote:

Originally Posted by Magnumutz (Post 1444266)
Oh, my bad :p
I tried aligning it on the left side, right after the Style and Language selector... but it looks real ugly, the whole text breaks down like this:
Code:

Bookmark
Us!!


do you have a
PHP Code:

<br /> 

after bookmark? if so delete it...

GremlinPrince 05-18-2008 12:45 PM

thank you installed

Boofo 05-18-2008 01:29 PM

How about a text file with the instructions in case someone has to reinstall sometime?

Magnumutz 05-19-2008 12:22 PM

Thanks for the suggestion Boofo, i added one :)

Freddy.k 05-27-2008 10:24 AM

thank you

Boofo 05-27-2008 10:42 AM

Doesn't work for me with IE8 beta. I get an eror on page.

Magnumutz 05-27-2008 11:32 AM

Well, the code was probably made for FF2 and IE6/7.
So i'll look for another one to include all these new browsers and update it.

Boofo 05-27-2008 11:55 AM

You forgot to add this to the first post. I have an apostrophe in my site name. It works fine now. ;)

Quote:

Remember, if your site's title contains apostrophes, they need to be backslashed when entered:

<a href="javascript:bookmarksite('Mike\'s Place', 'http://www.google.com')">Bookmark this site!</a>

shofolofo 05-29-2008 08:28 PM

btw .. this mod can by any mean cuz language disturbances?
I have my language in all forums missed up since installing it

:)

Magnumutz 05-30-2008 06:32 PM

Nope... it's just a template edit, NOT a product.

Boofo 05-30-2008 07:00 PM

Alex, did you get my PM?

BeerLuver 06-28-2008 12:09 AM

Thanks :)

I altered it a bit to use an image instead for the footer version. I used this code:
Code:

<div><a href="javascript:bookmarksite('$vboptions[bbtitle]', '$vboptions[bburl]')"><img src="images/misc/bookmark.png" border="0" align="left" style="margin-right: 5px; margin-left: 5px;" alt="Bookmark Us" /></a></div>
Attached a screenshot; it's the yellow star icon next to the rss icon. And attached the bookmark icon itself.

Also attached the big version of the icon png if anyone wants to change the colors; change the Hue in Photoshop to get the color you want, then resize down to 16x16 pixel size.

Hope this is useful to someone then ;)

pedroenf 06-28-2008 02:00 PM

Quote:

Originally Posted by BeerLuver (Post 1560790)
Thanks :)

I altered it a bit to use an image instead for the footer version. I used this code:
Code:

<div><a href="javascript:bookmarksite('$vboptions[bbtitle]', '$vboptions[bburl]')"><img src="images/misc/bookmark.png" border="0" align="left" style="margin-right: 5px; margin-left: 5px;" alt="Bookmark Us" /></a></div>
Attached a screenshot; it's the yellow star icon next to the rss icon. And attached the bookmark icon itself.

Also attached the big version of the icon png if anyone wants to change the colors; change the Hue in Photoshop to get the color you want, then resize down to 16x16 pixel size.

Hope this is useful to someone then ;)


It was to me! Thanks ;)

Just to say that it does not work in Opera 9.5. IE and FF3 working great!

BeerLuver 06-28-2008 08:09 PM

I look at it this way... if it works in FF & IE at least.. that's two of the most popularly used browsers heh. Doesn't work in Opera or Safari, but viewers can just manually add the bookmark then in those ;)

ShawneyJ 06-29-2008 10:37 AM

nice man thx. would look good next to forum leaders to ;)

jlew24asu 07-09-2008 07:22 PM

installed thank you!


All times are GMT. The time now is 05:23 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.01343 seconds
  • Memory Usage 1,828KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_html_printable
  • (5)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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