Top Richest addon for HoloCMS

Results 1 to 12 of 12
  1. #1
    Member NaughtyChild is offline
    MemberRank
    Jan 2009 Join Date
    UK,Location
    89Posts

    Top Richest addon for HoloCMS

    ok this has been released before, i aint got no srceenies sorry

    Code:
    <?php/*===================================================+ 
    || # HoloCMS - Website and Content Management System 
    |+===================================================+ 
    || # Copyright Ā© 2008 Meth0d. All rights reserved. 
    || # http://www.meth0d.org 
    |+===================================================+ 
    || # HoloCMS is provided "as is" and comes without 
    || # warrenty of any kind. HoloCMS is free software! 
    |+===================================================*/ 
    
    $allow_guests = true; 
    
    include('core.php'); 
    include('includes/session.php'); 
    
    $pagename = "Credits"; 
    $pageid = "6"; 
    $body_id = "home"; 
    
    include('templates/community/subheader.php'); 
    include('templates/community/header.php'); 
    
    $get_cc = mysql_query("SELECT * FROM users WHERE credits IS NOT NULL AND rank < 5 ORDER BY credits DESC LIMIT 10") or die(mysql_error()); 
    
    ?> 
    
    <div id='container'> 
    <div id='content'> 
    <div id='column1' class='column'><div class='habblet-container '>         
    <div class='cbb clearfix green '> 
         
    <h2 class='title'><?php echo HoloText(getContent('credits2-heading'), true); ?></h2> 
    <p class='credits-countries-select'><br /><?php echo HoloText(getContent('credits2'), true); ?><br /><br /></p> 
    </div> 
    </div> 
    
    <div class='habblet-container '>         
    <div class='cbb clearfix blue '> 
         
    <h2 class='title'>Refer Options</h2> 
    <p class='credits-countries-select'><br /><b>1. Send your friends a link</b><br />This option is probably as easy as it gets; it basicly does step 2, but automaticly! You just send your friends a invite with the link shown below, your friends click the link, and if they complete registration, you get free credits! This is your referal link to get some easy credits:<br /><br /> 
            <input type="text" size="60%" README value="<?php if(!empty($path)){ echo $path; } ?>register.php?referral=<?php echo $my_id; ?>"><br /><br /> 
            <b>2. Let them fill in your name during registration</b><br />During the registration process, users can manually give the username of the person that referred them to the site. If they complete registration, that person gets credits! And that person could be you, if you have some friends that are nice enough to fill in your username.</p> 
    </div> 
     </div> 
    
                    <script type='text/javascript'>if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script> 
                  
    </div> 
    <div id="column2" class="column"> 
                    <div class="habblet-container ">         
                            <div class="cbb clearfix brown "> 
         
                                <h2 class="title">Your purse 
                                </h2> 
                            <div id="purse-habblet"> 
                                                        <?php if($logged_in){ ?> 
        <form method="post" action="credits.php" id="voucher-form"> 
    <ul> 
        <li class="even icon-purse"> 
            <div>You currently have:</div> 
            <span class="purse-balance-amount"><?php echo $myrow['credits']; ?> Credits</span> 
            <div class="purse-tx"><a href="transactions.php">Account transactions</a></div> 
        </li> 
    
        <li class="odd"> 
            <div class="box-content"> 
                <div>Enter redemption code:</div> 
                <input type="text" name="voucherCode" value="" id="purse-habblet-redeemcode-string" class="redeemcode" /> 
                <a href="#" id="purse-redeemcode-button" class="new-button purse-icon" style="float:left"><b><span></span>Submit</b><i></i></a> 
            </div> 
        </li> 
    </ul> 
    <div id="purse-redeem-result"> 
    </div>    </form> 
            <?php } else { ?> 
            <div class="box-content">You need to be logged in to see the purse.</div> 
            <?php } ?> 
    </div> 
    
    <script type="text/javascript"> 
        new PurseHabblet(); 
    </script> 
         
                             
                        </div> 
                    </div> 
                    <script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script> 
                  
                    <div class="habblet-container ">         
         
                             
         
                             
                         
                    </div> 
                    <script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>              
    
                    <div class='habblet-container '>         
                            <div class='cbb clearfix red '> 
         
                                <h2 class='title'>Leaderboard</h2> 
                            <div id='credits-promo' class='box-content credits-info'> 
        <div class='credit-info-text clearfix'> 
         
    <div class='tableborder'>  
     <table cellpadding='4' cellspacing='0' width='100%'>  
     <tr>  
      <td class='tablesubheader' width='50%' align='center'><b>Username</b></td>  
      <td class='tablesubheader' width='50%' align='center'><b>Credits</b></td>    
     </tr>  
    
    <?php 
    
    while($row = mysql_fetch_assoc($get_cc)){  
        printf(" <tr>  
      <td class='tablerow1' align='center'><a href=\"user_profile.php?name=%s\">%s</a></td>  
      <td class='tablerow2' align='center'>%s</td> 
    </tr>", $row['name'], $row['name'], $row['credits']);  
    }  
    ?>  
    
     </table> 
    </div> 
    
    </div> 
         
                             
                        </div> 
                    </div></div> 
    
    
                    <script type='text/javascript'>if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script> 
                  
                                  
    </div> 
    
    <script type="text/javascript"> 
    HabboView.run(); 
    </script>     
                    </div> 
                    <script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script> 
    <?php 
    
    include('templates/community/footer.php'); 
    
    ?>


  2. #2
    Account Upgraded | Title Enabled! luisimlauer is offline
    MemberRank
    Aug 2007 Join Date
    ArgentinaLocation
    213Posts

    Re: [HOLOCMS]Top Richest addon

    Good! But why did u post it again? :/

  3. #3
    Account Upgraded | Title Enabled! Ubercheese is offline
    MemberRank
    Mar 2009 Join Date
    238Posts

    Re: [HOLOCMS]Top Richest addon


  4. #4
    Member NaughtyChild is offline
    MemberRank
    Jan 2009 Join Date
    UK,Location
    89Posts

    Re: [HOLOCMS]Top Richest addon

    yeah but yours is fucked the code dosent show up right.

    ---------- Post added at 12:25 AM ---------- Previous post was at 12:24 AM ----------

    oh it dose my bad

  5. #5
    Apprentice PHPGibbo-Craig is offline
    MemberRank
    Sep 2009 Join Date
    17Posts

    Re: [HOLOCMS]Top Richest addon

    and also uberchese why you think we are so stupid lol the one you released bobba lodge hacks you never done any harm to my hotel.

  6. #6
    Alpha Member Moogly is offline
    MemberRank
    Feb 2008 Join Date
    Pool LidoLocation
    2,322Posts

    Re: [HOLOCMS]Top Richest addon

    Heeh Woodpecker already has such a thing (C# tho obv)

  7. #7
    Account Upgraded | Title Enabled! Ubercheese is offline
    MemberRank
    Mar 2009 Join Date
    238Posts

    Re: [HOLOCMS]Top Richest addon

    Quote Originally Posted by PHPGibbo-Craig View Post
    and also uberchese why you think we are so stupid lol the one you released bobba lodge hacks you never done any harm to my hotel.
    Once you have learnt PHP, then tell me "one you released bobba lodge hacks you".

  8. #8
    Account Upgraded | Title Enabled! masood104 is offline
    MemberRank
    Aug 2009 Join Date
    311Posts

    Re: [HOLOCMS]Top Richest addon

    i have the PHPretro Version for it i will post in a sec

  9. #9
    Proficient Member Kenosha is offline
    MemberRank
    May 2008 Join Date
    151Posts

    Re: [HOLOCMS]Top Richest addon

    lol where's the phpretro version you both said you were posting ;x

  10. #10
    Apprentice iFamous is offline
    MemberRank
    Jul 2009 Join Date
    6Posts

    Re: [HOLOCMS]Top Richest addon

    thankyou i will add it later on ;D

  11. #11
    Infraction Banned iBobbaX. is offline
    MemberRank
    Jan 2010 Join Date
    United KingdomLocation
    32Posts

    Re: Top Richest addon for HoloCMS

    PHPRetro version.

    Code:
       <?php
    /*================================================================+\
    || # PHPRetro - An extendable virtual hotel site and management
    |+==================================================================
    || # Copyright (C) 2009 Yifan Lu. All rights reserved.
    || # http://www.yifanlu.com
    || # Parts Copyright (C) 2009 Meth0d. All rights reserved.
    || # http://www.meth0d.org
    || # All images, scripts, and layouts
    || # Copyright (C) 2009 Sulake Ltd. All rights reserved.
    |+==================================================================
    || # PHPRetro is provided "as is" and comes without
    || # warrenty of any kind. PHPRetro is free software!
    || # License: GNU Public License 3.0
    || # http://opensource.org/licenses/gpl-license.php
    |+==================================================================
    || # Credits leaderboard by http://uber-cheese.co.uk/
    \+================================================================*/
    
    $page['allow_guests'] = true;
    require_once('./includes/core.php');
    require_once('./includes/session.php');
    $lang->addLocale("credits.credits");
    
    $page['id'] = "credits";
    $page['name'] = $lang->loc['pagename.credits'];
    $page['bodyid'] = "home";
    $page['cat'] = "credits";
    require_once('./templates/community_header.php');
    
    $get_cc = mysql_query("SELECT * FROM users WHERE credits IS NOT NULL AND rank < 3 ORDER BY credits DESC LIMIT 10") or die(mysql_error()); 
    
    ?>
    
    <div id='container'> 
    <div id='content'> 
    <div id='column1' class='column'><div class='habblet-container '>         
    <div class='cbb clearfix green '> 
         
    <h2 class='title'><?php echo $lang->loc['what.are.coins']; ?></h2> 
    <p class='credits-countries-select'><br /><?php echo $lang->loc['desc.of.coins']; ?><br /><br /></p> 
    </div> 
    </div> 
    
    <div class='habblet-container '>         
    <div class='cbb clearfix blue '> 
         
    <h2 class='title'>Refer Options</h2> 
    <p class='credits-countries-select'><br /><b>1. Send your friends a link</b><br />This option is probably as easy as it gets; it basicly does step 2, but automaticly! You just send your friends a invite with the link shown below, your friends click the link, and if they complete registration, you get free credits! This is your referal link to get some easy credits:<br /><br /> 
            <input type="text" size="60%" README value="<?php echo PATH; ?>/register?referral=<?php echo $user->id; ?>"><br /><br /> 
            <b>2. Let them fill in your name during registration</b><br />During the registration process, users can manually give the username of the person that referred them to the site. If they complete registration, that person gets credits! And that person could be you, if you have some friends that are nice enough to fill in your username.</p>
        </div></div>
    
                    <script type='text/javascript'>if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script> 
                  
    </div> 
    <div id="column2" class="column">
                             
    <?php $lang->addLocale("redeem.voucher"); ?>
                    <div class="habblet-container ">        
                            <div class="cbb clearfix brown ">
        
                                <h2 class="title"><?php echo $lang->loc['your.purse']; ?>
                                </h2>
                            <div id="purse-habblet">
    <?php if($user->id > 0){ ?>
        <form method="post" action="<?php echo PATH; ?>/credits" id="voucher-form">
    
    <ul>
        <li class="even icon-purse">
            <div><?php echo $lang->loc['you.have']; ?>:</div>
            <span class="purse-balance-amount"><?php echo $user->user("credits")." ".$lang->loc['coins'];?></span>
            <div class="purse-tx"><a href="<?php echo PATH; ?>/credits/history"><?php echo $lang->loc['transactions']; ?></a></div>
        </li>
    
        <li class="odd">
    
            <div class="box-content">
                <div><?php echo $lang->loc['enter.voucher']; ?>:</div>
                <input type="text" name="voucherCode" value="" id="purse-habblet-redeemcode-string" class="redeemcode" />
                <a href="#" id="purse-redeemcode-button" class="new-button purse-icon" style="float:left"><b><span></span><?php echo $lang->loc['redeem']; ?></b><i></i></a>
            </div>
        </li>
    </ul>
    <div id="purse-redeem-result">
    </div>    </form>
    <?php }else{ ?>
    <div class="box-content"><?php echo $lang->loc['need.logon.purse']; ?></div>
    <?php } ?>
    </div>
    
    <script type="text/javascript">
        new PurseHabblet();
    </script>
        
                            
                        </div>
                    </div>
                    <script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script> 
                  
                    <div class="habblet-container ">         
         
                             
         
                             
                         
                    </div> 
                    <script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>              
    
                    <div class='habblet-container '>         
                            <div class='cbb clearfix orange '> 
         
                                <h2 class='title'>Leaderboard</h2> 
                            <div id='credits-promo' class='box-content credits-info'> 
        <div class='credit-info-text clearfix'> 
         
    <div class='tableborder'>  
     <table cellpadding='4' cellspacing='0' width='100%'>  
     <tr>  
      <td class='tablesubheader' width='50%' align='center'><b>Username</b></td>  
      <td class='tablesubheader' width='50%' align='center'><b>Credits</b></td>    
     </tr>  
    
    <?php 
    
    while($row = mysql_fetch_assoc($get_cc)){  
        printf(" <tr>  
      <td class='tablerow1' align='center'><a href=\"home/%s\">%s</a></td>  
      <td class='tablerow2' align='center'>%s</td> 
    </tr>", $row['name'], $row['name'], $row['credits']);  
    }  
    ?>  
    
     </table> 
    </div> 
    
    </div> 
         
                             
                        </div> 
                    </div></div> 
    
    
                    <script type='text/javascript'>if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script> 
                  
                                  
    </div> 
    
    <script type="text/javascript"> 
    HabboView.run(); 
    </script>     
                    </div> 
                    <script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script> 
    
    <?php require_once('./templates/community_footer.php'); ?>

  12. #12
    Apprentice Smallo is offline
    MemberRank
    Dec 2009 Join Date
    5Posts

    Re: Top Richest addon for HoloCMS

    Here is mine, I made this myself. Add it to whatever page you want where ever you want.

    Coded for PHPretro

    Code:
    <?php
    $getuservalues = mysql_query("SELECT * FROM users ORDER BY credits DESC LIMIT 10") or die(mysql_error());
    ?>
    
    <div id="column2" class="column">
    			     		
    				<div class="habblet-container ">		
    						<div class="cbb clearfix red ">
    <h2 class="title">Credits Leaderboard</h2>
    
    <TABLE width=100%>
    <?php
    while($row = mysql_fetch_array($getuservalues)) {
    printf (" 
    <tr><th ROWSPAN=2 class='tablerow1' align='right'>
    <img src='http://habbo.com.au/habbo-imaging/avatarimage?figure=%s&size=s&action=&direction=2&head_direction=2&gesture=spr&size=s'/>
    <th COLSPAN=2 class='tablerow2' align='left' valign='bottom'><a href='http://localhost/home/%s'>%s</a>
    <tr><th class='tablerow3' align='left' valign='top'><i>%s credits</i>
    ", $row[figure], $row[name], $row[name], $row[credits]);
    }
    ?>
    </table>
    
    
    
    </div>
    </div>
    
    				<script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>
    </div>	
    </table>
    Add that column within a page anywhere you please, here's a screenshot of it in action.

    Last edited by Smallo; 13-01-10 at 10:21 AM.



Advertisement