Help how to put online counter and server status in a template

Results 1 to 11 of 11
  1. #1
    -( . ) ( . )- clerigz is offline
    MemberRank
    Mar 2012 Join Date
    1,365Posts

    ! 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
    <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
    sa21.png


  2. #2
    Alpha Member 2009x2014 is offline
    MemberRank
    Dec 2009 Join Date
    2,765Posts

    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"); ?>
    :]

  3. #3
    -( . ) ( . )- clerigz is offline
    MemberRank
    Mar 2012 Join Date
    1,365Posts

    Re: Help how to put online counter and server status in a template

    tnx a lor for this sir ^^

  4. #4
    Enthusiast ZeoKnight is offline
    MemberRank
    Aug 2012 Join Date
    47Posts

    Re: Help how to put online counter and server status in a template

    Quote Originally Posted by 4FUNer View Post
    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..

  5. #5
    Alpha Member 2009x2014 is offline
    MemberRank
    Dec 2009 Join Date
    2,765Posts

    Re: Help how to put online counter and server status in a template

    Quote Originally Posted by ZeoKnight View Post
    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.

  6. #6
    Enthusiast ZeoKnight is offline
    MemberRank
    Aug 2012 Join Date
    47Posts

    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?

  7. #7
    Alpha Member 2009x2014 is offline
    MemberRank
    Dec 2009 Join Date
    2,765Posts

    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


  8. #8
    Hmm.. huh? MrQU3ST10N is offline
    MemberRank
    Jun 2013 Join Date
    Trojan St. 404Location
    1,109Posts

    Re: Help how to put online counter and server status in a template

    Quote Originally Posted by 4FUNer View Post
    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


    Here
    This is where I want to put . Is it posible?

    see image
    http://img407.imageshack.us/img407/5263/4ct9.png

  9. #9
    Enthusiast ZeoKnight is offline
    MemberRank
    Aug 2012 Join Date
    47Posts

    Re: Help how to put online counter and server status in a template

    Quote Originally Posted by 4FUNer View Post
    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

    yeah.. But I dont get it.

    seems Like we're thesame with MrQuestion.
    I want to put also at the bottom of Menu

  10. #10
    Alpha Member 2009x2014 is offline
    MemberRank
    Dec 2009 Join Date
    2,765Posts

    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 :)

  11. #11
    -( . ) ( . )- clerigz is offline
    MemberRank
    Mar 2012 Join Date
    1,365Posts

    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..ss.png

    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
    <? include("engine/XXX.php"); ?>
    for example ragezone.php and the code is
    <? include("engine/ragezone.php"); ?>
    and credits to 4FUNer



Advertisement