Help - Search - Members - Calendar
Full Version: HTML Logic to find out the current page
Invision Power Services > Community Forums > Community Web Design and Coding
XanthicBB
Hi everyone. original.gif

Hopefully you guys with more coding skills than I can help me out with this one. biggrin.gif

I'm trying to create two different member bars (the bar that says "Logged in as..." etc). Bar A to be shown when the user is viewing the main board index, and Bar B to be shown on every other page. I'm trying to play around with the member_bar template bit in the Global HTML Elements section, and I'm thinking there might be an easy way to accomplish this with HTML logic maybe?

Something along the lines of:
CODE
<if="ipb.page == './index.php'">
Show Member Bar A.
</if>
<else>
Show Member Bar B.
</else>


Thoughts anyone?

Thanks in advance for any help you guys can give; it is most appreciated. original.gif
DonWilson
Post removed since he doesn't need the code. wink.gif
XanthicBB
Wow that does look like a lot of work indeed. biggrin.gif

Thanks for the prompt reply, but I think I've found the -- very simple -- answer:
CODE
<if="ipb.input['act'] == 'idx'">
DonWilson still rocks. :D
</if>
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.