BrickPHP ~ Complete CMS

Page 1 of 20 12345678911 ... LastLast
Results 1 to 15 of 289
  1. #1
    Live Ocottish Sverlord Joopie is offline
    LegendRank
    Jun 2010 Join Date
    The NetherlandsLocation
    2,773Posts

    BrickPHP ~ Complete CMS


    I made my own thread, So I don't spam wichards thread xD

    TestHotel: http://brickhotel.zapto.org

    Already done:
    • SMTP class for sending emails
    • Full register
    • Full me page except group stats
    • Full community
    • Articles / sort op category
    • My account as far as possible
    • Quickmenu full finished except groups
    • Identity page full fisished
    • Ability to switch and add (between) users ~ safe
    • Ability to use `forgot password`
    • Ability to change your password
    • Habbo credits
    • Habbo club
    • Making cache system for (Menu,News,Champaing...)


    To-Do:
    • Rechecking codes ~ 50/50
    • Housekeeping
    • Making more habblets (Ingame news/safe link ...)
    • Home/Groups


    Average query count: 3 max 11 for cache


    Someone request or comments, Please let me know it =D
    More info can be found in:http://forum.ragezone.com/f331/brick...cratch-770243/






    Code:
    Query optimised!
    
    BrickPHP Minimail:
    SELECT `site_minimail`.*,`users`.`username` AS `sender_name`,`users`.`look` AS `sender_look` FROM `site_minimail` INNER JOIN `users` ON `users`.`id` = `site_minimail`.`sender_id` WHERE `folder` = "'.$folder.'" AND `receiver_id` = "'.USER_ID.'"'.$unread_plus.' ORDER BY `id` DESC
    
    UberCMS Minimail:
    SELECT * FROM site_minimail WHERE folder = '" . $folder . "' AND receiver_id = '" . USER_ID . "'" . $isReadClause . " ORDER BY id DESC
    -For every minimail item:
    SELECT username,look FROM users WHERE id = '" . $message['sender_id'] . "' LIMIT 1
    
    Explain
    You got 4 message: Uber must run 5 queries for it, BrickPHP runs 1 query :D
    Me page snippet:
    PHP Code:
    <?php
        define
    ('PAGE'1);
        
    define('PARENT'4);
        
    define('MUSTLOGGEDIN'true);
        require 
    './global.php';
        
        
    $tpl = new tpl('Home');
        
    $tpl->AddFile('head');
        
    $tpl->AddDefault();
        
    $tpl->AddFile('head-end');
        
        
    $tpl->SetParam('body_id''home');
        new 
    CommunityMenu();
        
    $tpl->AddTemplate(CommunityMenu::GetTemplate());
        
        
    $tpl->AddLine('<div id="column1" class="column">');
        
    //Content column 1
        
        
    $userinfo = new tpl('userinfo');
        
    $userinfo->SetParam('look'User::GetUserData('look'));
        
    $userinfo->SetParam('motto'User::GetUserData('motto'));
        
    $userinfo->SetParam('last_login'User::GetUserData('last_alive'));
        
    $userinfo->SetParam('pixels'User::GetUserData('pixels'));
        
    $userinfo->SetParam('credits'User::GetUserData('credits'));
        
    $userinfo->AddFile('comp-userinfo');
        
    $tpl->AddTemplate($userinfo);

        new 
    HabbletUserSelect();
        
    $tpl->AddTemplate(HabbletUserSelect::GetTemplate());
        
        new 
    CommunityCampaigns();
        
    $tpl->AddTemplate(CommunityCampaigns::GetTemplate());
        
        new 
    HabbletMinimail();
        
    $tpl->AddTemplate(HabbletMinimail::GetTemplate());
        
        
    $tpl->AddFile('comp-habbosearch');
        
        
    $tpl->AddLine('</div>');
        
    $tpl->AddLine('<div id="column2" class="column">');
        
    //Content column 2
        
        
    new SideNews(42);
        
    $tpl->AddTemplate(SideNews::GetTemplate());
        
        
    $tpl->SetParam('twitter_username'Core::$config['twitter']);
        
    $tpl->AddFile('comp-twitter');
        
        
    $tpl->AddLine('</div>');
        
        
    $tpl->AddFile('community-column3');
        
        
    $tpl->AddFile('footer');
        
        echo 
    $tpl;    
    ?>
    Last edited by Joopie; 02-09-11 at 08:59 PM.


  2. #2
    prjRev.com Kryptos is offline
    MemberRank
    Feb 2010 Join Date
    Planet EarthLocation
    579Posts

    Re: BrickPHP ~ Complete CMS

    Looks nice, your JS and CSS skills are epic, so this will probably be very good.

    Good luck!

  3. #3
    The one and only! Hejula is offline
    MemberRank
    Nov 2008 Join Date
    4,128Posts

    Re: BrickPHP ~ Complete CMS

    On the bottom of the news article page can you add like a "Posted by: ???" or "- ???" with a link to there profile?

  4. #4
    Live Ocottish Sverlord Joopie is offline
    LegendRank
    Jun 2010 Join Date
    The NetherlandsLocation
    2,773Posts

    Re: BrickPHP ~ Complete CMS

    Quote Originally Posted by Hejula View Post
    On the bottom of the news article page can you add like a "Posted by: ???" or "- ???" with a link to there profile?

  5. #5
    What about no. Davidaap is offline
    MemberRank
    Nov 2009 Join Date
    773Posts

    Re: BrickPHP ~ Complete CMS

    I WANT CREDITS FOR THE IDEA FOR A OWN THREAD JOOPIE

    no just kidding, i have see some code with teamvieuwer and i like it :D

  6. #6
    The one and only! Hejula is offline
    MemberRank
    Nov 2008 Join Date
    4,128Posts

    Re: BrickPHP ~ Complete CMS

    Quote Originally Posted by davidaap View Post
    I WANT CREDITS FOR THE IDEA FOR A OWN THREAD JOOPIE

    no just kidding, i have see some code with teamvieuwer and i like it :D
    LOL.

    @Joopie can you setup demo site for this CMS I want to try it NOWW!!!! :)

  7. #7
    Live Ocottish Sverlord Joopie is offline
    LegendRank
    Jun 2010 Join Date
    The NetherlandsLocation
    2,773Posts

    Re: BrickPHP ~ Complete CMS

    Quote Originally Posted by Hejula View Post
    LOL.

    @Joopie can you setup demo site for this CMS I want to try it NOWW!!!! :)
    I'll look at it

    ...
    Finished the credit page:

  8. #8
    sexiess is a sin. Subway is offline
    MemberRank
    Jun 2010 Join Date
    2,491Posts

    Re: BrickPHP ~ Complete CMS

    What all is left to do?

  9. #9
    hi i'm robbie Roper is offline
    MemberRank
    Oct 2008 Join Date
    /home/roperLocation
    2,283Posts

    Re: BrickPHP ~ Complete CMS

    Ability to register using Facebook would be PRO! reckon you could do that?
    Posted via Mobile Device

  10. #10
    Ultra Light Beam Makarov is offline
    MemberRank
    Apr 2010 Join Date
    GothamLocation
    3,622Posts

    Re: BrickPHP ~ Complete CMS

    Quote Originally Posted by Roper View Post
    Ability to register using Facebook would be PRO! reckon you could do that?
    Posted via Mobile Device
    Not scamming people would be PRO too!

  11. #11
    Alpha Member Caustik is offline
    MemberRank
    May 2011 Join Date
    LondonLocation
    1,837Posts

    Re: BrickPHP ~ Complete CMS

    Quote Originally Posted by Tr0ll.™ View Post
    Not scamming people would be PRO too!
    +1 to Cobe
    On a serious note:
    Jos, this is freaking awesome, keep up the good work

  12. #12
    Iron like a Lion in Zion! vLife is offline
    Super ModRank
    Apr 2009 Join Date
    The BahamasLocation
    3,788Posts

    Re: BrickPHP ~ Complete CMS

    Dan, told him he is no longer allowed to sell items on RZ.

    Joopie this CMS is very promising, love all the work you did with it.

  13. #13
    Proficient Member Alexx. is offline
    MemberRank
    Feb 2011 Join Date
    160Posts

    Re: BrickPHP ~ Complete CMS

    Would this be using A VIP system.
    Posted via Mobile Device

  14. #14
    Live Ocottish Sverlord Joopie is offline
    LegendRank
    Jun 2010 Join Date
    The NetherlandsLocation
    2,773Posts

    Re: BrickPHP ~ Complete CMS

    Quote Originally Posted by Subway View Post
    What all is left to do?
    I made a list in the main topic x]

  15. #15
    Live Ocottish Sverlord Joopie is offline
    LegendRank
    Jun 2010 Join Date
    The NetherlandsLocation
    2,773Posts

    Re: BrickPHP ~ Complete CMS

    Made a cache class, Not so speciale but it works greate

    PHP Code:
    class Cache
        
    {
            protected static 
    $class;
            
            private static function 
    FileName()
            {
                return 
    BASE.'/includes/cache/'.md5(self::$class).'.cache';
            }
            
            public static function 
    Exists()
            {
                if (
    file_exists(self::FileName()) && filemtime(self::FileName()) +450 time())
                {
                    return 
    true;
                } 
                
                return 
    false;
            }
            
            public static function 
    MakeCache($data)
            {
                
    $data gzcompress($data);
                
                
    file_put_contents(self::FileName(), $data);
            }
            
            public static function 
    DeleteCache()
            {
                
    unlink(self::FileName());
            }
            
            public static function 
    GetCache()
            {
                
    $data file_get_contents(self::FileName());
                
                return 
    gzuncompress($data);
            }
        } 
    Also started with housekeeping and added some feeds by the user info.



    !!: Its not finished yet :!!


    Tonight or tomorrow I gonna make the full Habbo club/ Pixel page.



Page 1 of 20 12345678911 ... LastLast

Advertisement