Direct to login /register page

User avatar
Clarence
Registered User
Posts: 22
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 » Sun Jan 01, 2012 4:19 pm

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: 919
Joined: Wed Dec 16, 2009 8:30 pm
Location: Ontario, Canada
Flag: Canada

Re: Direct to login /register page

Post by spaceace » Sat Jan 07, 2012 5:29 pm

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

Image

User avatar
Clarence
Registered User
Posts: 22
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 » Sun Jan 08, 2012 3:34 am

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 !

Who is online

Users browsing this forum: CommonCrawl [Bot] and 0 guests