The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Homepage for Guests Only?

4 posters

Go down

Homepage for Guests Only? Empty Homepage for Guests Only?

Post by HogwartsAcademy November 4th 2012, 5:19 pm

Hey friends,

I recently made a guest message that I want guests to view only. I have the HTML page setup, here it is here: (http://www.hogwartsacademy.org/h20-login-homepage)

What I want to do, is make it so that guests cannot do anything but see this page when they enter my forum, so that they must register or log in to be able to view the rest of the forum. How can I do this?

Please don't tell me to make all my forums invisible to guests, I did that already but I still want this guest message to be shown instead. So the question is simple, but the answer is probably the opposite.

How can I do this?
avatar
HogwartsAcademy
Forumember

Posts : 474
Reputation : 1
Language : English

Back to top Go down

Homepage for Guests Only? Empty Re: Homepage for Guests Only?

Post by HogwartsAcademy November 7th 2012, 3:44 am

Bump
avatar
HogwartsAcademy
Forumember

Posts : 474
Reputation : 1
Language : English

Back to top Go down

Homepage for Guests Only? Empty Re: Homepage for Guests Only?

Post by kirk November 7th 2012, 7:04 pm

HogwartsAcademy wrote:Hey friends,

I recently made a guest message that I want guests to view only. I have the HTML page setup, here it is here: (http://www.hogwartsacademy.org/h20-login-homepage)

What I want to do, is make it so that guests cannot do anything but see this page when they enter my forum, so that they must register or log in to be able to view the rest of the forum. How can I do this?

Please don't tell me to make all my forums invisible to guests, I did that already but I still want this guest message to be shown instead. So the question is simple, but the answer is probably the opposite.

How can I do this?

Basically everyone is a guest until they are registered and logged in.
I am afraid for what your asking would be to set the forum permissions.

I would think he best way is to allow guest to see all post forums, accept others you may have designated fro certain groups only. But allow guest to see all you can allow them to, then have it so they have to register to reply.

I mean it dont have to be all boards it would be up to you how you want it, but i mean what your asking there is no there way then to set the forums permissions, guest are guest..Once again even your members are guest until they log in, so how else would it be possible to allow or disallow guest to see or not see/reply to something etc.. unless the permissions are set for it. or (may be have in a widget?)

A html page is always open to everyone guest and members a like, if they have the link to the page then they will see it regardless of whether they are logged in or not, I am not sure what other ways to explain it. it is pretty much self explanatory, Unless i am getting mixed up on exactly what you mean?? Sad

or may be try putting the guest message in a custom widget, then set the widgets permissions only for guest. Now when your members are logged in they will no longer see the messages.
kirk
kirk
Forumaster

Male Posts : 11037
Reputation : 653
Language : English,Vulcan,Klingon, Romulan,& Gorn

Back to top Go down

Homepage for Guests Only? Empty Re: Homepage for Guests Only?

Post by BubbleDreams November 8th 2012, 7:20 pm

You can make this using JS. This can be very useful:
Code:
if(document.getElementById('i_icon_mini_login')) {
your code ...
}
BubbleDreams
BubbleDreams
New Member

Posts : 2
Reputation : 1
Language : Serbian, English, Deutsch

Back to top Go down

Homepage for Guests Only? Empty Re: Homepage for Guests Only?

Post by nextlevelgaming November 9th 2012, 5:06 am

you can grab the html from your page created. place it in the overall_header inbetween this code

Code:
<!-- BEGIN switch_user_logged_out -->
CODE HERE
<!-- END switch_user_logged_out -->

Then place the the rest of the overall_header HTML in between this code

Code:
<!-- BEGIN switch_user_logged_in -->
CODE HERE
<!-- END switch_user_logged_in -->

I believe you will have to create the logged out users to be completely full size, so that it will hide the rest of the html that will be visible once and a while because of the view topic_body and etc.
nextlevelgaming
nextlevelgaming
Forumember

Male Posts : 989
Reputation : 38
Language : English|CSS|HTML5|javascript|
Location : New York

http://www.easybbtutorials.forumotion.com

Back to top Go down

Back to top


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