PDA

View Full Version : Show "Moderator Log" in each thread only for moderators


ElForro
04-30-2008, 08:13 PM
I would like to show the "Moderator Log" that appears while EDITING a Thread, but in every thread, only for moderators...


I mean, i need to use this code (from the template "threadadmin_editthread"):

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tr>
<td class="tcat" colspan="5">
<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('editthread_modlog')"><img id="collapseimg_editthread_modlog" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_editthread_modlog].gif" alt="" border="0" /></a>
$vbphrase[moderator_log]
</td>
</tr>
<tbody id="collapseobj_editthread_modlog" style="$vbcollapse[collapseobj_editthread_modlog]">
<tr>
<td class="thead" nowrap="nowrap">$vbphrase[date]</td>
<td class="thead" nowrap="nowrap">$vbphrase[username]</td>
<td class="thead" align="center">$vbphrase[action]</td>
<td class="thead" align="center">$vbphrase[post]</td>
<if condition="$show['ipaddress']">
<td class="thead" nowrap="nowrap">$vbphrase[ip_address]</td>
</if>
</tr>
$logbits
</tbody>
</table>

And use it in the "SHOWTHREAD" template...

I've tried... But the phrases are not working:

- $vbphrase[moderator_log]
- $vbphrase[date]
- $vbphrase[username]
- $vbphrase[action]
- $vbphrase[post]
- $vbphrase[ip_address]

and the $logbits..


Any idea? This would be VERY important for my moderators.. So they can see what actions has been made to that thread without having to go to Edit the thread...

I see that all that variables are working because they're in POSTINGS.PHP... Is possible to use just those variables in showthread.php using a hook or something with no need to edit the .PHP file?