1
alain01
Icon for new pm in the main navbar, not only on the dropdown "User Menu" list
  • 2019/12/13 12:10

  • alain01

  • Just can't stay away

  • Posts: 536

  • Since: 2003/6/20


Hi,
i had a PM im my inbox, but i missed them more than 1 week cause i dont clic often on the "User Menu", so i cant see the "inbox" line with badge.

I can see this badge "(number of unread PM") only if i click on the "User Menu" link.

It will be very usefull to add this badge too close the user Menu, not only on the "inbox" line.

Like that : "User Menu (2) v"

2
goffy
Re: Icon for new pm in the main navbar, not only on the dropdown "User Menu" list
  • 2019/12/13 14:14

  • goffy

  • Just can't stay away

  • Posts: 543

  • Since: 2010/12/27


Hi

yes, I am the same opinion.

I have implemented this in myxoops.org and in the skiclub theme
but I have no access to theme of xoops.org

code is
<a data-toggle="dropdown" class="dropdown-toggle" href="javascript:;"><{$smarty.const.THEME_ACCOUNT}><{xoInboxCount assign="unreadCount"}> <{if $unreadCount 0}><span class="badge"><{$unreadCount}>span><{/if}><class="caret">b>a>

3
alain01
Re: Icon for new pm in the main navbar, not only on the dropdown "User Menu" list
  • 2019/12/13 14:47

  • alain01

  • Just can't stay away

  • Posts: 536

  • Since: 2003/6/20


yes, and yet write in another topic, for me :

Resized Image


Boostrap 4
<{xoInboxCount assign="unread_count" total='inbox_total'}>
        <
li class="nav-item">
            <
class="nav-link" href="<{$xoops_url}>/viewpmsg.php">
            <{if 
$unread_count}> 
                <
span style="font-size: 20px;" class="mx-auto xoopsinactive-color fas fa-envelope">span> <span class="badge badge-pill badge-danger align-text-top"><{$unread_count}>span>
            <{/if}>
                <
span style="font-size: 20px;" class="mx-auto xoopsinactive-color fas fa-envelope-open">span> <span class="badge badge-pill badge-secondary align-text-top"><{$inbox_total-$unread_count}>span>
            a>
        li>

4
alain01
Re: Icon for new pm in the main navbar, not only on the dropdown "User Menu" list
  • 2020/1/4 13:47

  • alain01

  • Just can't stay away

  • Posts: 536

  • Since: 2003/6/20


to preserve space on the navbar, i changed the code :
<{xoInboxCount assign="unread_count" total='inbox_total'}>
    <
li class="nav-item">
        <
class="nav-link" href="<{$xoops_url}>/viewpmsg.php">
                <{if 
$unread_count}> 
                        <
span class="mx-auto xoopsweb-color fas fa-envelope fa-lg">span> <span class="badge badge-pill badge-danger align-text-top"><{$unread_count}>span>
                <{else}>
                    <
span class="mx-auto xoopsweb-color fas fa-envelope-open fa-lg">span> <span class="badge badge-pill badge-secondary align-text-top"><{$inbox_total-$unread_count}>span>
                <{/if}>
        a>
    li>

Login

Who's Online

171 user(s) are online (126 user(s) are browsing Support Forums)


Members: 0


Guests: 171


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Dec 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits