string smarty_modifier_userprofilelink(
$string $string, [$class $class = ''], [$image $image = ''])
|
|
Smarty modifier to create a link to a users profile
Example
Simple version, shows $username <!--[$username|userprofilelink]--> Simple version, shows $username, using class="classname" <!--[$username|userprofilelink:classname]--> Using profile.gif instead of username, no class <!--[$username|userprofilelink:'':'images/profile.gif']-->
Using language depending image from pnimg. Note that we pass the pnimg result array to the modifier as-is <!--[ pnimg src='profile.gif' assign=profile]--> <!--[$username|userprofilelink:'classname':$profile]-->
Tags:
Parameters
| $string |
$string |
string the users name |
| $class |
$class |
string the class name for the link (optional) |
| $image |
$image |
string/array the image to show instead of the username (optional) may be an array as created by pnimg |