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.
The forum of the forums
3 posters

    coloring new msg cells

    _Twisted_Mods_
    _Twisted_Mods_
    Helper
    Helper


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

    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
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51554
    Reputation : 3523
    Language : English
    Location : United States

    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.
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

    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 }
    _Twisted_Mods_
    _Twisted_Mods_
    Helper
    Helper


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

    Solved Re: coloring new msg cells

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

    ty ange ..... solved
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

    Solved Re: coloring new msg cells

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

    You're welcome Smile

    Topic archived

      Current date/time is November 12th 2024, 12:19 am