PDA

View Full Version : Home Page Add


oninuva
10 Jul 2006, 03:13
Default Home Page


What this does: When a user clicks this it will make thier default homepage your site. This will improve chances that they will come back to your site.

How Long Does it take to set up: 1 Minute

What do i have to edit?: 2 Templates

Install

1. In your Footer Template look for

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


2. Add this on top of it

<a href="#" onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://yoursitehere');">Make Home Page Your Site Name Here </a>

3. In your Navbar template look for

<if condition="$show['member']">
<td class="vbmenu_control"><a href="login.php?$session[sessionurl]do=logout&amp;logouthash=$bbuserinfo[logouthash]" onclick="return log_out()">$vbphrase[log_out]</a></td>
</if>

4. Under it add

<a href="#" onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://yoursitehere');">Home Page </a>

Thats It!

If you installed this please press install (http://www.vbulletin.org/forum/vborg_miscactions.php?do=installhack&threadid=120785)!

https://www.vbulletin.org/forum/ (http://www.vbulletin.org/forum/vborg_miscactions.php?do=installhack&threadid=120785)

dunglantq
10 Jul 2006, 03:26
very good ....

Tyegurl
10 Jul 2006, 06:22
not to be dumb but how the heck does this work? i did the edits....

okay the text file is nothing but the mod in html....okay so what have i done wrong lmfao

nm got it...link was in the wrong stop so i moved it to the nabar and i could see it.

Snake
10 Jul 2006, 18:50
Thanks!

oninuva
14 Jul 2006, 22:03
your welcome :) glad you like it..

Dont forget to hit install!

Brandon Sheley
07 Aug 2006, 00:30
how about a "add to favorites" ? how would we do that..

thanks

iran.gs
07 Aug 2006, 19:18
Installed

dont forget to add - <<<<< this dash so u will have space betwen them just a reminder......

Mastar
08 Aug 2006, 05:16
<a href="javascript:window.external.addFavorite('http://www.site.com','site');">
Click here to add Site to your favorites!</a>

OR

<span style='cursor:hand;text-decoration:underline;'onclick='window.external.AddFavorite(location.href,documen t.title);'>
Click here to add this page to your favorites</span>

GreysAnatomy
11 Aug 2006, 06:39
Very useful, thank you!

Moonkat
12 Aug 2006, 11:46
Nevermind - I forgot to take it out of the navbar template lol

http://www.vanguardroleplayers.com/oops.jpg

oninuva
15 Aug 2006, 12:01
Very useful, thank you!

Glad it helps you :)

Snake
20 Aug 2006, 12:42
Thanks for this, but is it gonna work on Firefox too?

LordDB
31 Aug 2006, 03:35
I use Firefox, and have done what was said, but somehow it doesn't make the site the official Homepage!

Kindly advise further plz!

Cheers! :)

TheBlackPoet
15 Sep 2006, 04:36
this is very nice.. i needed this.. i made some changes and gave the tag an image to click on so that the link could be more than text..

<table border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td><div align="top_left"><a href="#" onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://theblackpoet.com/forum')"><img src="/forum/images/icons/sankofa.gif" alt="Make us your homepage" width="40" height="38" border="0" /></a></div></td>
</tr>
</table>

i put this on TOP of the table in the NAV BAR.. and it does what i need..

b4ne
03 Oct 2006, 11:18
doesnt seemt to work with Firefox

Hornstar
06 Oct 2006, 06:09
yeah ive looked over the web but cant find anything that works with firefox :/