SimplePortal
Customization => Custom Coding => Topic started by: MissyNL on March 22, 2011, 05:41:29 AM
-
Hello.... since i totally can not code anything... but i really need this code i thought.. why dont i post it here :)
For the Who is online block:
I really need the guests and the memberspart to be shown together. And the hidden part to be removed.
Just show...
Online : 74
Not all seperated...
Can someone help me with this please? :angel:
-
If I understand you correctly:
./Sources/PortalBlocks.php
<li>', sp_embed_image('dot'), ' ', $txt['guests'], ': ', $stats['num_guests'], '</li>';
if (!empty($modSettings['show_spider_online']) && ($modSettings['show_spider_online'] < 3 || allowedTo('admin_forum')))
echo '
<li>', sp_embed_image('dot'), ' ', $txt['spiders'], ': ', $stats['num_spiders'], '</li>';
echo '
<li>', sp_embed_image('dot'), ' ', $txt['hidden'], ': ', $stats['num_users_hidden'], '</li>
<li>', sp_embed_image('dot'), ' ', $txt['users'], ': ', $stats['num_users_online'], '</li>';
<li>', sp_embed_image('dot'), ' ', $txt['users'], ': ', $stats['total_users'], '</li>';
-
Hi!
Thank you sooo much :)
Does this also exclude the who is online list? Because i still want to save that...
And... maybe this is wrong... but is it possible to "add" more guests to the list? Like 20% more guests?
-
You can see that the lines involved here are all about "num" of something. He just replaced a bunch of "num of" lines with the grand total.
Do I understand that you would wish to display that you have 20% more guest than the number you actually have?
-
if that is possible... that would be awsome :)
-
I cannot imagine why, but all you need to do is multiply by 1.2.
So, instead of $stats['num_guests'], you would use $stats['num_guests'] * 1.2.
-
thank you very much...