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

Forum view now uses PM shortcode rather than direct link.

This commit is contained in:
Cameron
2016-04-29 05:37:29 -07:00
parent 2915c8b1f5
commit 296fb35d2a
2 changed files with 27 additions and 8 deletions

View File

@@ -503,11 +503,17 @@ class plugin_forum_view_shortcodes extends e_shortcode
}
$text .= "<li><a href='#'>".$this->sc_posts()."</a></li>";
$text .= "<li class='divider'></li>";
if(e107::isInstalled('pm') && ($this->postInfo['post_user'] > 0))
{
$text .= "<li><a href='".e_PLUGIN_ABS."pm/pm.php?send.{$this->postInfo['post_user']}'>".$tp->toGlyph('envelope')." ".LAN_FORUM_2036." </a></li>";
if($pmButton = $tp->parseTemplate("{SENDPM: user=".$this->postInfo['post_user']."&glyph=envelope&class=pm-send}",true))
{
$text .= "<li class='divider'></li>";
$text .= "<li>".$pmButton."</li>";
}
// $text .= "<li><a href='".e_PLUGIN_ABS."pm/pm.php?send.{$this->postInfo['post_user']}'>".$tp->toGlyph('envelope')." ".LAN_FORUM_2036." </a></li>";
}
if($website = $this->sc_website())