Log in

View Full Version : if user id = redirect


silvermerc
10-18-2009, 01:39 PM
whats the vb code for if id = it redirects to google?
Thanks
Ross

DeanLag
10-18-2009, 02:02 PM
<if condition="$bbuserinfo[userid] == XX">

/* Redirect browser */
header (http://www.php.net/header)("Location: http://www.domain.com");
/* Make sure that code below does not get executed when we redirect. */
exit (http://www.php.net/exit);

<else/>

your whole page code here


</if>


I'm not 100% sure about that. Its the Php redirection code.

Medtech
10-18-2009, 02:05 PM
this works fine placed at the top of the header template

<if condition="$bbuserinfo['userid'] == X">
<meta HTTP-EQUIV="REFRESH" content="0; url=http://www.google.com">
</if>