1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to include username in a link

Discussion in 'Styling and Customization Questions' started by NDM, Nov 23, 2012.

  1. NDM

    NDM Member

    Hi there,

    I am customizing my forum heavily and now I am working on integrating a few external scripts. Here is where my issue comes in.

    I am trying to add a line to the message_user_info template, which will basically be a link like:

    /username-gallery.html

    My issue is basically that I do not know how to include the username inside the message_user_info template. I tried various things, but no luck. I tried various things like /{$user}-gallery.html and so on, but with no success.

    Is there a simply way to use the username within templates?

    Thank you for your time.
     
  2. NDM

    NDM Member

    Found the solution by trying, so in case you are looking for something similar, here is the solution:

    <a href="{xen:string censor, $user.username, '-'}-gallery.html">User Gallery</a>
     
    EQnoble and Jake Bunce like this.
  3. EQnoble

    EQnoble Well-Known Member

    thanks for sharing that
     

Share This Page