Forums | Mahara Community

Developers /
Change the View URL from ?id=3 to ?user=johnpower

Rocky YIP's profile picture
Posts: 28

07 September 2011, 11:50 PM


Mahara generated View URL automatically.

Does anyone know how to change it from to

where johnpower is the user login name to Mahara system?


Best Rgds,


Siddharth's profile picture
Posts: 19

29 September 2011, 12:16 AM

Hi Rocky,

May I know on which place you want to replace the view URL?

I have tried to apply it on the 'Profile' sideblock in my mahara site, by changing in following code.

I changed in the file mahara//theme/raw/templates/sideblocks/profile.tpl and replace the line <a href="{$WWWROOT}user/view.php?id={$}"> for the link with '<a href="{$WWWROOT}user/view.php?username={$sbdata.username}">' in the first div and it is working. You can try at the place where you want to use it in your mahara system.

Hope that Help.


2 results