vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=155)
-   -   Default Home Page (https://vborg.vbsupport.ru/showthread.php?t=120767)

oninuva 07-08-2006 10:00 PM

Default Home Page
 
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

Code:

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

2. Add this on top of it

Code:

<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

Code:

<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

Code:

<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!

https://vborg.vbsupport.ru/

rogersnm 07-09-2006 07:19 PM

Nice hack mate.

oninuva 07-09-2006 07:32 PM

Thank you NICK

DrewM 07-09-2006 07:43 PM

why not use vboptions variables so theres no "insert name here"

rogersnm 07-09-2006 07:49 PM

It would be easier just to stick some code in a template then having to import a product and mess about with settings if you do not know vb that well..

SCORPION1 07-09-2006 08:21 PM

must say good idea cheers will install now :)

mashour.net 07-09-2006 08:54 PM

They thanked you for you ..

peterska2 07-09-2006 09:44 PM

oninuva, please attach a text file with the instructions in to the first post.

Thank you.

oninuva 07-09-2006 09:55 PM

ok, sure will

Barakat 07-10-2006 12:37 AM

great idea . installed


All times are GMT. The time now is 05:38 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.01010 seconds
  • Memory Usage 1,728KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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