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.

Request for redirect codes

View previous topic View next topic Go down

In progress Request for redirect codes

Post by OMMA on 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. I hope I posted in the right section as well. OK what I need is...

Code that redirects the user to aHTML pageafter 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
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 on August 6th 2015, 8:39 pm

Anyone?

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 on August 8th 2015, 11:05 am

Try to use the portal page.

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 on 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


Remember to mark your topic when a solution is found.

brandon_g
Support Moderator
Support Moderator

Male Posts : 5359
Reputation : 489
Language : English
Location : USA

http://broadcastingduo.forumotion.com/

Back to top Go down

In progress Re: Request for redirect codes

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

Thanks for thesuggestions but neither will do. I dont wantviewers to be redirected toa 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 theviewer to a html pageonly "after" they register or log in.

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 on 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


Remember to mark your topic when a solution is found.

brandon_g
Support Moderator
Support Moderator

Male Posts : 5359
Reputation : 489
Language : English
Location : USA

http://broadcastingduo.forumotion.com/

Back to top Go down

In progress Re: Request for redirect codes

Post by Ange Tuteur on 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
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

In progress Re: Request for redirect codes

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

I appreciate yourreply Ange. Not a perfect solution but works. Thanks.

OMMA
Forumember

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

http://omma.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