XF 1.3 Showing Red Color in Reports Count always

gginni

Active member
I want Report count > 0 to be in red color always...

This feature was available in 1.x but was not available in subsequent releases.

Can anyone let me know which css/template to change for showing Report Count > 0 in red color always

Currently, it shows red color until we click on that... once we click on that report count then color changes
 
Edit the moderator_bar template.

Replace this:
Code:
            <xen:if is="{$visitor.is_moderator} && !{$xenOptions.reportIntoForumId}">
                <a href="{xen:link reports}" class="reportedItems modLink">
                    <span class="itemLabel">{xen:phrase reported_items_short}:</span>
                    <span class="itemCount {xen:if '({$session.reportCounts.total} AND {$session.reportCounts.lastUpdate} > {$session.reportLastRead}) OR {$session.reportCounts.assigned}', 'alert'}" title="{xen:if $session.reportCounts.lastUpdate, '{xen:phrase last_report_update}: {xen:datetime $session.reportCounts.lastUpdate}'}"><xen:if is="{$session.reportCounts.assigned}">{$session.reportCounts.assigned} / {$session.reportCounts.total}<xen:else />{$session.reportCounts.total}</xen:if></span>
                </a>
            </xen:if>

With this:
Code:
            <xen:if is="{$visitor.is_moderator} && !{$xenOptions.reportIntoForumId}">
                <a href="{xen:link reports}" class="reportedItems modLink">
                    <span class="itemLabel">{xen:phrase reported_items_short}:</span>
                    <span class="itemCount alert" title="{xen:if $session.reportCounts.lastUpdate, '{xen:phrase last_report_update}: {xen:datetime $session.reportCounts.lastUpdate}'}"><xen:if is="{$session.reportCounts.assigned}">{$session.reportCounts.assigned} / {$session.reportCounts.total}<xen:else />{$session.reportCounts.total}</xen:if></span>
                </a>
            </xen:if>
 
Add the count conditional back in.

Done ;)

Below is the code:-

Code:
<xen:if is="{$visitor.is_moderator} && !{$xenOptions.reportIntoForumId}">
                <a href="{xen:link reports}" class="reportedItems modLink">
                    <span class="itemLabel">{xen:phrase reported_items_short}:</span>
                    <span class="itemCount {xen:if '({$session.reportCounts.total} > 0)', 'alert'}" title="{xen:if $session.reportCounts.lastUpdate, '{xen:phrase last_report_update}: {xen:datetime $session.reportCounts.lastUpdate}'}"><xen:if is="{$session.reportCounts.assigned}">{$session.reportCounts.assigned} / {$session.reportCounts.total}<xen:else />{$session.reportCounts.total}</xen:if></span>
                </a>
            </xen:if>
 
Top Bottom