The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Need Help with If Condition for Script
hey guys, I have a quick question. I have this add-on which separates the forum into two different pages, page 1 and page 2. I'm using vBseo so page 2 is at "/premium.html". But anyways.
I want a certain usergroup to see a banner I have made, but ONLY on page 2. I've tried everything involving this if condition Code:
<if condition="THIS_SCRIPT == 'index'"></if> ** code removed ** If anyone could please help me, I want it so that the banner will only show up when users browse the second page of the forum, so at http://www.nextgenupdate.com/vb/premium.html , and not on the home, www.nextgenupdate.com/vb/ Also, I don't think vBseo would mess anything up, although the normal link is at http://www.nextgenupdate.com/vb/index.php?page=2 So is there an if condition vb recognizes that say is like <if condition="user browsing "THIS PAGE"> ? Thanks to anyone who helps! |
#2
|
||||
|
||||
Do not go posting someone else's code here unless you have their permission to do so. Code removed.
Anyway, you need to find out what variable they use for their page number and then incorporate that into your if statement. HTML Code:
<if condition="THIS_SCRIPT == 'index' AND $page == 2"></if> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|