The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Script to redirect users from a HTML page, if they haven't posted on a thread?

View previous topic View next topic Go down

Script to redirect users from a HTML page, if they haven't posted on a thread?

Post by skyman101 on June 13th 2014, 1:13 am

So I have this code and it detects whether someone is logged in or not. If they aren't logged in, it redirects them to a thread.

<script type="text/javascript">
if (!document.getElementById('logout')) window.location.pathname = "/t2-example-example";</script>


However I want a code that detects whether someone has posted on a thread, before they can enter a HTML page. If they haven't posted, then it would redirect them to the thread.

skyman101
New Member

Posts : 17
Reputation : 1
Language : English

http://89hello@live.co.uk

Back to top Go down

Re: Script to redirect users from a HTML page, if they haven't posted on a thread?

Post by SLGray on June 13th 2014, 3:05 am

Do not start multi-threads about the same issue/question.


Use this one - http://help.forumotion.com/t133542-chatbox-and-html-questions


Topic Locked


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 36639
Reputation : 2441
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


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