Welcome to the RaGEZONE - MMORPG development forums.

[SNIPPET] Badge Shop - DeltaCMS

This is a discussion on [SNIPPET] Badge Shop - DeltaCMS within the Habbo Releases forums, part of the Habbo Hotel category; This is a snippet for a BadgeShop in DeltaCMS. Like it, use it, do whatever you want Demo > http://www.pixelplaneet.nl/Winkel/badge ...

Page 1 of 2 12 LastLast
Results 1 to 15 of 18
  1. #1
    Creative One.
    Rank
    Subscriber
    Join Date
    Oct 2011
    Location
    Your Router
    Posts
    517
    Liked
    171

    [SNIPPET] Badge Shop - DeltaCMS

    Click
    This is a snippet for a BadgeShop in DeltaCMS.
    Like it, use it, do whatever you want

    Demo > http://www.pixelplaneet.nl/Winkel/badge
    PHP Code:
    <?php
    $pagename 
    "Badge Winkel";
    $tab "Winkel";
    $page "Badges";

    $sBelcr user(belcredits);
    $sUname X($_SESSION['username']);

    $sSql2 mysql_query("SELECT * FROM badge_shop");

    if (isset(
    $_GET['GetBadge'])) {
        
    $sId X($_GET["GetBadge"]);

        
    $sSql1 mysql_query("SELECT * FROM badge_shop WHERE rare_id = '".$sId."'");
        
    $rareCost mysql_fetch_assoc($sSql1);
        
    $sExisting mysql_query("SELECT rare_id FROM badge_shop WHERE rare_id = '" $sId "'");
        
    $sCost $rareCost['cost'];

        if(!
    mysql_num_rows($sExisting))
        {
            
    $sErr 'Deze Badge bestaat niet';
        }
        else
        {
            if(
    $sBelcr $rareCost['cost'])
            {
                
    $sErr 'Je hebt niet genoeg Belcredits';
            }
            else
            {
            
    mysql_query("INSERT INTO user_badges (user_id, badge_id) VALUES ('".user(id)."', '".$sId."')");
            
    mysql_query("UPDATE users SET belcredits = belcredits - $sCost WHERE username = '$sUname' LIMIT 1");
            
    $sErr 'Gefeliciteerd je hebt je badge gekocht <b>Herlaad nu het hotel!</b>';
            }
        }
    }
    ?>
    <?php 
    include('head.php'); ?>
    <link type="text/css" rel="stylesheet" href="{site}/style/Habbo/CSS/Style/main.css" />
    <link rel="stylesheet" href="http://images.habbo.com/habboweb/{webbuild}/web-gallery/static/styles/cbs2credits.css" type="text/css" />
    <link rel="stylesheet" href="http://images.habbo.com/habboweb/{webbuild}/web-gallery/static/styles/newcredits.css" type="text/css" />
    <script src="http://images.habbo.com/habboweb/{webbuild}/web-gallery/static/js/cbs2credits.js" type="text/javascript"></script><meta name="SKYPE_TOOLBAR" content="SKYPE_TOOLBAR_PARSER_COMPATIBLE" />

                                    <script src="http://images.habbo.com/habboweb/{webbuild}/web-gallery/static/js/newcredits.js" type="text/javascript"></script>

    <body id="cbs2credits">
    <?php include('header.php'); ?>


    <div id="container">
        <div id="content" style="position: relative" class="clearfix">
        <div id="column1" class="column">

                    <div class="habblet-container ">
                            <div class="cbb clearfix orange ">

                                <h2 class="title">{sitename} Winkel!
                                </h2>



    <!--<div class="method-group online clearfix  bestvalue  cbs2">-->
    <div id="group-content-810">

    <div style="font-size: 12px;">


                                    <b><h3><center><font color='darkred'><?php if ($sErr != '') { echo $sErr; } ?></center></font></b>
                                    <div class="orange">
                             <table width="100%" border="0">
                                        <tr>
                                            <td width="25%" style="text-align:center">
                                                <h2 class="title">
                                                    <b>Badge</span>
                                                </h2>
                                                </b>
                                            </td>
                                            <td width="45%" style="text-align:left">
                                                <h2 class="title">
                                                    <b>Kosten</b>
                                                </h2>
                                            </td>
                                            <td width="40%" style="text-align:center">
                                                <h2 class="title">
                                                    <b>Klik om 'm te kopen</b>
                                                </h2>
                                            </td>
                                            </h2>
                                        </tr>
                                        <tr>
                                            <?php while($sRares mysql_fetch_assoc($sSql2)) {
                        
    $sHtml '<td width="25%" style="border-radius:7px;text-align:center;background-color:#f5f5f5"><img  src="{site}/Public/Images/Badges/'.$sRares['rare_id'].'.gif"></td>';
                        
    $sHtml .= '<td width="20%" style="border-radius:7px;text-align:center;background-color:#f5f5f5"><b>'.$sRares['cost'].'</b> Belcredits </td>';
                        
    $sHtml .= '<td width="20%" style="border-radius:7px;text-align:center;;background-color:#f5f5f5"><a href="{site}/index.php?page=winkel-badge&GetBadge='.$sRares['rare_id'].'">';
                        
    $sHtml .= '<center>Koop!!</center></a></td></tr>';

                        echo 
    $sHtml;
                                    } 
    ?>
                                    </table>

    </div>

    </div>
    </div>
    <div style="padding: 1px 55px 4px 10px; text-align: center; font-weight: bolder; font-family: arial; font-size: 13px;">
    <a href="#" class="new-button" onclick="mbetaal('id=1088487');return false;"><b>Koop 100 Belcredits</b><i></i></a>
    <a href="#" class="new-button" onclick="mbetaal('id=1088477');return false;"><b>Koop 75 Belcredits</b><i></i></a>
    <a href="#" class="new-button" onclick="mbetaal('id=1088467');return false;"><b>Koop 50 Belcredits</b><i></i></a>
    <a href="#" class="new-button" onClick="mbetaal('id=1088427');return false;"><b>Koop 25 Belcredits</b><i></i></a>
    </div>
    </div>
    </div>
    </div>
    <script type="text/javascript">if (!$(document.body).hasClassName('process-template')) { Rounder.init(); }</script>




    <script type="text/javascript">
    document.observe("dom:loaded", function() { new NewRedeemHabblet(); });
    </script>



                        </div>
                    </div>

    </div>



    <?php include('footer.php'); ?>
    </body>
    Last edited by TheEngineer; 17-05-12 at 03:27 PM.

  2. #2
    Skittle-Panda
    Rank
    Member +
    Join Date
    Jun 2009
    Location
    Netherlands
    Posts
    958
    Liked
    139

    Re: [SNIPPET] Badge Shop - DeltaCMS

    nice i guess but would be better if provided more info, print screen even if nessacerry , but whatever

    Nice thanks for the release.
    Very un-active on ragezone.

    Skype : Siem000
    Facebook : www.facebook.com/Siem0.o
    Thanks for a great time on here

  3. #3
    @_Prizm
    Rank
    Subscriber
    Join Date
    Feb 2012
    Location
    Denmark
    Posts
    2,145
    Liked
    521
    PSN ID: InfraRedDude Steam ID: lehprizm

    Re: [SNIPPET] Badge Shop - DeltaCMS

    Good release. Thanks

  4. #4
    Creative One.
    Rank
    Subscriber
    Join Date
    Oct 2011
    Location
    Your Router
    Posts
    517
    Liked
    171

    Re: [SNIPPET] Badge Shop - DeltaCMS

    Added a Demo Page

  5. #5
    Haku no Metsuryū
    Rank
    Member +
    Join Date
    Feb 2012
    Location
    Fiore
    Posts
    279
    Liked
    19

    Re: [SNIPPET] Badge Shop - DeltaCMS

    what about the sql?

  6. #6
    Newbie
    Rank
    Member
    Join Date
    Feb 2012
    Posts
    2
    Liked
    0

    Re: [SNIPPET] Badge Shop - DeltaCMS

    Thanks!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  7. #7
    Hardcore Member
    Rank
    Member
    Join Date
    Apr 2010
    Location
    The Netherlands
    Posts
    105
    Liked
    3

    Re: [SNIPPET] Badge Shop - DeltaCMS

    And the sql ?
    Just do it.

  8. #8
    Hardcore Member
    Rank
    Member
    Join Date
    Jul 2012
    Posts
    143
    Liked
    56

    Re: [SNIPPET] Badge Shop - DeltaCMS

    Quote Originally Posted by Stiezo View Post
    And the sql ?

    You can make them by yourself, check the PHP rules .

  9. #9
    Member
    Rank
    Member
    Join Date
    Feb 2011
    Posts
    54
    Liked
    2

    Re: [SNIPPET] Badge Shop - DeltaCMS

    Its nice, unfortunately i dont have belcredits on my DeltaCMS..
    9/10

  10. #10
    Newbie
    Rank
    Member
    Join Date
    Jul 2012
    Posts
    2
    Liked
    0

    Re: [SNIPPET] Badge Shop - DeltaCMS

    Could you make a UberCMS one?

  11. #11
    Member
    Rank
    Member
    Join Date
    Oct 2011
    Posts
    81
    Liked
    2

    Re: [SNIPPET] Badge Shop - DeltaCMS

    Whoa this would go right up my anal cavity!!

    Thanks!

  12. #12
    Registered
    Rank
    Member
    Join Date
    Jul 2012
    Posts
    11
    Liked
    0

    Re: [SNIPPET] Badge Shop - DeltaCMS

    Good one tbh but its in dutch lmao

  13. #13
    Member
    Rank
    Member
    Join Date
    Oct 2011
    Posts
    81
    Liked
    2

    Re: [SNIPPET] Badge Shop - DeltaCMS

    Whoa this would go right up my anal cavity!!

    Thanks!

  14. #14
    GreenMaX
    Rank
    Member +
    Join Date
    Jul 2008
    Location
    The Netherlands
    Posts
    268
    Liked
    16
    Quote Originally Posted by Lithosphere View Post
    Good one tbh but its in dutch lmao
    It is a snippit in his language, IT IS NOT A RELEASE!!! But I am dutch and I could profit of it. Thanks, code looks nice. No bugs that I could see.

    Send from my GT-S5660 using Tapatalk 2
    Sorry for my english if it isn't good, I am from The Netherlands.

    My website:
    http://officialgreenmax.co.cc/

  15. #15
    hoi
    Rank
    Member +
    Join Date
    May 2011
    Location
    Netherlands
    Posts
    369
    Liked
    24

    Re: [SNIPPET] Badge Shop - DeltaCMS

    Thanks for this release, and i dont like 'AmirZ CMS edits'

 

 
Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •