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

Page 4 of 4 FirstFirst 1234
Results 46 to 60 of 60
  1. #46
    Account Upgraded | Title Enabled! Mozilla2 is offline
    MemberRank
    Apr 2012 Join Date
    The NetherlandsLocation
    223Posts

    Re: BandzCMS [PHP] [PDO] [RainTPL] [Caching]

    Quote Originally Posted by ησвяαιη View Post
    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 fucking 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.

  2. #47
    Proficient Member Xesause is offline
    MemberRank
    Feb 2015 Join Date
    181Posts

    Re: BandzCMS [PHP] [PDO] [RainTPL] [Caching]

    Quote Originally Posted by Mozilla2 View Post
    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...

  3. #48
    Account Upgraded | Title Enabled! Mozilla2 is offline
    MemberRank
    Apr 2012 Join Date
    The NetherlandsLocation
    223Posts

    Re: BandzCMS [PHP] [PDO] [RainTPL] [Caching]

    Snippet :

    PHP Code:
    /** 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 by Mozilla2; 25-02-15 at 10:04 PM.

  4. #49
    Account Upgraded | Title Enabled! Mozilla2 is offline
    MemberRank
    Apr 2012 Join Date
    The NetherlandsLocation
    223Posts

    Re: BandzCMS [PHP] [PDO] [RainTPL] [Caching]

    Busy with the housekeeping which Stay made for BandzCMS :
    Last edited by Mozilla2; 25-02-15 at 10:05 PM.

  5. #50
    Proficient Member Xesause is offline
    MemberRank
    Feb 2015 Join Date
    181Posts

    Re: BandzCMS [PHP] [PDO] [RainTPL] [Caching]

    Quote Originally Posted by Mozilla2 View Post
    Busy with the housekeeping :
    Looks good

  6. #51
    Account Upgraded | Title Enabled! Mozilla2 is offline
    MemberRank
    Apr 2012 Join Date
    The NetherlandsLocation
    223Posts

    Re: BandzCMS [PHP] [PDO] [RainTPL] [Caching]

    Stay added live search and edit in the housekeeping.
    Last edited by Mozilla2; 25-02-15 at 10:05 PM.

  7. #52
    R.I.P Millercent FatalLulz is offline
    MemberRank
    Nov 2012 Join Date
    AustraliaLocation
    2,248Posts

    Re: BandzCMS [PHP] [PDO] [RainTPL] [Caching]

    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

  8. #53
    Account Upgraded | Title Enabled! Mozilla2 is offline
    MemberRank
    Apr 2012 Join Date
    The NetherlandsLocation
    223Posts

    Re: BandzCMS [PHP] [PDO] [RainTPL] [Caching]

    Quote Originally Posted by FatalLulz View Post
    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 :


    transfer vip_points / stars / diamonds to other players :


  9. #54
    Proficient Member Xesause is offline
    MemberRank
    Feb 2015 Join Date
    181Posts

    Re: BandzCMS [PHP] [PDO] [RainTPL] [Caching]

    Quote Originally Posted by FatalLulz View Post
    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

    Quote Originally Posted by Mozilla2 View Post
    Gonna use that idea, thanks.

    preview on the second theme :

    me page :


    transfer vip_points / stars / diamonds to other players :

    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?

  10. #55
    Account Upgraded | Title Enabled! Mozilla2 is offline
    MemberRank
    Apr 2012 Join Date
    The NetherlandsLocation
    223Posts

    Re: BandzCMS [PHP] [PDO] [RainTPL] [Caching]

    Quote Originally Posted by Xesause View Post
    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.

  11. #56
    Novice StayBandz is offline
    MemberRank
    Feb 2015 Join Date
    2Posts

    Re: BandzCMS [PHP] [PDO] [RainTPL] [Caching]

    Working my ass 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.



  12. #57
    Proficient Member Xesause is offline
    MemberRank
    Feb 2015 Join Date
    181Posts

    Re: BandzCMS [PHP] [PDO] [RainTPL] [Caching]

    Looks good! Publish your entire repo to GitHub, so we can take a peek on the backend too!

  13. #58
    Novice StayBandz is offline
    MemberRank
    Feb 2015 Join Date
    2Posts

    Re: BandzCMS [PHP] [PDO] [RainTPL] [Caching]

    Quote Originally Posted by Xesause View Post
    Looks good! Publish your entire repo to GitHub, so we can take a peek on the backend too!
    Nope. At this time everything is still kind of 'private'.

  14. #59
    Apprentice Griimnak is offline
    MemberRank
    Mar 2015 Join Date
    13Posts

    Re: BandzCMS [PHP] [PDO] [RainTPL] [Caching]

    I'm not much of a habbo guy, but damn the style looks crisp of your hk theme and main theme, goodluck guys :)

  15. #60
    "(still lacks brains)" NoBrain is offline
    MemberRank
    Sep 2011 Join Date
    United KingdomLocation
    2,658Posts

    Re: BandzCMS [PHP] [PDO] [RainTPL] [Caching]

    Closed since it seems like a dead development. PM me if you would like it re-opened.



Page 4 of 4 FirstFirst 1234

Advertisement