News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Show Different Row Background if Notify Topic is On

Started by GongShow, June 04, 2008, 03:15:51 PM

Previous topic - Next topic

GongShow

I want a quick visual indicator for members to see if they have notification set to on for certain topics.  I think this could be a pretty basic mod but I just need a starting point.  I am unsure what file I need to edit but I believe it could be Display.template.php.

I can add a new css entry for notify being on:

.windowbgN
{
   color: #000000;
   background: #FBFCFD url(images/windowbgN.gif) repeat-x;
}

and have that set the image set to whatever I want that will stand out.

How do I set the board to recognize when the member has notify on for the topic and set the colour accordingly?

Thanks in advance.

GongShow

Somehow my attempt didn't work.

echo '
<table width="100%" cellpadding="3" cellspacing="0" border="0">
<tr><td class="'if ($member['notify'] = yeppers) windowbgN else , $message['alternate'] == 0 ? 'windowbg' : ' windowbg2', '">';

GongShow


Advertisement: