badge shop? and inbox thing + how did u put ur facebook up on cms
This is a discussion on [Service] Coding PhoenixPHP Addon's within the Habbo Releases forums, part of the Habbo Hotel category; PhoenixPHP I know PhoenixPHP is filled with Exploits but i would like to get some experience with PHP coding. Request ...

PhoenixPHP
I know PhoenixPHP is filled with Exploits but i would like to get some experience with PHP coding.
Request Title:
- Name : ex. Private Msg System
- Function : You can send mail to other users
Here is some pic that i coded myself small but suitable for my liking :-)
Images:
PHP Snippets:
It's an Edit of badgeshop that can be controlled from HousekeepingPHP Code:<?php
$error = "";
### The Badge which you want to sell ###
$badge = "<?php echo $core->CmsSetting('badge_shop'); ?>";
### How many PIXELS costs the badge? ###
$price = "1";
if(isset($_POST['buy-bad']))
{
$user_info = @mysql_query("SELECT * FROM users WHERE username='".$_POST["habbo"]."'");
if($row = mysql_fetch_assoc($user_info))
{
$id = $row['id'];
$check_bag = mysql_query("SELECT * FROM user_badges WHERE user_id='". $id ."' AND badge_id='". $badge_shop ."'");
$check_user = mysql_query("SELECT * FROM users WHERE id='". $id ."'");
if(mysql_num_rows($check_bag) > 0)
{
$error.= '<br><font color="#FF0000">You have already bought this badge!</font>';
}
else
{
if($db_pixels_check = mysql_fetch_assoc($check_user))
{
$pixels = $db_pixels_check['activity_points'];
if($pixels >= $price)
{
$pixels_total = $pixels - $price;
mysql_query("UPDATE `users` SET `activity_points` = '". $pixels_total ."' WHERE `id` = '". $id ."';");
mysql_query("INSERT INTO `user_badges` (`user_id`, `badge_id`, `badge_slot`) VALUES (". $id .", '". $core->CmsSetting('badge_shop') ."', 0)");
$pixels_total = number_format($pixels_total);
$error.= "<br /><font color='#009900'>You have successfully bought this badge.</font>";
}
else
{
$error.= "<br><font color='#FF0000'>You haven't enough pixels to buy this badge!</font>";
}
}
}
}
}
?>
Last edited by GayPride; 21-11-11 at 04:32 AM.
badge shop? and inbox thing + how did u put ur facebook up on cms
I released that rare values.
I released that DJ HK and Comment Colors
U did not made all these....u did make some, thats true but theres also work of others between?
I like the Beta Codes.
All of the addons are added in eCMS v1 i released some weeks ago.
You did not release the comment colors for PhoenixPHP and the DJ Housekeeping so Nice Try on that one Thank You Very Much
i had these addons more then a week ago go take a look here hobbaphp - Edit's of PhoenixPHP - Google Project Hosting
Thank i did that all by myself
Name: referral system
Function: Register from a usersname link and the users in the links gets 5000 cr if someone register via his link ( http://www.mysite.com/referral=name )
As far as I'm aware you didn't make any, Predict made half of them.
I do believe the link would be http://mysite.com/register.php?referral=name ....
It would be easy actually :) I created a referral system for ubercms(with help from s-p-n <3 cause the $_GET['ref'] wasn't functioning well enough :P)
Can you release that beta code addon?