• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

BandzCMS [PHP] [PDO] [RainTPL] [Caching]

Status
Not open for further replies.
Initiate Mage
Joined
Dec 20, 2014
Messages
4
Reaction score
0
Any updates? Non-habbo themed CMS's aren't really my first pick, but this is looking out fine. As for copyrighting as mentioned above, nothing was yet proven, so please continue with updates. :)
 
Junior Spellweaver
Joined
Feb 2, 2015
Messages
181
Reaction score
86
Any updates? Non-habbo themed CMS's aren't really my first pick, but this is looking out fine. As for copyrighting as mentioned above, nothing was yet proven, so please continue with updates. :)

'Nothing was yet proven?'
'Nothing was yet proven?'

Watch out, man!
 
Experienced Elementalist
Joined
Apr 25, 2012
Messages
222
Reaction score
35
Been gone for a while, CMS is almost done, got a second style too.
 
Experienced Elementalist
Joined
Apr 25, 2012
Messages
222
Reaction score
35
Read on the first or second page someone recommended a Radio, please - for the love of god - do not make it automatically play on page load. It's so Ducking annoying having a radio pelting down your headphones so loud it could pop your ear drums. :(

I don't have a radio includes, they suck.
 
Junior Spellweaver
Joined
Feb 2, 2015
Messages
181
Reaction score
86
Been gone for a while, CMS is almost done, got a second style too.

Yeah, not that difficult to 'be done'.
The only thing you have done are making themes and changing header notices...
 
Experienced Elementalist
Joined
Apr 25, 2012
Messages
222
Reaction score
35
Snippet :

PHP:
/** Class coded by Stay. BandzCMS 2015 **\\
<?php

class Transfer extends TableHolder
{

	public static function getTable ()
	{
		return 'bandz_transfers';
	}
	
	public static function getIdentifyingRow ()
	{
		return 'id';
	}

	public function __construct ($id)
	{
		$query = $this->prepare ('SELECT * FROM `'. $this->safe ($this->getTable ()) .'` WHERE '.$this->safe ($this->getIdentifyingRow ()) .' = :id LIMIT 1');
		$query->execute (array (':id' => $id));
		
		if ($query->rowCount () < 1)
			exit ('<strong>BandzCMS Element -></strong> Transaction with ID '. $id .' does not exist.');
		
		$this->identifier = $id;
		$this->data = $query->fetch (PDO::FETCH_ASSOC);

	}
	
public static function checkUser ($username)
{
		$query = static::prepare ('SELECT * FROM users WHERE username = :id');
			$query->execute (array (
			':id' => $username,
		));

		if ($query->rowCount () > 0) 
			return TRUE;

}
public static function checkPoints ($user, $points)
{
	$query = static::prepare ("SELECT * FROM users WHERE id = :id AND vip_points > :points");
	$query->execute (array (':id' => $user, ':points' => $points+5));

	if ($query->rowCount () > 0){
		return TRUE;
	}
}

public static function transfer ($from, $amount, $to)
{
		$query = static::prepare ("INSERT INTO bandz_transfers (from_name, to_name, amount, datum) values (:van, :to, :amount, NOW())");
		$query->execute (array (
			
			':van' => $from,
			':to' => $to,
			':amount' => $amount,

			));
		

		$query = static::prepare ('UPDATE users SET vip_points = vip_points - :price WHERE username = :uid LIMIT 1');
			$query->execute (array (
			':uid' => $from,
			':price' => $amount+5,
		));	
		$query = static::prepare ('UPDATE users SET vip_points = vip_points + :price WHERE username = :to LIMIT 1');
			$query->execute (array (
			':to' => $to,
			':price' => $amount,
		));	
		if($query){
			$succes = 'Voltooid';
		} else {
			$error = 'Mislukt';
		}
}
	
public static function getTrans ($desc = true, $asArray = true, $naam)
	{
		$query = static::prepare ("SELECT id FROM bandz_transfers WHERE from_name = :naam OR to_name = :naem ORDER BY datum ". ($desc ? 'DESC' : 'ASC'));
		$query->execute (array (':naam' => $naam,
								':naem' => $naam));
		
		$results = $query->fetchAll (PDO::FETCH_ASSOC);
		$output = array ();
		
		if ($asArray)
			foreach ($results as $rank)
				$output [] = (new Transfer ($rank ['id']))->getData ();
		else
			foreach ($results as $rank)
				$output [] = new Transfer ($rank ['id']);
		
		return $output;

	}
}
?>


You can give your friends some stars / shells or whatever you guys calls it
 
Last edited:
Experienced Elementalist
Joined
Apr 25, 2012
Messages
222
Reaction score
35
Busy with the housekeeping which Stay made for BandzCMS :
8EPpV1F - BandzCMS [PHP] [PDO] [RainTPL] [Caching] - RaGEZONE Forums
 
Last edited:
Experienced Elementalist
Joined
Apr 25, 2012
Messages
222
Reaction score
35
Stay added live search and edit in the housekeeping.
 
Last edited:
R.I.P Millercent
Loyal Member
Joined
Nov 6, 2012
Messages
2,230
Reaction score
314
A nice feature in a Housekeeping is catalogue editing! That way if you have someone dedicated for adding items to the catalogue they can do it via there (providing the swf is uploaded to the server).

Other wise looks good man :):
 
Experienced Elementalist
Joined
Apr 25, 2012
Messages
222
Reaction score
35
A nice feature in a Housekeeping is catalogue editing! That way if you have someone dedicated for adding items to the catalogue they can do it via there (providing the swf is uploaded to the server).

Other wise looks good man :):

Gonna use that idea, thanks.

preview on the second theme :

me page :
9vWKH24 - BandzCMS [PHP] [PDO] [RainTPL] [Caching] - RaGEZONE Forums


transfer vip_points / stars / diamonds to other players :
hcfSWA8 - BandzCMS [PHP] [PDO] [RainTPL] [Caching] - RaGEZONE Forums

BF4JUEm - BandzCMS [PHP] [PDO] [RainTPL] [Caching] - RaGEZONE Forums
 
Junior Spellweaver
Joined
Feb 2, 2015
Messages
181
Reaction score
86
A nice feature in a Housekeeping is catalogue editing! That way if you have someone dedicated for adding items to the catalogue they can do it via there (providing the swf is uploaded to the server).

Other wise looks good man :):
Hey man! That was MY idea :p

Gonna use that idea, thanks.

preview on the second theme :

me page :
9vWKH24 - BandzCMS [PHP] [PDO] [RainTPL] [Caching] - RaGEZONE Forums


transfer vip_points / stars / diamonds to other players :
hcfSWA8 - BandzCMS [PHP] [PDO] [RainTPL] [Caching] - RaGEZONE Forums

BF4JUEm - BandzCMS [PHP] [PDO] [RainTPL] [Caching] - RaGEZONE Forums

Looks good. May I make one suggestion:
Add jQueryUI autocomplete to the 'Aan persoon', so you can just type in the first few characters :)

About the transfer logs, are these just the transfers you did to other people and other people did to you, or are transfers from other people also included. In the last case, people might see that as privacy violation :p

edit
one thing: push everything to GitHub so we can see what you have made, how far you are and on what we can help you

Have you also got an estimated release date?
 
Experienced Elementalist
Joined
Apr 25, 2012
Messages
222
Reaction score
35
Hey man! That was MY idea :p



Looks good. May I make one suggestion:
Add jQueryUI autocomplete to the 'Aan persoon', so you can just type in the first few characters :)

About the transfer logs, are these just the transfers you did to other people and other people did to you, or are transfers from other people also included. In the last case, people might see that as privacy violation :p

edit
one thing: push everything to GitHub so we can see what you have made, how far you are and on what we can help you

Have you also got an estimated release date?

Only the transfers you did to other people and other people did to you.
Don't have a release date, i hate deadlines.
 
Initiate Mage
Joined
Feb 25, 2015
Messages
2
Reaction score
1
Working my butt of on the housekeeping. But the progress is going well just as I expected.

Oh and hi. My name is Stay. and I'm also a BandzCMS developer.

I'll post you all a screen from the postnews page.


vjZQ5iH - BandzCMS [PHP] [PDO] [RainTPL] [Caching] - RaGEZONE Forums
 
Junior Spellweaver
Joined
Feb 2, 2015
Messages
181
Reaction score
86
Looks good! Publish your entire repo to GitHub, so we can take a peek on the backend too!
 
Newbie Spellweaver
Joined
Mar 17, 2015
Messages
13
Reaction score
6
I'm not much of a habbo guy, but damn the style looks crisp of your hk theme and main theme, goodluck guys :)
 
Status
Not open for further replies.
Back
Top