1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 03:40:37 +02:00

More Forum template tweaks

This commit is contained in:
Cameron
2013-03-12 05:57:39 -07:00
parent 5a1eab32d6
commit 6b91b8b3ff
2 changed files with 19 additions and 8 deletions

View File

@@ -27,10 +27,16 @@ class plugin_forum_view_shortcodes extends e_shortcode
}
}
/**
* What does this do?
*/
function sc_threaddatestamp()
{
$gen = e107::getDateConvert(); // XXX _URL_ check if all required info is there
return "<a id='post_{$this->postInfo['post_id']}' href='".$this->e107->url->create('forum/thread/post', array('name' => $this->postInfo['thread_name'], 'thread' => $this->postInfo['post_thread'], 'id' => $this->postInfo['post_id']))."'>".IMAGE_post."</a> ".$gen->convert_date($this->postInfo['post_datestamp'], 'forum');
// XXX what is this line meant to do?
// $text = "<a id='post_{$this->postInfo['post_id']}' href='".$this->e107->url->create('forum/thread/post', array('name' => $this->postInfo['thread_name'], 'thread' => $this->postInfo['post_thread'], 'id' => $this->postInfo['post_id']))."'>".IMAGE_post."</a> ";
return $gen->convert_date($this->postInfo['post_datestamp'], 'forum');
}
function sc_post()