I would like to allow users to navigate to/drill down into additional bio information. I tried adding custom content with <a href="/bio_detailed/<?php print $arg(0); ?>">Detailed Member Profile</a>, however this errors out. Any tips on how to use the %user argument in such a custom manner?

Comments

nevets’s picture

You don't say what the error is but I am guessing you might want arg(1) instead of arg(0) but that depends on the unaliased path to your user profile.

kulfi’s picture

UPDATE - the following works for me:

<?php 

global $base_url;
$uid = arg(1); 
print '<a href="' . $base_url . '/detailed_bio/' . arg(1) . '">More</a>';

?>

If this is not too far off topic, what is the difference between $arg(1) and arg(1)?

michelle’s picture

Status: Active » Closed (fixed)

$arg(1) isn't anything that I'm aware of.

Michelle