1
0
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:
CaMer0n
2012-06-19 12:53:48 +00:00
parent aa4e5c0ee7
commit 63ce10c606
7 changed files with 733 additions and 625 deletions

View File

@@ -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

View File

@@ -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
{