code to forward to a user's profile

hi,

is it possible to replace the following code

<?php
if (isloggedin())    forward('activity');
?>

 

with

 

<?php
if (isloggedin())    forward("profile/$username");
?>

 

is i replace this code i can see the url something like this

localhost/ssn/profile/$username

 

it does not read the username which is given in the username field

 

Feedback and Planning

Feedback and Planning

Discussions about the past, present, and future of Elgg and this community site.