1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 06:07:32 +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() function sc_threaddatestamp()
{ {
$gen = e107::getDateConvert(); // XXX _URL_ check if all required info is there $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() function sc_post()

View File

@@ -19,8 +19,8 @@ $sc_style['LASTEDIT']['pre'] = "<br /><br /><span class='smallblacktext'>[ ".LAN
$sc_style['LASTEDITBY']['pre'] = ' '.FORLAN_BY.' '; $sc_style['LASTEDITBY']['pre'] = ' '.FORLAN_BY.' ';
$sc_style['LASTEDITBY']['post'] = ' ]</span>'; $sc_style['LASTEDITBY']['post'] = ' ]</span>';
$sc_style['LEVEL']['pre'] = "<div class='spacer'>"; $sc_style['LEVEL']['pre'] = "";
$sc_style['LEVEL']['post'] = "</div>"; $sc_style['LEVEL']['post'] = "";
$sc_style['ATTACHMENTS']['pre'] = "<div id='forum_attachments'><br />"; $sc_style['ATTACHMENTS']['pre'] = "<div id='forum_attachments'><br />";
$sc_style['ATTACHMENTS']['post'] = "</div>"; $sc_style['ATTACHMENTS']['post'] = "</div>";
@@ -31,6 +31,9 @@ $sc_style['ANON_IP']['post'] = "</div>";
$sc_style['USER_EXTENDED']['location.text_value']['mid'] = ": "; $sc_style['USER_EXTENDED']['location.text_value']['mid'] = ": ";
$sc_style['USER_EXTENDED']['location.text_value']['post'] = "<br />"; $sc_style['USER_EXTENDED']['location.text_value']['post'] = "<br />";
/*
$FORUMSTART = "<a id='top'></a><div style='text-align:center'> $FORUMSTART = "<a id='top'></a><div style='text-align:center'>
<div class='spacer'> <div class='spacer'>
<table style='".USER_WIDTH."' class='fborder table'> <table style='".USER_WIDTH."' class='fborder table'>
@@ -284,7 +287,7 @@ $FORUMDELETEDSTYLE = "<tr>
<td colspan='2'> <td colspan='2'>
</td> </td>
</tr>"; </tr>";
*/
$FORUM_CRUMB['sitename']['value'] = "<a class='forumlink' href='{SITENAME_HREF}'>{SITENAME}</a>"; $FORUM_CRUMB['sitename']['value'] = "<a class='forumlink' href='{SITENAME_HREF}'>{SITENAME}</a>";
$FORUM_CRUMB['sitename']['sep'] = " :: "; $FORUM_CRUMB['sitename']['sep'] = " :: ";
@@ -350,19 +353,21 @@ $FORUMTOPIC_TEMPLATE['end'] = "</tr></table>
$FORUMTOPIC_TEMPLATE['thread'] =" $FORUMTOPIC_TEMPLATE['thread'] ="
<tr> <tr>
<td class='forumheader' style='vertical-align:middle'>{NEWFLAG} {USERCOMBO}{ANON_IP}</td> <td class='forumheader' style='vertical-align:middle'>{NEWFLAG} {USERCOMBO}{ANON_IP}</td>
<td class='smallblacktext'>{THREADDATESTAMP}</td> <td>{THREADDATESTAMP}</td>
<td style='text-align:right'>{POSTOPTIONS}</td> <td style='text-align:right'>{POSTOPTIONS}</td>
</tr> </tr>
<tr> <tr>
<td class='forumheader3' style='vertical-align:top'> <td class='forumheader3'>
{CUSTOMTITLE} {CUSTOMTITLE}
{AVATAR} {AVATAR}
<div>
<small> <small>
{LEVEL=badge}{LEVEL=pic} {LEVEL=badge} {LEVEL=pic}
</small> </small>
</div>
</td> </td>
<td colspan='2' class='forumheader3' style='vertical-align:top'> <td colspan='2'>
{POLL} {POLL}
{POST} {POST}