![]() |
Conditional Help
Hi guys ;)
I need a little help and i hope that one of you guys can help me here i'm using the conditional below, in my header Code:
<if condition="$bbuserinfo['usergroupid'] == x"> Is there a way to make a conditional run once and then end?? Thanks in advance Gerry ;) |
Try:
Code:
<if condition="THIS_SCRIPT != "index" && $bbuserinfo['usergroupid'] == x"> |
Quote:
|
Are you saying when you get redirected to http://www.ukbusinesslive.co.uk/warning.html then it keeps repeating?
|
Quote:
Firstly the above url is only an example ;) its not working, What i've done is written a piece of code which re-directs back to the forum upon completion, But to get someone to go to that code when they type the forums url i used this conditional Code:
<if condition="$bbuserinfo['usergroupid'] == x"> is there a way that the above conditional can be changed, so that it onlt works the once?? The only other way would be with some form of cookie control using javascript, like the code below?? Code:
var expDays = 1; How long the cookie lasts for |
Why don't you have the redirect pass a variable and if that variable exists then don't redirect anymore?
User gets redirected to http://www.ukbusinesslive.co.uk/warning.html and then when that is done, they get sent back to index.php except the url would be index.php?myscript=done. And then on the page, if $_GET[myscript] == done, don't redirect again? A cookie would work also (as you said). Look in the API to see about a function to set cookies using vB. |
All times are GMT. The time now is 12:19 AM. |
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:
|