![]() |
How to turn code on/off over UserCP?
Hello folks,
a little question of mine, how can i set up a profile field to let the users turn on/off a special feature (ads between the posts). I did a new profile filed, and set the following code in front of the ad-code, but i dont know how to get on ... Code:
if ($vbulletin->userinfo['field6'] == 'Off') |
PHP Code:
Like that? |
Doesn't work. Anybody out there :)
Code:
if ($vbulletin->userinfo['field6'] == 'On') |
Use <if> if you are doing it in the templates.
HTML Code:
<if condition="$vbulletin->userinfo['field6'] == 'On'"> |
Thanks Aj :) it works. Now it logical, (me :rolleyes: ) look at the first if-condition and then at the second, whats wrong :D:D
Often the answer is in front of you....... |
All times are GMT. The time now is 07:15 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:
|