Use $username in a hyperlink

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Sitelabs
New Member
New Member
Posts: 4
Joined: Thu Mar 11, 2010 12:36 pm

Use $username in a hyperlink

Post by Sitelabs »

Hello,

First of all my apologies for my poor english.

What i am trying to accomplish is that a user logged in trough the front end user system is redirected or has the possibility to go to his own page trough a link.

For example user: Sander loges in through FEU. he will be directed to the page where he can change his setting and so on. I want to add a link to a page customer/sander.html

First i managed to do this by using the urlparremeter in cms_selflink,

Code: Select all

{cms_selflink page="customer" urlparam="$username" text="customer page"} 
I was directed to the page customerSander (in this example) and it wasn't nice but it worked.

however i turned to the nice url and then this trick won't work anymore.

anyone has an idea? i tried a custom tag but my PHP is al little limited.

Thanks in advance.
Sander
Post Reply

Return to “Modules/Add-Ons”