Direct to login /register page

Post Reply
User avatar
Clarence
Registered User
Posts: 23
Joined: Sun Dec 11, 2011 11:35 am
Location: Bellwood, IL USA
Flag: United States of America

Direct to login /register page

Post by Clarence »

When a visitor clicks the Chat button they are popped out to a blank page with the following ...
"AJAX Chat © 2007 StarTrekGuide To view chat, you must be registered and logged in." They need to hit their browser Back button to get back into the site. I would like them to be redirected to the login / register page. I looked into the overall_header.html but I cant see what might be missing. what can be done?
Last edited by Clarence on Tue Feb 26, 2013 10:30 am, edited 3 times in total.

One sure way to make your dreams come true . . . . WAKE UP !

User avatar
spaceace
Site Owner
Posts: 991
Joined: Wed Dec 16, 2009 8:30 pm
Location: Ontario, Canada
Flag: Canada
Contact:

Re: Direct to login /register page

Post by spaceace »

in the file menu.html, put an <!-- IF S_USER_LOGGED_IN --> statement around the button. that will make it so only those that are logged in can see it.
Last edited by spaceace on Tue Feb 26, 2013 10:30 am, edited 2 times in total.
if you like my work and would like to contribute to my development of styles, please donate by using the donate button in the header.

Image

Need hosting? Click this text to check out ICDSOFT

User avatar
Clarence
Registered User
Posts: 23
Joined: Sun Dec 11, 2011 11:35 am
Location: Bellwood, IL USA
Flag: United States of America

Re: Direct to login /register page

Post by Clarence »

Simple - - - but genius!
Thanks. :D
Last edited by Clarence on Tue Feb 26, 2013 10:30 am, edited 2 times in total.
One sure way to make your dreams come true . . . . WAKE UP !

Post Reply