Briskoda
08-24-2004, 05:17 PM
Okay trying to achive navigation on the sidebar using conditionals.
That is if I'm in FORUMHOME I'll display forum links and tools, eg 24hour posts.
If I vist the newsportal page I'll display some news navigation.
If I vist the membersarea I'll display the links for this area and so on.
Thus if I use:
<if condition="THIS_SCRIPT == 'adv_index' ">
I can tell when I am on a portal page. Using:
<if condition="THIS_SCRIPT == 'FORUMHOME' ">
I know I'm on a vb forum page. Similar for hacks eg arcade etc.
Now what I'm trying to access is the pagekey, eg cmps_index.php?page=mycustomnav
So that in my conditionals I can lookup the page parameter and display based on that.
I am presently using a global side bar owing to photopost, reviewpost and various other hacks. I am tempted to drop the global sidebar nav in favour of other ideas I have read about. But at this point would like a little nudge in the right direction re the above.
Cheers.
Colin.
That is if I'm in FORUMHOME I'll display forum links and tools, eg 24hour posts.
If I vist the newsportal page I'll display some news navigation.
If I vist the membersarea I'll display the links for this area and so on.
Thus if I use:
<if condition="THIS_SCRIPT == 'adv_index' ">
I can tell when I am on a portal page. Using:
<if condition="THIS_SCRIPT == 'FORUMHOME' ">
I know I'm on a vb forum page. Similar for hacks eg arcade etc.
Now what I'm trying to access is the pagekey, eg cmps_index.php?page=mycustomnav
So that in my conditionals I can lookup the page parameter and display based on that.
I am presently using a global side bar owing to photopost, reviewpost and various other hacks. I am tempted to drop the global sidebar nav in favour of other ideas I have read about. But at this point would like a little nudge in the right direction re the above.
Cheers.
Colin.