Go Back   vBulletin Setup > vBulletinSetup Information > Community Forum Management > vBulletin Tutorials


Please Register to get full access to the forums.
Comment
 
LinkBack Article Tools Display Modes
<!-- google_ad_section_start -->Dynamic forum/home links<!-- google_ad_section_end -->
Dynamic forum/home links
Creating a dynamic forum and home link on your forum
Published by Caddyman
09-26-2008
Dynamic forum/home links

This tutorials shows users how to show a "Forum" link on your vBadvanced homepage and a "Home" link on your forum.

You can see both types of the dyanmic links I am talking about below

Dynamic links with images in header - http://www.talkdelaware.com

Dynamic text links in middle navbar - http://www.talkphillysports.com

Creating dynamic links with images.

In the example from TalkDelaware above i simply replaced the first button images codeing in the header template with this.

Code:
<if condition="THIS_SCRIPT == 'adv_index'">

	<a href="forums.php"><img src="http://www.talkdelaware.com/talkstuffbg/misc/links_forum.gif" alt="Delaware Forum" width="75" height="39" border="0"></img></a>

<else />

	<a href="http://www.talkdelaware.com/"><img src="http://www.talkdelaware.com/talkstuffbg/misc/links_home.gif" alt="Delaware Home" width="75" height="39" border="0"></img></a>

</if>
For you to use this code, simply replace the images i have in there with yours, the alt text, and the image sizes.

What this tell your browser is "If on the homepage, show the FORUM image and link, if on any page BUT the homepage, show the HOME image and link"

Below is the same code only using text rather then images.

Code:
<if condition="THIS_SCRIPT == 'adv_index'">

<a href="forums.php">Forum</a>

<else />

<a href="index.php">Home</a>

</if>
Much simpler code, works the same way only without the images.


using this method will enable you to simplify the navigation on your site and eliminate one button from your navigation scheme.
Article Tools

Comment


Article Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Article Article Starter Category Comments Last Post
Add forumjump to forum home Blake2181 vBulletin Skins, Styles and Templates 3 09-12-2008 02:22 PM
Forum Home Side bar joshbond vBulletin Questions 3 12-14-2007 12:34 PM
Sitepoint like forum home? sagar vBulletin Questions 10 12-09-2007 01:00 PM
Forum home link? sagar Feedback and Suggestions 7 02-18-2007 02:26 PM
Home Recording Forum brandondrury Free vBulletin Link Directory 1 11-07-2006 08:41 PM


All times are GMT -6. The time now is 07:26 AM.

vBulletin Setup, vBulletin Setup Forums, vBulletin Services, vBulletin Blogs, vBulletin SEO, vBulletin Questions
vBulletin Skins, Styles, Templates, vBulletin Monetization, Blogs, vBulletin Link Directory,Quality Link Directory