Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 29 Oct 2008, 20:45
Mavrik347's Avatar
Mavrik347 Mavrik347 is offline
 
Join Date: Dec 2007
Dynmic Link In Nav Bar

Hi guys is there anyway to make a link in my navbar so when people are on the Home page (vBAdvanced) it says "Forum" and links to it but when you are on the forum the link says "Home" and links you there?

I was thinking something like (Pseudocode):

if url = http://www.britishroguewarriors.com/index.php then
<a href="/forum/">Forum</a>
else
<a href="../index.php">Home</a>
end if
Reply With Quote
  #2  
Old 29 Oct 2008, 22:09
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
Yes, you can use THIS_SCRIPT for that:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Find what THIS_SCRIPT is defined as at the top of your Home page.
__________________
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #3  
Old 30 Oct 2008, 00:51
SEOvB's Avatar
SEOvB SEOvB is offline
 
Join Date: May 2007
Real name: Jarvis
i think the name of vBAdvanced is advindex so taking lynnes code


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

is what you'd be looking for
__________________
vBulletin Services and vBulletin Hosting
Reply With Quote
  #4  
Old 31 Oct 2008, 03:12
Mavrik347's Avatar
Mavrik347 Mavrik347 is offline
 
Join Date: Dec 2007
Not working :/ It's up at the moment. It doesn't seem to be 'advindex' so do you know where (file, page or line) I would find it?
Reply With Quote
  #5  
Old 31 Oct 2008, 03:20
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Real name: Lynne
You need to find the line that looks like this at the top of the page. This is where THIS_SCRIPT is defined:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

__________________
Try a search before posting for help. Many users won't, and don't, help if the question has been answered several times before.
W3Schools -
Online vBulletin Manual
If I post some CSS and don't say where it goes, put it in the additional.css template.
I will NOT help via PM (you will be directed to post in the forums for help.)
Reply With Quote
  #6  
Old 31 Oct 2008, 13:56
Mavrik347's Avatar
Mavrik347 Mavrik347 is offline
 
Join Date: Dec 2007
Brilliant, thanks. vBA is "adv_index".
Reply With Quote
Reply


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mod Scan link virus online(check link by Drweb) dinoking vBulletin 3.7 Add-ons 7 20 Aug 2008 19:35
Register link for guests, User CP link (or button) for members. KuraFire vBulletin 2.x Full Releases 95 25 Sep 2003 09:43

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 20:05.

Layout Options | Width: Wide Color: