vbplusme
05-01-2010, 01:05 PM
First the goal: I am trying to redirect a visitor to my registration page after they have been browsing my site for some time.
Here id the code that sort of works:
<vb:if condition="$bbuserinfo['userid'] == 0">
<meta HTTP-EQUIV="REFRESH" content="30; url=http://mysite.com/register.php">
</vb:if>
I included this call with the other meta tags at the top of includeheader template.
It looked like it does exactly what I expected, at first.
I then noticed that when I was in the registration form that it refreshed because that same code is in its header as well.
How can I get either to not put the refresh code in the registration form or add a conditional that detects that its in the form and does not do the refresh?
I was thinking in the original code to add some like "If This Page = register" or whatever the correct variable term is for check the page.
Any help will be greatly appreciated.
Thanks Michael
Here id the code that sort of works:
<vb:if condition="$bbuserinfo['userid'] == 0">
<meta HTTP-EQUIV="REFRESH" content="30; url=http://mysite.com/register.php">
</vb:if>
I included this call with the other meta tags at the top of includeheader template.
It looked like it does exactly what I expected, at first.
I then noticed that when I was in the registration form that it refreshed because that same code is in its header as well.
How can I get either to not put the refresh code in the registration form or add a conditional that detects that its in the form and does not do the refresh?
I was thinking in the original code to add some like "If This Page = register" or whatever the correct variable term is for check the page.
Any help will be greatly appreciated.
Thanks Michael