View Full Version : [3.5] Grey-out unapproved/moderated posts in threads


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.

darnoldy
19th July 2005, 11:14 PM
Floris-

Very nice! The only modification would suggest is making the header red--which is more indicative of something that needs attention--instead of grey.

--don

Neeto
18th August 2005, 04:08 AM
This is a great idea!

DarkWarriorXII
18th August 2005, 02:01 PM
Great idea, Floris! This is a very useful mod. :)

Walim
21st September 2005, 01:20 PM
Very nice IDea .. i hope this going to be Standard feature in vB :)

javajohn
13th April 2006, 12:02 PM
wow thanks it looks quit good