usernames in muscol comments...

ViRulent
ViRulent
Offline
0
I'm in com_muscol/views/album/tmpl/default.php

I searched for the username part

(div class="comment_name")(? echo $comment-)username; ?)

EDIT : sorry, I can't post code ?? I changed the for ( )

Now, I would like to link the username with his profile !
I know my profiles URL are : /connection/profile/userid-44

so could it be possible to add something like (a href="/connection/profile/userid-%userid%") around it...? can you help me with this if it's not too complicated ?
Responses (2)
  • Accepted Answer

    Thursday, September 15 2011, 03:24 PM - #Permalink
    0
    it shoudl be very easy.

    the funciton to create URLs is JRoute::_('index.php?...........')

    you must fill the .... part with whatever you want (the real url to the user profile...! I believe the user id is stored in $comment->user_id
    The reply is currently minimized Show
  • Accepted Answer

    ViRulent
    ViRulent
    Offline
    Friday, September 16 2011, 01:32 AM - #Permalink
    0
    omg thank you very much !

    it tooks me a few attempts but it works perfectly now !

    http://img831.imageshack.us/img831/545/userprofile.png

    :))
    The reply is currently minimized Show
Your Reply