1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-12 01:25:01 +02:00

Issue #1174 - Forum "user profile" link fixes.

This commit is contained in:
Cameron
2015-09-02 08:59:49 -07:00
parent 519e1f3f7e
commit e55e305d0c
5 changed files with 16 additions and 14 deletions

View File

@@ -454,10 +454,12 @@ class plugin_forum_view_shortcodes extends e_shortcode
$ue = $tp->parseTemplate("{USER_EXTENDED=location.text_value}",true);
$username = (empty($this->postInfo['user_name'])) ? LAN_ANONYMOUS : $this->postInfo['user_name'];
$userUrl = empty($this->postInfo['post_user']) ? '#' : e107::getUrl()->create('user/profile/view', array('user_id'=>$this->postInfo['post_user'], 'user_name'=>$username));
// e_HTTP.'user.php?id.'.$this->postInfo['post_user']
$text = '<div class="btn-group btn-block ">
<a class="btn btn-default btn-sm col-sm-10 btn-small" href="'.e_BASE.'user.php?id.'.$this->postInfo['post_user'].'">'.$username.'</a>
<a class="btn btn-default btn-sm col-sm-10 btn-small" href="'.$userUrl.'">'.$username.'</a>
<button class="btn btn-default btn-sm col-sm-2 btn-small dropdown-toggle" data-toggle="dropdown">
<span class="caret"></span>
</button>