Is there a way to get counter-display to show up using php, like this
instead of just using html and text?Code:<?php print !COUNTER-ONPAGE!; if (!COUNTER-ONPAGE!==1) { print " user"; } else { print " users"; } print " online"; ?>
Is there a way to get counter-display to show up using php, like this
instead of just using html and text?Code:<?php print !COUNTER-ONPAGE!; if (!COUNTER-ONPAGE!==1) { print " user"; } else { print " users"; } print " online"; ?>
I suppose you could manually modify the script to act like this:
Open counter.php:
Find:
And replace it with (all one line):$display = ereg_replace("!COUNTER-ONPAGE!", strval($this->online), $display);
$display = ereg_replace("!COUNTER-ONPAGE!", strval($this->online) . (strval($this->online) == 1 ? " user" : " users"), $display);
Thank you very much Patiek.![]()