Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 06 Apr 2012, 14:53
AndrewO AndrewO is offline
 
Join Date: Apr 2012
Conditional Statement for Specific Pages

I'm looking for a way to single out the register page within my templates.

Basically, I have a big header in my navbar file that shows only to guests (using the conditional statement for that), outlining the benefits of joining my forum. When they click the register button in this header, it takes them to register.php, of course. But then, above the registration form, they see the 300px tall banner that they just clicked on.

Is there any way for me to show specific code on all pages except register.php?

In PHP this would be easy, you would just say if (this page is register.php) {} else { show banner }

I'm fairly new to VB, is there a way to do something similar?

Thanks!
Reply With Quote
  #2  
Old 06 Apr 2012, 15:03
Altari Altari is offline
 
Join Date: Sep 2011
Hello,
Sorry for my bad english, i'm french

have a look on this article : http://www.vbulletin.org/forum/showthread.php?t=231525

What you are looking for is :
<vb:if condition="THIS_SCRIPT != 'register'">Don't show this on register.php</vb:if>
Reply With Quote
  #3  
Old 06 Apr 2012, 21:02
AndrewO AndrewO is offline
 
Join Date: Apr 2012
Oh, that article was exactly what I was looking for. I knew there had to be conditionals, but I couldn't find a complete list.

That code worked perfectly - merci beaucoup!
Reply With Quote
Reply



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 22:36.

Layout Options | Width: Wide Color: