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.

When members log in, immediately re-direct to main thread?

5 posters

Go down

Solved When members log in, immediately re-direct to main thread?

Post by Mr. Eddster Sun 04 Mar 2012, 03:37

Hi I was wondering if there was a way for when new users log in, they immediately go to our main thread? This would be extremely helpful...


Last edited by Mr. Eddster on Thu 15 Mar 2012, 20:31; edited 1 time in total
Mr. Eddster
Mr. Eddster
Forumember

Male Posts : 382
Reputation : 7
Language : English

http://sports-forumbuzz.canadian-forum.com/

Back to top Go down

Solved Re: When members log in, immediately re-direct to main thread?

Post by Zerotheheroe Sun 04 Mar 2012, 22:47

I don't think that's possible, but you could possibly set a redirection HTML page as your forum's main index - so when they sign in, it would take them to the topic!


You could put something such as, "You're being taken to "" topic, please wait"

You could even use this code if you wish!

/- Begin Code -\
<center>
<meta HTTP-EQUIV="REFRESH" content="0; url=http://www.yourdomain.com/index.html">
<br>
<br>
<b> You're being redirected to "" topic, please wait. </b></center>
\- End Code -/
Zerotheheroe
Zerotheheroe
Forumember

Posts : 333
Reputation : 8
Language : English

http://www.clancaos.net

Back to top Go down

Solved Re: When members log in, immediately re-direct to main thread?

Post by Mr. Eddster Mon 05 Mar 2012, 01:40

Again, I made a new HTML page, and it did re-direct to the right place, but when i logged in as a new user, it didnt re-direct me to the place I wanted it to go to. :/
Mr. Eddster
Mr. Eddster
Forumember

Male Posts : 382
Reputation : 7
Language : English

http://sports-forumbuzz.canadian-forum.com/

Back to top Go down

Solved Re: When members log in, immediately re-direct to main thread?

Post by LGforum Mon 05 Mar 2012, 03:06

It's possible to check if a user is logging in for the first time and redirect them to a thread. It would be done by redirecting them and setting a cookie so they aren't redirected in the future.
LGforum
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

Solved Re: When members log in, immediately re-direct to main thread?

Post by Mr. Eddster Tue 06 Mar 2012, 03:17

LGforum wrote:It's possible to check if a user is logging in for the first time and redirect them to a thread. It would be done by redirecting them and setting a cookie so they aren't redirected in the future.

See what I want to do is whenever someone signs in I want to re-direct them to our main thread. The re-direction code he gave me worked, but it doesn't when you log in.
Mr. Eddster
Mr. Eddster
Forumember

Male Posts : 382
Reputation : 7
Language : English

http://sports-forumbuzz.canadian-forum.com/

Back to top Go down

Solved Re: When members log in, immediately re-direct to main thread?

Post by LGforum Tue 06 Mar 2012, 19:19

Don't use the one above. It will redirect anybody, not just new members.

Just put this in a new javascript.
Code:

if(my_getcookie('thread_redirect')!=0 && document.getElementById('logout')) {
  window.location = 'YOUR THREAD URL';
  my_setcookie('thread_redirect',1,1);
}
Make sure you change 'YOUR THREAD URL' for the url of thread you want them sent to.

*Please notes, this wil redirect your current members once too. However members will not be redirected ever again after they have been redirected once.
LGforum
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

Solved Re: When members log in, immediately re-direct to main thread?

Post by Mr. Eddster Tue 06 Mar 2012, 23:04

LGforum wrote:Don't use the one above. It will redirect anybody, not just new members.

Just put this in a new javascript.
Code:

if(my_getcookie('thread_redirect')!=0 && document.getElementById('logout')) {
window.location = 'YOUR THREAD URL';
my_setcookie('thread_redirect',1,1);
}
Make sure you change 'YOUR THREAD URL' for the url of thread you want them sent to.

*Please notes, this wil redirect your current members once too. However members will not be redirected ever again after they have been redirected once.

Ok SO I turned Javascript codes on, and went to the "Javascript codes management" and theres 6 checkboxes for the palcement: "homepage", "portal" "sub-forums", "In the Topics", "in the gallery", and "in all the pages", which ones do I check?

And one other question: do I take out the little single quotation marks that I bolded in your quote, or do I leave them in? Thanks!
Mr. Eddster
Mr. Eddster
Forumember

Male Posts : 382
Reputation : 7
Language : English

http://sports-forumbuzz.canadian-forum.com/

Back to top Go down

Solved Re: When members log in, immediately re-direct to main thread?

Post by LGforum Wed 07 Mar 2012, 01:17

You leave the quotes in.

And the tick boxes is up to you... tick wherever you want the code to be activated..
LGforum
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

Solved Re: When members log in, immediately re-direct to main thread?

Post by Mr. Eddster Wed 07 Mar 2012, 05:05

ya that code didnt work. :/
Mr. Eddster
Mr. Eddster
Forumember

Male Posts : 382
Reputation : 7
Language : English

http://sports-forumbuzz.canadian-forum.com/

Back to top Go down

Solved Re: When members log in, immediately re-direct to main thread?

Post by LGforum Wed 07 Mar 2012, 12:18

The code works fine. Paste the exact code you used here.Or better yet your forum URL.
LGforum
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

Solved Re: When members log in, immediately re-direct to main thread?

Post by Mr. Eddster Sat 10 Mar 2012, 00:04

LGforum wrote:The code works fine. Paste the exact code you used here.Or better yet your forum URL.

This is how I put it in:

if(my_getcookie('thread_redirect')!=0 && document.getElementById('logout')) {
window.location = 'http://hankthetank.canadian-forum.com/t288-must-read-for-all-new-posters';
my_setcookie('thread_redirect',1,1);
}

I made a new account, and logged in and it didnt go to that page...

I've got javascript enabled, and WYSIWYG disabled. And i put it in all pages.
Mr. Eddster
Mr. Eddster
Forumember

Male Posts : 382
Reputation : 7
Language : English

http://sports-forumbuzz.canadian-forum.com/

Back to top Go down

Solved Re: When members log in, immediately re-direct to main thread?

Post by Mr. Eddster Sat 10 Mar 2012, 21:26

bump...
Mr. Eddster
Mr. Eddster
Forumember

Male Posts : 382
Reputation : 7
Language : English

http://sports-forumbuzz.canadian-forum.com/

Back to top Go down

Solved Re: When members log in, immediately re-direct to main thread?

Post by LGforum Sun 11 Mar 2012, 01:46

Your thread URL needs to be on the same line as the equals sign. You seemed to have put it on the next line.
LGforum
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

Solved Re: When members log in, immediately re-direct to main thread?

Post by Mr. Eddster Sun 11 Mar 2012, 01:49

LGforum wrote:Your thread URL needs to be on the same line as the equals sign. You seemed to have put it on the next line.

Nope, its on the same line... :/
Mr. Eddster
Mr. Eddster
Forumember

Male Posts : 382
Reputation : 7
Language : English

http://sports-forumbuzz.canadian-forum.com/

Back to top Go down

Solved Re: When members log in, immediately re-direct to main thread?

Post by sfghhjkyu Sun 11 Mar 2012, 02:38

Content Removed ~ Member Banned.



avatar
sfghhjkyu
New Member

Posts : 4
Reputation : 1
Language : dfjk

Back to top Go down

Solved Re: When members log in, immediately re-direct to main thread?

Post by Mr. Eddster Sun 11 Mar 2012, 22:13

Bump!
Mr. Eddster
Mr. Eddster
Forumember

Male Posts : 382
Reputation : 7
Language : English

http://sports-forumbuzz.canadian-forum.com/

Back to top Go down

Solved Re: When members log in, immediately re-direct to main thread?

Post by LGforum Mon 12 Mar 2012, 02:10

Have you got rid of or edited the default navbar at all?
LGforum
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

Solved Re: When members log in, immediately re-direct to main thread?

Post by Mr. Eddster Mon 12 Mar 2012, 21:37

LGforum wrote:Have you got rid of or edited the default navbar at all?

Huh? I have no custom navbars, just the site default ones.
Mr. Eddster
Mr. Eddster
Forumember

Male Posts : 382
Reputation : 7
Language : English

http://sports-forumbuzz.canadian-forum.com/

Back to top Go down

Solved Re: When members log in, immediately re-direct to main thread?

Post by Mr. Eddster Tue 13 Mar 2012, 22:03

bump...
Mr. Eddster
Mr. Eddster
Forumember

Male Posts : 382
Reputation : 7
Language : English

http://sports-forumbuzz.canadian-forum.com/

Back to top Go down

Solved Re: When members log in, immediately re-direct to main thread?

Post by LGforum Tue 13 Mar 2012, 22:15

Can you link me to your forum then, there may be other scripts hitting errors preventing it working.

Also, it sets a cookie so it doesn't redirect people more than once... So if you've been redirected, then it wil appear not working for you anymore.
LGforum
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

Solved Re: When members log in, immediately re-direct to main thread?

Post by Mr. Eddster Tue 13 Mar 2012, 22:17

LGforum wrote:Can you link me to your forum then, there may be other scripts hitting errors preventing it working.

Also, it sets a cookie so it doesn't redirect people more than once... So if you've been redirected, then it wil appear not working for you anymore.

http://hankthetank.canadian-forum.com/
Mr. Eddster
Mr. Eddster
Forumember

Male Posts : 382
Reputation : 7
Language : English

http://sports-forumbuzz.canadian-forum.com/

Back to top Go down

Solved Re: When members log in, immediately re-direct to main thread?

Post by LGforum Tue 13 Mar 2012, 22:24

You seem to have a JS file wth this in:
Code:

<center><meta HTTP-EQUIV="REFRESH"content="0;url='http://hankthetank.canadian-forum.com/t288-must-read-for-all-new-posters'><br><br><b>You're being redirected to"All New Users must Read"topic,please wait.</b></center>

Thats not JS, and hence causing an error.
LGforum
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

Solved Re: When members log in, immediately re-direct to main thread?

Post by Mr. Eddster Wed 14 Mar 2012, 03:24

Grr I edited the code, put this in, and it still doesn't re-direct!

if(my_getcookie('thread_redirect')!=0 && document.getElementById('logout')) {
window.location = 'http://hankthetank.canadian-forum.com/f5-must-read-for-all-new-posters';
my_setcookie('thread_redirect',1,1);
}
Mr. Eddster
Mr. Eddster
Forumember

Male Posts : 382
Reputation : 7
Language : English

http://sports-forumbuzz.canadian-forum.com/

Back to top Go down

Solved Re: When members log in, immediately re-direct to main thread?

Post by Mr. Eddster Thu 15 Mar 2012, 05:38

bumpp
Mr. Eddster
Mr. Eddster
Forumember

Male Posts : 382
Reputation : 7
Language : English

http://sports-forumbuzz.canadian-forum.com/

Back to top Go down

Solved Re: When members log in, immediately re-direct to main thread?

Post by LGforum Thu 15 Mar 2012, 10:18

try this:
Code:

if(my_getcookie('thread_redirect')!='done'&&!document.getElementById('i_icon_mini_register')){
window.location='http://hankthetank.canadian-forum.com/f5-must-read-for-all-new-posters';
my_setcookie('thread_redirect','done',1)}
LGforum
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

Solved Re: When members log in, immediately re-direct to main thread?

Post by Mr. Eddster Thu 15 Mar 2012, 20:23

LGforum wrote:try this:
Code:

if(my_getcookie('thread_redirect')!='done'&&!document.getElementById('i_icon_mini_register')){
window.location='http://hankthetank.canadian-forum.com/f5-must-read-for-all-new-posters';
my_setcookie('thread_redirect','done',1)}

Alright so once I went back to the main screen from my admin panel, it re-directed me there, but then I made a new account and it didnt redirect me there! I will ask the other members if it re-directed them to that page when they logged in!

Edit: this has worked for 2 users! Thank youvery much for finally solving this!Very Happy
Mr. Eddster
Mr. Eddster
Forumember

Male Posts : 382
Reputation : 7
Language : English

http://sports-forumbuzz.canadian-forum.com/

Back to top Go down

Solved Re: When members log in, immediately re-direct to main thread?

Post by LGforum Thu 15 Mar 2012, 23:40

It didn't redirect you the second time, because it has saved a cookie, the cookie is saved on your computer, and is not specific to the user that you sign in on. SO even if you sign in as someone else the cookie is set, hence not redirecting you.

Glad its finally sorted, I wonder what was up with the first script.
LGforum
LGforum
Hyperactive

Male Posts : 2265
Reputation : 264
Language : English
Location : UK

Back to top Go down

Solved Re: When members log in, immediately re-direct to main thread?

Post by Mr. Eddster Thu 15 Mar 2012, 23:44

LGforum wrote:It didn't redirect you the second time, because it has saved a cookie, the cookie is saved on your computer, and is not specific to the user that you sign in on. SO even if you sign in as someone else the cookie is set, hence not redirecting you.

Glad its finally sorted, I wonder what was up with the first script.

Yup it works perfectly now! Thank you.Smile
Mr. Eddster
Mr. Eddster
Forumember

Male Posts : 382
Reputation : 7
Language : English

http://sports-forumbuzz.canadian-forum.com/

Back to top Go down

Solved Re: When members log in, immediately re-direct to main thread?

Post by kirk Fri 16 Mar 2012, 00:46

Topic Solved & Locked
kirk
kirk
Forumaster

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

Back to top Go down

Back to top

- Similar topics

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