![]() |
Why doesn't this work!
<if condition="$show['guest']"> {
<script type="text/javascript"> if ((document.location !="http://we-cheat.com/register.php") || (document.location !="http://we-cheat.com/register.php?do=register")) { alert("Welcome Guest, please click OK to Register!"); document.location = "http://we-cheat.com/register.php"; } </script> </if> It works when I have only the 1 exception but when I added another it started to loop and the popup shows up on the register pages too This is placed in my footer |
Code:
<if condition="$show['guest'] AND THIS_SCRIPT != 'register'"> |
I got it.... It's
<if condition="$show['guest']"> { <script type="text/javascript"> if(document.location != "http://we-cheat.com/register.php" && document.location != "http://we-cheat.com/register.php?do=register") { alert($vbulletin->options['message_var']); document.location = "http://we-cheat.com/register.php"; } </script> </if> |
All times are GMT. The time now is 01:06 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:
|