Warning: The author of this contribution does not provide support for it anymore.

Red Blinking PM

Dont hide unread pms number when it =0 - Red Blinking PM

Dont hide unread pms number when it =0

by Citromon » Sun May 12, 2013 4:21 pm

Hello,

RBPM shows number of unread messages, but if it = 0, counter of unread messages disappear.

Can you help to make this counter always visible?
What the anvil? What dread grasp
Dare its deadly terrors clasp?
User avatar
Citromon
Registered User
Posts: 129
Joined: Wed Feb 15, 2012 5:22 pm
Location: Minsk, Belarus
Contact:

Re: Dont hide unread pms number when it =0

by all4phone » Mon Jun 10, 2013 8:40 am

I see no point in such action.

But if you really care for this, please edit the overall_header.html file, for example in this way:
Find:

Code: Select all

<!-- IF S_DISPLAY_PM --> &bull;
   <!-- IF S_RBPM_ENABLE and S_RBPM_INSC_ENABLE and S_USER_NEW_PRIVMSG and S_RBPM_ENABLE_BACKGROUND -->
   <span style="background:rgba({S_RBPM_BACKGROUND_R},{S_RBPM_BACKGROUND_G},{S_RBPM_BACKGROUND_B},{S_RBPM_BACKGROUND_TRANSP}); padding: 3px 0px 3px 7px; border: {S_RBPM_BORDER_WIDTH} {S_RBPM_BORDER_STYLE} {S_RBPM_BORDER_COLOUR}; border-right: 0px; -webkit-border-radius: {S_RBPM_BORDER_RADIUS}; -khtml-border-radius: {S_RBPM_BORDER_RADIUS}; -moz-border-radius: {S_RBPM_BORDER_RADIUS}; border-radius: {S_RBPM_BORDER_RADIUS}; -webkit-border-radius-topright: 0px; -khtml-border-radius-topright: 0px; -moz-border-radius-topright: 0px; border-radius-topright: 0px; -webkit-border-radius-bottomright: 0px; -khtml-border-radius-bottomright: 0px; -moz-border-radius-bottomright: 0px; border-radius-bottomright: 0px;">
   <!-- ELSE -->
   <span style=" background-color: none">
   <!-- ENDIF -->
      <!-- IF S_RBPM_ENABLE and S_USER_NEW_PRIVMSG -->   
      <span class="blink" style="color:{S_RBPM_COLOR}; font:{S_RBPM_ITALIC} {S_RBPM_BOLD} {S_RBPM_SIZE} {S_RBPM_FAMILY}; letter-spacing:{S_RBPM_SPACING}; text-transform:{S_RBPM_TRANSFORM}; text-shadow: {S_RBPM_SHADOWH} {S_RBPM_SHADOWV} {S_RBPM_SHADOW_BLUR} {S_RBPM_SHADOW_COLOUR}; text-decoration:{S_RBPM_DECORATION};">
         {S_USER_NEW_PRIVMSG}
      </span>
      <!-- ELSE -->
      <strong>{S_USER_NEW_PRIVMSG}</strong>
      <!-- ENDIF -->
      <a href="{U_PRIVATEMSGS}">
      <!-- IF S_RBPM_INSC_ENABLE and S_USER_NEW_PRIVMSG -->
      <span class="blink" style="color:{S_RBPM_INSC_COLOR}; font:{S_RBPM_ITALIC} {S_RBPM_VARIANT} {S_RBPM_BOLD} {S_RBPM_SIZE} {S_RBPM_FAMILY}; letter-spacing:{S_RBPM_SPACING}; text-transform:{S_RBPM_TRANSFORM}; text-shadow: {S_RBPM_SHADOWH} {S_RBPM_SHADOWV} {S_RBPM_SHADOW_BLUR} {S_RBPM_INSC_SHADOW_COLOUR}; text-decoration:{S_RBPM_DECORATION};">
         {PRIVATE_MESSAGE_INFO}
      </span>
         <!-- IF S_RBPM_ENABLE_UNREAD and PRIVATE_MESSAGE_INFO_UNREAD -->
         <span style="color:{S_RBPM_UNREAD_COLOR}">
            <!-- IF S_RBPM_ENABLE_UNREAD_BLINK -->
            <span class="blink">& {PRIVATE_MESSAGE_INFO_UNREAD}</span>
            <!-- ELSE -->
            & {PRIVATE_MESSAGE_INFO_UNREAD}
            <!-- ENDIF -->
         </span>
         <!-- ELSE -->
         <!-- ENDIF -->
      <!-- ELSE -->
         {PRIVATE_MESSAGE_INFO}
            <!-- IF S_RBPM_ENABLE_UNREAD and PRIVATE_MESSAGE_INFO_UNREAD -->
               & {PRIVATE_MESSAGE_INFO_UNREAD}
            <!-- ELSE -->
            <!-- ENDIF -->
      <!-- ENDIF -->
      </a>
   </span>
<!-- ENDIF -->

Replace with:

Code: Select all

<!-- IF S_DISPLAY_PM --> &bull;
   <!-- IF S_RBPM_ENABLE and S_RBPM_INSC_ENABLE and S_USER_NEW_PRIVMSG and S_RBPM_ENABLE_BACKGROUND -->
   <span style="background:rgba({S_RBPM_BACKGROUND_R},{S_RBPM_BACKGROUND_G},{S_RBPM_BACKGROUND_B},{S_RBPM_BACKGROUND_TRANSP}); padding: 3px 0px 3px 7px; border: {S_RBPM_BORDER_WIDTH} {S_RBPM_BORDER_STYLE} {S_RBPM_BORDER_COLOUR}; border-right: 0px; -webkit-border-radius: {S_RBPM_BORDER_RADIUS}; -khtml-border-radius: {S_RBPM_BORDER_RADIUS}; -moz-border-radius: {S_RBPM_BORDER_RADIUS}; border-radius: {S_RBPM_BORDER_RADIUS}; -webkit-border-radius-topright: 0px; -khtml-border-radius-topright: 0px; -moz-border-radius-topright: 0px; border-radius-topright: 0px; -webkit-border-radius-bottomright: 0px; -khtml-border-radius-bottomright: 0px; -moz-border-radius-bottomright: 0px; border-radius-bottomright: 0px;">
   <!-- ELSE -->
   <span style=" background-color: none">
   <!-- ENDIF -->
      <!-- IF S_RBPM_ENABLE and S_USER_NEW_PRIVMSG -->   
      <span class="blink" style="color:{S_RBPM_COLOR}; font:{S_RBPM_ITALIC} {S_RBPM_BOLD} {S_RBPM_SIZE} {S_RBPM_FAMILY}; letter-spacing:{S_RBPM_SPACING}; text-transform:{S_RBPM_TRANSFORM}; text-shadow: {S_RBPM_SHADOWH} {S_RBPM_SHADOWV} {S_RBPM_SHADOW_BLUR} {S_RBPM_SHADOW_COLOUR}; text-decoration:{S_RBPM_DECORATION};">
         {S_USER_NEW_PRIVMSG}
      </span>
      <!-- ELSE -->
      <strong>{S_USER_NEW_PRIVMSG}</strong>
      <!-- ENDIF -->
      <a href="{U_PRIVATEMSGS}">
      <!-- IF S_RBPM_INSC_ENABLE and S_USER_NEW_PRIVMSG -->
      <span class="blink" style="color:{S_RBPM_INSC_COLOR}; font:{S_RBPM_ITALIC} {S_RBPM_VARIANT} {S_RBPM_BOLD} {S_RBPM_SIZE} {S_RBPM_FAMILY}; letter-spacing:{S_RBPM_SPACING}; text-transform:{S_RBPM_TRANSFORM}; text-shadow: {S_RBPM_SHADOWH} {S_RBPM_SHADOWV} {S_RBPM_SHADOW_BLUR} {S_RBPM_INSC_SHADOW_COLOUR}; text-decoration:{S_RBPM_DECORATION};">
         {PRIVATE_MESSAGE_INFO}
      </span>
         <!-- IF S_RBPM_ENABLE_UNREAD and PRIVATE_MESSAGE_INFO_UNREAD -->
         <span style="color:{S_RBPM_UNREAD_COLOR}">
            <!-- IF S_RBPM_ENABLE_UNREAD_BLINK -->
            <span class="blink">& {PRIVATE_MESSAGE_INFO_UNREAD}</span>
            <!-- ELSE -->
            & {PRIVATE_MESSAGE_INFO_UNREAD}
            <!-- ENDIF -->
         </span>
         <!-- ELSE -->
         <!-- ENDIF -->
      <!-- ELSE -->
         {PRIVATE_MESSAGE_INFO}
            <!-- IF S_RBPM_ENABLE_UNREAD and PRIVATE_MESSAGE_INFO_UNREAD -->
               & {PRIVATE_MESSAGE_INFO_UNREAD}
            <!-- ELSE -->&amp; <strong>0</strong> unread messages
            <!-- ENDIF -->
      <!-- ENDIF -->
      </a>
   </span>
<!-- ENDIF -->


Entering digit "0" to stiff is the simplest way, because the unread messages in this case does not exist.
Tested on my board:
test.JPG
User avatar
all4phone
Registered User
Posts: 593
Joined: Fri Mar 18, 2011 11:56 am
Location: Poland
Name: Piotr
Contact: