Guest page?

View previous topic View next topic Go down

avatar
Vector_Pwnzorz
Member
Member
Forum Posts : 2
Member Since : 2012-01-12
View user profile

PostVector_Pwnzorz on 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?
avatar
Mike
Administrator
Forum Posts : 446
Member Since : 2011-10-28
View user profile http://www.codinghelp.org

PostMike on 12/1/2012, 3:42 pm

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

PostVector_Pwnzorz on 12/1/2012, 3:44 pm

I use punbb
avatar
Nick!
Member
Member
Forum Posts : 7
Member Since : 2012-01-15
View user profile

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

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

PostMatti_7 on 17/1/2012, 10:16 am

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

PostVanilla990 on 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".
avatar
Mike
Administrator
Forum Posts : 446
Member Since : 2011-10-28
View user profile http://www.codinghelp.org

PostMike on 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./
avatar
Matti_7
CSS Expert
CSS Expert
Forum Posts : 35
Member Since : 2011-11-25
View user profile

PostMatti_7 on 18/1/2012, 1:04 am

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

Poststyle on 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.
avatar
Mike
Administrator
Forum Posts : 446
Member Since : 2011-10-28
View user profile http://www.codinghelp.org

PostMike on 21/1/2012, 6:47 am

Solved?
avatar
LGforum
Moderator
Forum Posts : 77
Member Since : 2011-11-12
View user profile

PostLGforum on 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