Well, I got it on my own the following way:
In comprofilerBuildRoute I added the following code before segments[]=... and changed that line too:
Code:
$sqluid = 'SELECT' . $database->quoteName( 'id' )
."\n FROM " . $database->quoteName( '#__users' )
."\n WHERE " . $database->quoteName( 'username' ) . " = '".$query['user'] . "'";
$database->setQuery( $sqluid, 0, 1 );
$userid = $database->loadResult();
$segments[] = rawurlencode( str_replace( '.', ',', $userid ) ). "-cn-" .$query['user'];
In comprofilerParseRoute I added the following line at first in the if-block:
Code:
list($userid, $user) = explode("-cn-", str_replace( array( ':', ',' ), array( '-', '.' ), $segments[1] ));
and changed the line
Code:
$vars['user'] = (int) $user;
simply into the following:
Code:
if ( $userid == (int) $user ) {
$vars['user'] = (int) $user;
}
Is that enough or do I have to change some more?
Is it okay just to use the $userid-variable (added by myself) of the first function in the second?
Thank you for your help!!
Best regards,
Stefan