PHPretro ~ Rare Value

Results 1 to 10 of 10
  1. #1
    Member Loucky is offline
    MemberRank
    Oct 2009 Join Date
    NederlandLocation
    32Posts

    PHPretro ~ Rare Value

    Hey,

    I have an exchange value page for PHPretro. I hope that is!

    SCREEN: http://www.plaatjesupload.nl/bekijk/...027811-560.png
    IMAGES FOR RAREVALUE.PHP rareimg.rar
    RAREVALUE.PHP
    PHP 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.
    |+==================================================================
    || # RARE VALUES. MAKING AND RELEASED BY LOUCKY!
    \+================================================================*/

    $page['allow_guests'] = true;
    require_once(
    './includes/core.php');
    require_once(
    './includes/session.php');
    $lang->addLocale("credits.credits");

    $page['id'] = "rare";
    $page['name'] = $lang->loc['pagename.credits'];
    $page['bodyid'] = "home";
    $page['cat'] = "credits";
    require_once(
    './templates/community_header.php');
    ?>

    <div id="container">
        <div id="content">
        <div id="column1" class="column">
                    <div class="habblet-container ">
                            <div class="cbb clearfix green ">

                                <h2 class="title">Rare
                                </h2>
                            <div class="habblet box-content">

                            <?php

                                    $HCvalue 
    25;
                                    
    $HCname 'HC';
                                    
    $HCimg 'clubsofa';

                            if(isset(
    $_GET['cat']))
                            {
                                
    $choose=$_GET['cat'];

                                if(
    $choose=='1'//Standard Rares
                                
    {
                                    
    $query='SELECT * FROM rarevalue WHERE category = 1 ORDER BY img';
                                    
    $error="There aren't any rares yet!";
                                }
                                else if(
    $choose=='2'//Xmas Rares
                                
    {
                                    
    $query='SELECT * FROM rarevalue WHERE category = 2 ORDER BY img';
                                    
    $error="There aren't any Christmas rares at the moment!";
                                }
                                else if(
    $choose=='3'//Halloween Rares
                                
    {
                                    
    $query='SELECT * FROM rarevalue WHERE category = 3 ORDER BY img';
                                    
    $error="There aren't any Halloween rares at the moment!";
                                }
                                else if(
    $choose=='4'//HC Rares
                                
    {
                                    
    $query='SELECT * FROM rarevalue WHERE category = 4 ORDER BY img';
                                    
    $error="There aren't any HC rares at the moment!";
                                }
                                else if(
    $choose=='5'//All
                                
    {
                                    
    $query='SELECT * FROM rarevalue ORDER BY value';
                                    
    $error="There aren't any rares yet!";
                                }
                                else if(
    $choose=='6'//Most valueable
                                
    {
                                    
    $query='SELECT * FROM rarevalue WHERE category != 4 ORDER BY value DESC LIMIT 5';
                                    
    $error="There aren't any rares yet!";
                                }
                                else if(
    $choose=='7'//Least valuable
                                
    {
                                    
    $query='SELECT * FROM rarevalue WHERE category != 4 ORDER BY value LIMIT 5';
                                    
    $error="There aren't any rares yet!";
                                }
                                else
                                {
                                    
    $query='SELECT * FROM rarevalue WHERE category = 1 ORDER BY img';
                                    
    $error="There aren't any rares yet!";
                                }
                            }
                            else
                            {
                                    
    $query='SELECT * FROM rarevalue WHERE category = 1 ORDER BY img';
                                    
    $error="There aren't any rares yet!";
                            }

                            
    $getrare mysql_query($query) or die(mysql_error());
                            
    $rarecount mysql_num_rows($getrare);

                            
    ?>
                            Display Type:<br><center>
                            <a href='rarevalue.php?cat=1' title='Non-seasonal, non HC rares'>Standard</a> |
                            <a href='rarevalue.php?cat=2' title='Seasonal rares only released at Christmas'>Christmas</a> |
                            <a href='rarevalue.php?cat=3' title='Seasonal rares only released at Halloween'>Halloween</a> |
                            <a href='rarevalue.php?cat=4' title='HC only rares'>Habbo Club</a> |
                            <a href='rarevalue.php?cat=5' title='All rares including seasonal and HC'>All</a><br>
                            <a href='rarevalue.php?cat=6' title='The most valuable rares'>Most Valuable</a> |
                            <a href='rarevalue.php?cat=7' title='The least valuable rares'>Least Valuable</a>
                            </center><br><br>


                            <?php
                            
    if($rarecount == 1) {
                            echo 
    "<p>There is ".$rarecount." rare in this category.</p><br>";
                            } else if(
    $rarecount >= 2) {
                            echo 
    "<p>There are ".$rarecount." rares in this category.</p><br>";
                            } else {
                            echo 
    "";
                            }

                            if(
    $rarecount >= 1) {

                                while (
    $row mysql_fetch_array($getrare)) {
                                    
    $name $row['name'];
                                    
    $img $row['img'];
                                    
    $value $row['value'];
                                    
    $valuestate $row['valuestate'];
                                    
    $releasestate $row['releasestate'];
                                    
    $last_update $row['last_update'];
                                    
    $last_update explode("?"$last_update);
                                    
    $date $last_update[0];
                                    
    $time $last_update[1];

                                    
    $low_1HC = ($HCvalue 0.80);
                                    
    $high_1HC = ($HCvalue 1.20);
                                    
    $creditvalue round($value $HCvalue);

                                    if(
    $valuestate == 1) { $valuestateimg='<img src="rareimg/up.gif" alt="The '.$name.' rare has increased in value.">'$colour='green'; }
                                    else if(
    $valuestate == 2) { $valuestateimg='<img src="rareimg/down.gif" alt="The '.$name.' rare has decreased in value.">'$colour='red'; }
                                    else { 
    $valuestateimg=''$colour='black'; }

                                    if(
    $releasestate == 0) { $new='<img src="rareimg/new.gif" alt="The '.$name.' rare has recently been added.">'; }
                                    else if(
    $releasestate == 1) { $new=''; }

                                    echo 
    "<img src='rareimg/".$img.".gif' alt='".$name." rare last updated ".$last_update[0]." at ".$last_update[1]."'><b><font color='".$colour."'>".$name.":</b>   <i>".$value." ".$HCname."</font></i> (".$creditvalue." credits) ".$valuestateimg.$new."<br>";
                                }

                            } else {
                            echo 
    "<p>".$error."</p><br>";
                            }

                            
    ?>
    </div>


                        </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 red ">

                                                <h2 class="title">Our Rare Values
                                                </h2>
                                            <div id="notfound-looking-for" class="box-content">
                                            Please note, these values aren't 100% accurate and is not the definite price for that rare.
                                            A rare is only worth what you are willing to pay for it, so
                                            don't feel pressured into trading a rare just because of what someone else says.<br><br>
                                            <b>1.00 <?php echo $HCname?></b> = <img src='rareimg/<?php echo $HCimg?>.gif'><br>
                                            <b>1.00 <?php echo $HCname?></b> = around <?php echo $HCvalue?> credits<br>
                                            <b>0.25 <?php echo $HCname?></b> = around <?php echo round($HCvalue 0.25); ?> credits<br>
                                            <b>0.10 <?php echo $HCname?></b> = around <?php echo round($HCvalue 0.10); ?> credits<br>
                                            <b>0.05 <?php echo $HCname?></b> = around <?php echo round($HCvalue 0.05); ?> credits<br>

    </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>
    <?php require_once('./templates/community_footer.php'); ?>
    All in one. Images, rarevalue.php and screen: Rarevalu - All in one.rar

    Do you need help click thanks
    Based one holoCMS Rare value (Andrew)i make it for phpretro.

    First Release!
    Last edited by Loucky; 23-12-10 at 03:01 PM.


  2. #2
    Member tylerab01 is offline
    MemberRank
    Feb 2009 Join Date
    47Posts

    Re: PHPretro ~ Rare Value

    You need to give credit to the make of the scipt which would be Readon

  3. #3
    Developer Eronisch is offline
    Grand MasterRank
    Jul 2009 Join Date
    The NetherlandsLocation
    1,328Posts

    Re: PHPretro ~ Rare Value

    Ehm, this is already posted a time ago.
    You didn't create this, Give credits to the original maker.
    But thanks for re-uploading.

  4. #4
    Banned PEjump2 is offline
    BannedRank
    Jan 2010 Join Date
    The NetherlandsLocation
    2,838Posts

    Re: PHPretro ~ Rare Value

    Nice, but how does it update the items? :P

  5. #5
    Member Rogalla is offline
    MemberRank
    Dec 2010 Join Date
    California, USLocation
    34Posts

    Re: PHPretro ~ Rare Value

    Creds bro

  6. #6
    Member Loucky is offline
    MemberRank
    Oct 2009 Join Date
    NederlandLocation
    32Posts

    Re: PHPretro ~ Rare Value

    Quote Originally Posted by Eronisch View Post
    Ehm, this is already posted a time ago.
    You didn't create this, Give credits to the original maker.
    But thanks for re-uploading.
    I just made this yourself? Just download holocms. And editing header and footer.

  7. #7
    Member JackxX is offline
    MemberRank
    Feb 2010 Join Date
    48Posts

    Re: PHPretro ~ Rare Value

    9/10 Awesome

  8. #8
    Newbie Funky is offline
    MemberRank
    Apr 2010 Join Date
    6Posts

    Re: PHPretro ~ Rare Value

    i need the db version 2 i dont have it

  9. #9
    Newbie rylul is offline
    MemberRank
    Feb 2011 Join Date
    14Posts

    Re: PHPretro ~ Rare Value

    This really irritated me as there was no readme file, I got there in the end but as for noobs they won't know what the heck is going on, because of no instructions 6/10 great release!

  10. #10
    Member raphel@live2 is offline
    MemberRank
    Jan 2010 Join Date
    /.xampp/. htdocLocation
    41Posts

    Re: PHPretro ~ Rare Value

    Quote Originally Posted by rylul View Post
    This really irritated me as there was no readme file, I got there in the end but as for noobs they won't know what the heck is going on, because of no instructions 6/10 great release!
    does this make me a newb i added it to the folder then i reloaded my site and it said something like rare value not found in holoDB



Advertisement