mirror of
https://github.com/e107inc/e107.git
synced 2025-08-16 11:36:08 +02:00
More comment, user, usersetting fixes.
This commit is contained in:
@@ -101,13 +101,21 @@ class comment_shortcodes extends e_shortcode
|
||||
|
||||
function sc_comment_avatar($parm)
|
||||
{
|
||||
$height = e107::getPref("im_height");
|
||||
$width = e107::getPref("im_width");
|
||||
|
||||
$tp = e107::getParser();
|
||||
|
||||
//
|
||||
return $tp->parseTemplate("{USER_AVATAR=".$this->var['user_image']."}");
|
||||
exit;
|
||||
$text = $tp->parseTemplate("{USER_AVATAR=".$this->var['user_image']."}");
|
||||
$text .= "<div class='field-help' style='display;none;'>
|
||||
<div class='left'>";
|
||||
$text .= "<h2>".$this->sc_username()."</h2>";
|
||||
// $text .= e107::getDate()-> // convert($this->var['user_lastvisit'],'short');
|
||||
$text .= $this->sc_joined()."<br />".$this->sc_comments()."<br />".$this->sc_rating().$this->sc_location;
|
||||
|
||||
$text .= "
|
||||
</div>
|
||||
</div>";
|
||||
return $text;
|
||||
}
|
||||
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@@ -44,7 +44,7 @@ function user_avatar_shortcode($parm='')
|
||||
{
|
||||
$img = (strpos($image,"://")!==false) ? $image : $tp->thumbUrl(e_MEDIA."avatars/".$image,"aw=".$width."&ah=".$height);
|
||||
$text = "<img class='user-avatar e-tip' src='".$img."' alt='' style='width:".$width."px; height:".$height."px' />
|
||||
<div class='field-help' style='display;none'>User info here</div>";
|
||||
";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user