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.

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

2 posters

Go down

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

Post by skyman101 12/6/2014, 18:13

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.
avatar
skyman101
New Member

Posts : 17
Reputation : 1
Language : English

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

Back to top Go down

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

Post by SLGray 12/6/2014, 20:05

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


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


Topic Locked


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

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

Male Posts : 51489
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top

- Similar topics

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