Guest page?

View previous topic View next topic Go down

Vector_Pwnzorz
Vector_Pwnzorz
Member
Member
Forum Posts : 2
Member Since : 2012-01-12

PostVector_Pwnzorz 12/1/2012, 3:41 pm

Does anyone know how it goes to a page where you login if your a guest on a forum and arent aloud to view something as a guest? Is there a way I can make it so they go to a page instead of the login screen?
Mike
Mike
Administrator
Forum Posts : 446
Member Since : 2011-10-28
http://www.codinghelp.org

PostMike 12/1/2012, 3:42 pm

What Software / Forum Version?
Vector_Pwnzorz
Vector_Pwnzorz
Member
Member
Forum Posts : 2
Member Since : 2012-01-12

PostVector_Pwnzorz 12/1/2012, 3:44 pm

I use punbb
Nick!
Nick!
Member
Member
Forum Posts : 7
Member Since : 2012-01-15

PostNick! 16/1/2012, 7:04 pm

I'm confused on what you mean.
Matti_7
Matti_7
CSS Expert
CSS Expert
Forum Posts : 35
Member Since : 2011-11-25

PostMatti_7 17/1/2012, 10:16 am

I also don't understand what he want.
Vanilla990
Vanilla990
Administrator
Forum Posts : 114
Member Since : 2011-10-30

PostVanilla990 17/1/2012, 10:25 am

I think I understand.

What he means is...If someone gives you a link to a page on a forum that you aren't a member of, you get redirected to a login screen sometimes with the message "You need to be a member to view the contents of this thread". I think he means how can he let the guest still see the page instead of it redirecting them.

If that is the case, If you go into the Admin Panel and go to:
Admin Panel > General > Forum - Categories and Forums
Then find the forum category and click on the permissions icon (cross and tick icon) and then make sure you tick that guests can view that section and then click "Save".
Mike
Mike
Administrator
Forum Posts : 446
Member Since : 2011-10-28
http://www.codinghelp.org

PostMike 17/1/2012, 12:52 pm

Vanilla has the closest way to do it. Sadly I'm not going to give away my way of doing it./
Matti_7
Matti_7
CSS Expert
CSS Expert
Forum Posts : 35
Member Since : 2011-11-25

PostMatti_7 18/1/2012, 1:04 am

ah, ok this get nothing to do with coding he need to sit Permissions.
style
style
Member
Member
Forum Posts : 8
Member Since : 2012-01-17

Poststyle 19/1/2012, 10:02 am

You want something like on this forum. When I was a guest a window poped out, but It was huge. This is a forum widget & javascript.
Mike
Mike
Administrator
Forum Posts : 446
Member Since : 2011-10-28
http://www.codinghelp.org

PostMike 21/1/2012, 6:47 am

Solved?
LGforum
LGforum
Moderator
Forum Posts : 77
Member Since : 2011-11-12

PostLGforum 21/1/2012, 7:46 am

Its as simple as putting this is a widget or announcement:

Code:

<div id="guest">{USERNAME}</div>
<script>
if (document.getElementById('guest').innerHTML=='Guest'){
 window.location="/html page url";
}
</script>

Due to being in an announcement your guests won't even see a flash of the first page. They'll just get directed striaghtaway.

I'm sure I answered this thread before. Maybe my post was deleted.
Sponsored content

PostSponsored content

View previous topic View next topic Back to top

Create an account or log in to leave a reply

You need to be a member in order to leave a reply.

Create an account

Join our community by creating a new account. It's easy!


Create a new account

Log in

Already have an account? No problem, log in here.


Log in

 
Permissions in this forum:
You cannot reply to topics in this forum