Arrow

Custom user url | Peter's Login Redirect | Forum

Back to the login redirect plugin page

Please consider registering
guest

Log In

Lost password?
Advanced Search

— Forum Scope —

  

— Match —

   

— Forum Options —

   

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Custom user url
October 19, 2010
11:26 pm
Sam
Guest

Can you explain the syntax [variable]username[/variable] in your URLs so that the system will build a dynamic URL upon each login, replacing that text with the user's username?

Many thanks Peter

October 20, 2010
10:01 am
Peter
Admin
Forum Posts: 841
Offline

Supposing that you have built a landing page that is tailored to the user, such as:

h ttp://yoursite.com/landing.php?username=joe
h ttp://yoursite.com/landing.php?username=emily

If you were to create redirect URL rules per user, this would be a lot of work. Instead, in the plugin's Settings page, you could enter as a URL:

h ttp://yoursite.com/landing.php?username=[variable]username[/variable]

Then, when the user "joe" logs in, he is redirected to landing.php?username=joe; when "emily" logs in, she is redirect to landing.php?username=emily. When any other user logs in, the URL is based on their username, so you don't have to add more rules whenever new users register.

Does that help?

March 1, 2012
6:28 pm
wagner
Guest

Peter,

Boa noite.
compreendi bem a função, mas me da um exemplo.
seguinte, eu preciso usar o link

http://www.meulink.com/membros/USUARIO

Para conseguir esta função, o que devo fazer?

Tentei diversas vezes e não conseguir, agradeço se ajudar.
abraços.

Texto original traduzido para Inglês:

Peter,

Good evening.
well understood function, but give me an example.
Next, I need to use the link

http://www.meulink.com / members / USER

To achieve this function, what should I do?

I tried several times and can not, thanks to help.
hugs.

March 1, 2012
7:37 pm
Peter
Admin
Forum Posts: 841
Offline

Hi, you would enter this as your redirect URL:

h ttp://www.meulink.com/members/[variable]username[/variable]