The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
i'm rather new to vbulletin, so apologies if this is a rather newb-ish question.
i'm trying to edit a template, and i want to display something only if it is on page 1 of a thread what if statement do i need to use to wrap around the html i want to hide if i am on a page other than 1? |
#2
|
|||
|
|||
![]()
I would think it would be
HTML Code:
<if condition="empty($vbulletin->GPC['pagenumber'])"> html code here </if> |
#3
|
|||
|
|||
![]() Quote:
i tried it and it got rid of the html i wanted to exclude on every page, even the first tried !empty and it showed up on every page |
#4
|
|||
|
|||
![]()
Try this
HTML Code:
<if condition="$_GET[pagenumber] == 1 OR empty($_GET[pagenumber])"> html code here </if> |
#5
|
|||
|
|||
![]()
great, thanks! that did it
knowing that i can grab a value with $_GET[var_name] for comparison in an if condition= statement is key, and that will help me with future tinkering thanks again... |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|