Floris
17th June 2005, 12:24 AM
[3.5] Grey-out unapproved/moderated posts in threads
This small template modification shows how to make it easier for staff members to view which posts are unapproved/moderated inside a thread by changing their appearance to grey. It will show you how to work with which conditional to achieve a unique look. You can go as far as you want with this on your own design of course. But here are the basics.
Instructions:
* Open the template 'postbit'
* Find this code:<table class="tborder" id="post$post[postid]" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
* Replace it with this code:<table
<if condition="$show['moderated']">
class="modborder"
<else />
class="tborder"
</if>
id="post$post[postid]" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
* Still in the same template, find this code: <td class="thead" $post[scrolltothis]>
* Replace it with this code: <td
<if condition="$show['moderated']">
class="modhead"
<else />
class="thead"
</if>
$post[scrolltothis]>
* Save the template
* Now go to the Styles & Templates section > Main CSS > and browse down to the Additional CSS Definitions and in the second textarea enter this code:.modborder
{
background-color: #FFFFFF;
color: #333333;
border: 1px solid #333333;
}
.modhead
{
background: #878787;
color: #333333;
font: bold 11px tahoma, verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
}
* And save the page.
Screenshot: http://creations.nl/screenshot_grey.jpg
Enjoy.
This small template modification shows how to make it easier for staff members to view which posts are unapproved/moderated inside a thread by changing their appearance to grey. It will show you how to work with which conditional to achieve a unique look. You can go as far as you want with this on your own design of course. But here are the basics.
Instructions:
* Open the template 'postbit'
* Find this code:<table class="tborder" id="post$post[postid]" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
* Replace it with this code:<table
<if condition="$show['moderated']">
class="modborder"
<else />
class="tborder"
</if>
id="post$post[postid]" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
* Still in the same template, find this code: <td class="thead" $post[scrolltothis]>
* Replace it with this code: <td
<if condition="$show['moderated']">
class="modhead"
<else />
class="thead"
</if>
$post[scrolltothis]>
* Save the template
* Now go to the Styles & Templates section > Main CSS > and browse down to the Additional CSS Definitions and in the second textarea enter this code:.modborder
{
background-color: #FFFFFF;
color: #333333;
border: 1px solid #333333;
}
.modhead
{
background: #878787;
color: #333333;
font: bold 11px tahoma, verdana, geneva, lucida, 'lucida grande', arial, helvetica, sans-serif;
}
* And save the page.
Screenshot: http://creations.nl/screenshot_grey.jpg
Enjoy.