The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

coloring new msg cells

3 posters

Go down

Solved coloring new msg cells

Post by _Twisted_Mods_ October 29th 2014, 2:36 am

ok this is from ange tut

Code:
$(function() {
  $('img[src="http://2img.net/i/fa/empty.gif"]').closest('tr').addClass('newpost');
  $('img[src="http://2img.net/i/fa/empty.gif"]').closest('tr').addClass('newpost');
});


the problem is it not only colors the new post cells but it also colors the legend for the post icons

is there a way to fix this besides removing the legend
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2108
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: coloring new msg cells

Post by SLGray October 29th 2014, 5:33 am

Could you post a screenshot?


coloring new msg cells Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51489
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: coloring new msg cells

Post by Ange Tuteur October 29th 2014, 6:13 am

Hello _Twisted_Mods_,

Go to Administration Panel > Display > Templates > General > index_body Edit

Find :
Code:
<!-- BEGIN switch_legend -->
<table border="0" cellspacing="3" cellpadding="0" align="center">
 <tr>
 <td align="center" width="20"><img src="{FORUM_NEW_IMG}" alt="{L_NEW_POSTS}" /></td>
 <td><span class="gensmall">{L_NEW_POSTS}</span></td>
 <td></td>
 <td align="center" width="20"><img src="{FORUM_IMG}" alt="{L_NO_NEW_POSTS}" /></td>
 <td><span class="gensmall">{L_NO_NEW_POSTS}</span></td>
 <td>&nbsp;&nbsp;</td>
 <td align="center" width="20"><img src="{FORUM_LOCKED_IMG}" alt="{L_FORUM_LOCKED}" /></td>
 <td><span class="gensmall">{L_FORUM_LOCKED}</span></td>
 </tr>
</table>
<!-- END switch_legend -->

Replace by :
Code:
<!-- BEGIN switch_legend -->
<table id="picture_legend" border="0" cellspacing="3" cellpadding="0" align="center">
 <tr>
 <td align="center" width="20"><img src="{FORUM_NEW_IMG}" alt="{L_NEW_POSTS}" /></td>
 <td><span class="gensmall">{L_NEW_POSTS}</span></td>
 <td></td>
 <td align="center" width="20"><img src="{FORUM_IMG}" alt="{L_NO_NEW_POSTS}" /></td>
 <td><span class="gensmall">{L_NO_NEW_POSTS}</span></td>
 <td>&nbsp;&nbsp;</td>
 <td align="center" width="20"><img src="{FORUM_LOCKED_IMG}" alt="{L_FORUM_LOCKED}" /></td>
 <td><span class="gensmall">{L_FORUM_LOCKED}</span></td>
 </tr>
</table>
<!-- END switch_legend -->

Save and publish. Add


Then add this rule to your stylesheet :
Display > Colors > CSS stylesheet
Code:
#picture_legend td { background:none !important }
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: coloring new msg cells

Post by _Twisted_Mods_ October 29th 2014, 6:33 am

ty ange ..... solved
_Twisted_Mods_
_Twisted_Mods_
Helper
Helper

Male Posts : 2108
Reputation : 336
Language : English
Location : Ms

http://liquidcode.forumotion.com

Back to top Go down

Solved Re: coloring new msg cells

Post by Ange Tuteur October 29th 2014, 6:39 am

You're welcome Smile

Topic archived
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum