Action based on condition
Can someone tell me how to exclude an action (or line(s)) in a vBulletin script page such as in index.php by allowing only a paricular user or administrator ?
For example......
<if $Username="Administrator">
This is the line I want to be conditionally executed
</if>
In the above example, I ONLY want the red line to be executed if the user is Administrator.
I need some way to exclude a line of the script UNLESS it's the administrator(s) or a particular members who IS the adminstrator.
What I don't know is what variables are stored in memory and how to use them in a conditional statement like this.
Thanks
|