Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
3 + 6 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

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:

{$x+$y} // will output the sum of x and y.
{assign var=foo value=$x+$y} // in attributes
{$foo[$x+3]} // as array index
{$foo={counter}+3} // tags within tags
{$foo="this is message {counter}"} // tags within double quoted strings


so i can use : <{$inbox_total-$unread_count}>

Resized Image


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

Who's Online

216 user(s) are online (169 user(s) are browsing Support Forums)


Members: 0


Guests: 216


more...

Donat-O-Meter

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

Latest GitHub Commits