1 Attachment(s)
Help how to put online counter and server status in a template
Hello to all RZ members
any one who know how to put the online counter with this template?
under the server time of the template?
with this code i got this code to this link
Quote:
<center><font color="red" size="6">SERVER NAME </font><font color="lime" size="6">
<?
$online = $core_db2->Execute( "Select memb___id from MEMB_STAT where ConnectStat='1'" );
echo "
ONLINE PLAYERS:
".number_format( $online->RecordCount( ) )."";
?></font></center>
http://forum.ragezone.com/f197/mu-co...2/#post7674258
Attachment 134074
Re: Help how to put online counter and server status in a template
So you want show Total Online?
Open notepad -> copy code & save file as XXX.php & paste to .../engine
Code:
Total Online:
<?
include("engine/connect_core.php");
$dofuckingonline = $core_db2->Execute(" Select connectstat from MEMB_STAT where connectstat='1' ");
echo $dofuckingonline->RecordCount();
?>
now open index.php of your template & add it where you want using
Code:
<? include("engine/XXX.php"); ?>
:]
Re: Help how to put online counter and server status in a template
tnx a lor for this sir ^^
Re: Help how to put online counter and server status in a template
Quote:
Originally Posted by
4FUNer
So you want show Total Online?
Open notepad -> copy code & save file as XXX.php & paste to .../engine
Code:
Total Online:
<?
include("engine/connect_core.php");
$dofuckingonline = $core_db2->Execute(" Select connectstat from MEMB_STAT where connectstat='1' ");
echo $dofuckingonline->RecordCount();
?>
now open index.php of your template & add it where you want using
Code:
<? include("engine/XXX.php"); ?>
:]
so where should I put this <? include("engine/XXX.php"); ?> in index.php?
coz I got error..
Re: Help how to put online counter and server status in a template
Quote:
Originally Posted by
ZeoKnight
so where should I put this <? include("engine/XXX.php"); ?> in index.php?
coz I got error..
That's coded to work with Mu Core 1.0.8
save the Total online code as XXX.php paste to .../engine
& in index.php of your template, display by <? include("engine/XXX.php"); ?>
in place you want
if you use other web, won't work.
Re: Help how to put online counter and server status in a template
yeah. mine is Mu Core 1.0.8
But I dont know where exactly should I put that
<? include("engine/XXX.php"); ?> in index.php..
got some screenshot bro?
can you show me how?
Re: Help how to put online counter and server status in a template
index.php in /template/Your Template Name
You should add it where you want to be placed (for example after div/table/ul, additionally u can make different color size etc using html/css, if default one isn't good
for example using default template
http://oi39.tinypic.com/2dqqefm.jpg
Re: Help how to put online counter and server status in a template
Quote:
Originally Posted by
4FUNer
index.php in /template/Your Template Name
You should add it where you want to be placed (for example after div/table/ul, additionally u can make different color size etc using html/css, if default one isn't good
for example using default template
http://oi39.tinypic.com/2dqqefm.jpg
Here
This is where I want to put . Is it posible?
see image
http://img407.imageshack.us/img407/5263/4ct9.png
Re: Help how to put online counter and server status in a template
Quote:
Originally Posted by
4FUNer
index.php in /template/Your Template Name
You should add it where you want to be placed (for example after div/table/ul, additionally u can make different color size etc using html/css, if default one isn't good
for example using default template
http://oi39.tinypic.com/2dqqefm.jpg
yeah.. But I dont get it.
seems Like we're thesame with MrQuestion.
I want to put also at the bottom of Menu
Re: Help how to put online counter and server status in a template
Yea it is possible, but can't help since i don't have your template guys :P
You can upload if you want & make ss of where to add, or just try editing index.php ur self, it doesn't hurts :)
1 Attachment(s)
Re: Help how to put online counter and server status in a template
tnx for this release i have so many time to trial and error with this code and how to put to my template and after how many hours finding some good spot to put this code i've already put it and this is my finish work..Attachment 134198
or even you can chane the code name of XXX.php what ever you want and don't for get to change also the file name that you save in httdocs>engine>xxx.php
Quote:
<? include("engine/XXX.php"); ?>
for example ragezone.php and the code is
Quote:
<? include("engine/ragezone.php"); ?>
and credits to 4FUNer