![]() |
determining page number
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? |
I would think it would be
HTML Code:
<if condition="empty($vbulletin->GPC['pagenumber'])"> |
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 |
Try this
HTML Code:
<if condition="$_GET[pagenumber] == 1 OR empty($_GET[pagenumber])"> |
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... |
All times are GMT. The time now is 03:31 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|