Forums | Mahara Community

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


Rocky YIP's profile picture
Posts: 28

07 September 2011, 23:50

Hi,

Mahara generated View URL automatically.

Does anyone know how to change it from

http://mahara.org/user/view.php?id=3 to

http://mahara.org/user/view.php?user=johnpower

where johnpower is the user login name to Mahara system?

 

Best Rgds,

Rocky.

anonymous profile picture
Account deleted
Posts: 19

29 September 2011, 0:16

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={$sbdata.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.

Regards..
Siddharth

2 results