The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
<if> conditional
Is there a way I could write an <if> conditional that I could include multiple i.p. addys instead of say a certain usergroup.
|
#2
|
||||
|
||||
I don't understand nothing from your request.
A code example will help us to understand what exacly you are trying to achieve. Post one and I will help you. |
#3
|
||||
|
||||
I would assume bigdog829 is looking for something like this:
HTML Code:
<if condition="is_member_of($bbuserinfo, 5,6,7)"> </if> Correct me if I am wrong |
#4
|
|||
|
|||
Quote:
Thanks |
#5
|
||||
|
||||
If it's what Redlinemotorsports said, this is very easy.
Use this function: PHP Code:
PHP Code:
Code:
<if condition="$show['allowedip']"> ... do your stuff for allowed users only ... </if> Hope that helps. BTW, this was not tested, it was done off my mind. |
#6
|
|||
|
|||
Im not looking to allow certain ip's I actually want to redirect certain ones I figured a if conditional with a simple html redirect would do the trick.
|
#7
|
||||
|
||||
Aha, so why you did not post this from the beginning then?
From your post: Exactly what Im loking for sorry if I didnt explain it well enough ! If you found a solution, you should post it here, so others can benefit from your experience. That what is all about at vb.org, sharing knowledge with other hackers. |
#8
|
|||
|
|||
Quote:
|
#9
|
|||
|
|||
TECK, it's offtopic but can u explain step by step your script? i'm learning php and i want to absorb knoledge |
#10
|
|||
|
|||
Try:
Code:
<if condition="$bbuserinfo[ipaddress] == 'xxx.xxx.xxx.xxx'"> </if> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|