PDA

View Full Version : Highlight based on page


Hell Bomb
03-07-2010, 01:27 AM
How can I have certain tabs light up based on what pages I am on. Such as vb4 does and vBulletin.org does?

Hell Bomb
03-09-2010, 02:07 AM
**********bump**********

Hell Bomb
03-10-2010, 07:35 PM
**********bump**********

Marco van Herwaarden
03-11-2010, 09:33 AM
Without knowing the style you are using and how that is coded, i doubt anyone can give an answer.

Hell Bomb
03-11-2010, 03:06 PM
Hmm didn't think that would matter I am going to be working on a custom theme so it doesnt really matter what ideas people could give me. I have been thinking about using a php statement that will check on which page the use is viewing and checking by that. So if the user is on forumdisplay is will highlight the tab "forum" I want to create a navbar system like vBulletin 4.0 but am having issues getting it to work right. I am usually pretty good with this stuff i figured out how to make it work pretty good in about 20 minutes outside of vBulletin but while using the vBuleltin template system its kind of fustrating.

Anseur
03-13-2010, 12:26 PM
the template conditional:


<if condition="THIS_SCRIPT == 'something'">
highlighted tab code goes here
<else>
non highlighted tab code goes here
</if>


should do what your asking.

THIS_SCRIPT is defined in the various .php files in your vb installation. You can open each in notepad or simlar to find it.

Hell Bomb
03-13-2010, 06:47 PM
the template conditional:


<if condition="THIS_SCRIPT == 'something'">
highlighted tab code goes here
<else>
non highlighted tab code goes here
</if>


should do what your asking.

THIS_SCRIPT is defined in the various .php files in your vb installation. You can open each in notepad or simlar to find it.

Hmmm yea i thought i would end up doing something like this was hoping their was a easier way. O well unless I find a better way ill stick with this.