| Re: Warning with xoInboxCount |
| by Mamba on 2019/12/9 0:11:55 Great! Thanks for sharing!!!! |
| Re: Warning with xoInboxCount |
| by alain01 on 2019/12/8 0:51:00 Yesssssss, found ! Quote: Math and embedding tags: so i can use : <{$inbox_total-$unread_count}> ![]() Now code is : le="color: #000000"><?php <{xoInboxCount assign="unread_count" total='inbox_total'}> <li class="nav-item"> <a 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>
|
| Re: Warning with xoInboxCount |
| by alain01 on 2019/12/8 0:32:16 Link to the file /class/smarty/xoops_plugins/function.xoInboxCount.php https://github.com/XOOPS/XoopsCore25/blob/master/htdocs/class/smarty/xoops_plugins/function.xoInboxCount.php With this subject, i discover the directory /class/smarty/xoops_plugins. So cool ! Ok ok, i could discovered 10 years ago...
|
| Re: Warning with xoInboxCount |
| by alain01 on 2019/12/8 0:29:16 Yes, thanks, but another question : How can i subtract <{$inbox_total}>-<{$unread_count}> It 's display : "4-3", not"1" le="color: #000000"><?php <li class="nav-item"> <a 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"><{$inbox_total}>-<{$unread_count}></span> </a> </li>
|
| Re: Warning with xoInboxCount |
| by goffy on 2019/7/30 5:11:31 hi geekwright many thanks for help and explanation |