• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.2 Set different home page for guests

kingston

Well-known member
#1
If a guest visits my forum I want to redirect them our account upgrade page (because this particular forum is a premium paid access forum) where they can purchase access and if they are already logged in I would like them to go to the default forum home. Is there an easy way to do that?

Thanks!
 

kingston

Well-known member
#2
I did a redirect and it worked. Here is my code:

Code:
<xen:if is="{$visitor.user_id}">
<xen:else />
<meta HTTP-EQUIV="REFRESH" content="0; url=http://redirected.url">
</xen:if>
 

kingston

Well-known member
#4
updated code

Code:
<xen:if is="!{$visitor.user_id}">
<meta HTTP-EQUIV="REFRESH" content="0; url=http://redirected.url">
</xen:if>