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

${task.key} (${task.type}): User ranks now configurable and render properly. Still need to work on moving config from forum, and establishing a default config.

This commit is contained in:
mcfly
2010-03-13 18:59:28 +00:00
parent 568859aef2
commit 5306afd727
6 changed files with 335 additions and 395 deletions

View File

@@ -11,7 +11,7 @@ class forum_shortcodes
var $postInfo;
var $thread;
var $forum;
function forum_shortcodes()
{
$this->e107 = e107::getInstance();
@@ -276,16 +276,17 @@ class forum_shortcodes
{
if (!$this->postInfo['post_user']) { return ''; }
$rankInfo = $this->e107->userRank->getRanks($this->postInfo['post_user']);
$rankInfo = e107::getRank()->getRanks($this->postInfo['post_user']);
if(!$parm) { $parm = 'name'; }
switch($parm)
{
case 'userid' :
return $this->sc_memberid();
break;
case 'special':
if(isset($rankInfo['special'])) { return $rankInfo['special']; }
if($this->forum->isModerator($this->postInfo['post_user']))
@@ -294,7 +295,7 @@ class forum_shortcodes
}
return '';
break;
default:
return varset($rankInfo[$parm], '');
break;