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.

Request for redirect codes

4 posters

Go down

In progress Request for redirect codes

Post by OMMA August 3rd 2015, 7:16 pm

Hello.  I dont know why my previous topic was locked.  Someone here knows the answer so why lock it before I get it?  I checked the FAQ and didn't see anything that could help me.  I may not know what to look for though. Request for redirect codes Icon_redface  I hope I posted in the right section as well.  OK what I need is...

Code that redirects the user to a HTML page after they register or log in - Basically I created a HTML page with important links on it.  Now I need a code that redirects members to it after they register or log in.

Can anyone help me on this please?


Last edited by OMMA on August 6th 2015, 8:42 pm; edited 1 time in total
OMMA
OMMA
Forumember

Male Posts : 59
Reputation : 1
Language : English
Location : USA

http://omma.forumotion.com

Back to top Go down

In progress Re: Request for redirect codes

Post by OMMA August 6th 2015, 8:39 pm

Anyone?
OMMA
OMMA
Forumember

Male Posts : 59
Reputation : 1
Language : English
Location : USA

http://omma.forumotion.com

Back to top Go down

In progress Re: Request for redirect codes

Post by Najerj August 8th 2015, 11:05 am

Try to use the portal page.
avatar
Najerj
Forumember

Posts : 25
Reputation : 2
Language : English

http://royalflyff.forumtl.com/

Back to top Go down

In progress Re: Request for redirect codes

Post by brandon_g August 8th 2015, 1:46 pm

You could also use the welcome private message system. That is what I use to give helpful links to users on my forum. Wink


If you still wish to do this the current way, it should be possible for someone to create a code for you.


-Brandon


Request for redirect codes Brando10
Remember to mark your topic Request for redirect codes Solved15 when a solution is found.
General Rules | Tips & Tricks | FAQ | Forgot Founder Password?

Request for redirect codes Scre1476
Team Leader
Review Section Rules | Request A Review | Sticker Points
brandon_g
brandon_g
Manager
Manager

Male Posts : 10106
Reputation : 923
Language : English
Location : USA

https://www.broadcastingduo.com

Back to top Go down

In progress Re: Request for redirect codes

Post by OMMA August 8th 2015, 11:06 pm

Thanks for the suggestions but neither will do.  I dont want viewers to be redirected to a page when they simply visit as a guest.  I want them to view whatever part of the forum they choose.  I need a code that redirects the viewer to a html page only "after" they register or log in.
OMMA
OMMA
Forumember

Male Posts : 59
Reputation : 1
Language : English
Location : USA

http://omma.forumotion.com

Back to top Go down

In progress Re: Request for redirect codes

Post by brandon_g August 9th 2015, 3:25 pm

Guests cant recieve private messages, therefore they can't be given the links before they register. I just was saying this because you didnt provide an explaination as to why pm system doesnt work.


Alright, you still want the html solution, stand by and I am sure someone will assist you with this.


-Brandon


Request for redirect codes Brando10
Remember to mark your topic Request for redirect codes Solved15 when a solution is found.
General Rules | Tips & Tricks | FAQ | Forgot Founder Password?

Request for redirect codes Scre1476
Team Leader
Review Section Rules | Request A Review | Sticker Points
brandon_g
brandon_g
Manager
Manager

Male Posts : 10106
Reputation : 923
Language : English
Location : USA

https://www.broadcastingduo.com

Back to top Go down

In progress Re: Request for redirect codes

Post by Ange Tuteur August 9th 2015, 4:13 pm

Hi @OMMA,

I apologize for the wait. This would be the best solution you could utilize :
Code:
$(function() {
  if (_userdata.user_posts == 0 && _userdata.session_logged_in && !my_getcookie('fa_visited')) {
    my_setcookie('fa_visited', 'true');
    window.location.href = '/h1-my-html-page';
  }
});

You'll only be redirected if you're logged in and have 0 posts, which means you're new to the forum. You make use of cookies so the user does not get redirected more than once. HOWEVER, if the user clears their cookies, they'll get redirect again. This will occur until the user has made 1 post. To change the redirect, replace /h1-my-html-page by the URL or path of your HTML page.

The script should be applied under JS codes management, in all the pages.

Also, regarding your topic being locked, please see this topic for more information.
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

In progress Re: Request for redirect codes

Post by OMMA August 10th 2015, 6:37 pm

I appreciate your reply Ange.  Not a perfect solution but works.  Thanks.
OMMA
OMMA
Forumember

Male Posts : 59
Reputation : 1
Language : English
Location : USA

http://omma.forumotion.com

Back to top Go down

Back to top


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