SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Zealot
    Join Date
    Jun 2010
    Location
    Arizona
    Posts
    109
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Suggestions for additional demos

    I'm building some live demos for Admin Pack:

    http://barebonescms.com/documentation/admin_pack/

    But I'm having difficulties coming up with good ideas for demos. I'd like to only take a couple of hours to create each demo - but the only ideas I'm coming up with right now are for full-blown applications that would take me much longer to create. My goal is a set of simple demos that do something useful or demonstrate a specific concept within the confines of Admin Pack (i.e. no frontend).

    Suggestions?
    Thomas Hruska

    Single Sign-On Server/Client - The PHP login system that rocks.

  2. #2
    SitePoint Wizard bronze trophy
    Join Date
    Jul 2006
    Location
    Augusta, Georgia, United States
    Posts
    4,147
    Mentioned
    16 Post(s)
    Tagged
    3 Thread(s)
    What you have created looks pretty interesting having read through some of docs though yet to download it. I'll probably play around with it some and get back to you via this thread. Just gotta find the motivation and time. First impression though seems positive on the framework itself. Have to look/understand that before the admin pack before I would feel comfortable commenting.
    The only code I hate more than my own is everyone else's.

  3. #3
    SitePoint Wizard bronze trophy
    Join Date
    Jul 2006
    Location
    Augusta, Georgia, United States
    Posts
    4,147
    Mentioned
    16 Post(s)
    Tagged
    3 Thread(s)
    I love your documentation. Looks like a lot of hard work went into it alone. Just thought I would say that… now back to looking at it.
    The only code I hate more than my own is everyone else's.

  4. #4
    SitePoint Wizard bronze trophy
    Join Date
    Jul 2006
    Location
    Augusta, Georgia, United States
    Posts
    4,147
    Mentioned
    16 Post(s)
    Tagged
    3 Thread(s)
    I ran into a bug that I thought you might want to know about.

    /edit.php:
    PHP Code:
        if (isset($_REQUEST["bbl"])) // bbl does not exist upon first clicking on the edit link on the blank screen. Therefore, authentication credentials are always invalid it seems.
        
    {
            require_once 
    "accounts.php";

            
    BB_RunPluginAction("accounts_loaded");

            if (isset(
    $bb_accounts["sessions"][$_REQUEST["bbl"]]))
            {
                
    $bb_session $bb_accounts["sessions"][$_REQUEST["bbl"]];
                if (
    $bb_session["expire"] < time())  {
                    
    BB_DeleteExpiredUserSessions();
                } else  {
                    
    $bb_account $bb_accounts["users"][$bb_session["username"]];
                }
            }
        } 
    I thought this stemmed from the fact that the edit link does not seem to include the bbl variable in the query string. Therefore, I added a dump of the sessions and added it manually.

    PHP Code:
        if (isset($_REQUEST["bbl"]))
        {
            require_once 
    "accounts.php";

            
    BB_RunPluginAction("accounts_loaded");
            
            echo 
    '<pre>'.print_r($bb_accounts["sessions"],true).'</pre>';

            if (isset(
    $bb_accounts["sessions"][$_REQUEST["bbl"]]))
            {
                
    $bb_session $bb_accounts["sessions"][$_REQUEST["bbl"]];
                if (
    $bb_session["expire"] < time())  {
                    
    BB_DeleteExpiredUserSessions();
                } else  {
                    
    $bb_account $bb_accounts["users"][$bb_session["username"]];
                }
            }
        } 
    So my new url was something like:

    Code:
    http://local.barebonescms-v1.0/?bb_action=bb_main_edit&bbl=d9710c9c72bfe5affa1c0b691602bf6ad3752e6b
    Then, instead of getting a blank screen with single error I got the below. That is where I gave up…

    Screen shot 2012-05-22 at 11.11.56 PM.png

    By the way the logged in user would be the one with super permissions. I didn't define the other(s).
    The only code I hate more than my own is everyone else's.

  5. #5
    SitePoint Zealot
    Join Date
    Jun 2010
    Location
    Arizona
    Posts
    109
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I was a quite confused when I looked at the code you posted. Then I realized that you downloaded and are using Barebones CMS, not Admin Pack. Scroll down on the Downloads page a bit further to get to Admin Pack. It is pretty easy to get lost when you aren't aware that multiple products reside on the same website.

    Admin Pack is a separate product that sits on the same website and borrows heavily from the Barebones CMS architecture but it is not Barebones CMS.
    Thomas Hruska

    Single Sign-On Server/Client - The PHP login system that rocks.

  6. #6
    SitePoint Wizard bronze trophy
    Join Date
    Jul 2006
    Location
    Augusta, Georgia, United States
    Posts
    4,147
    Mentioned
    16 Post(s)
    Tagged
    3 Thread(s)
    Oh… I thought it was an extension Barebones CMS. That is why I was trying to understand Barebones CMS before diving into the admin pack. Still though I would be interested in knowing how to fix that issue Barebones CMS which I pointed out. The system is completely unusable otherwise. I'll checkout the admin pack though… hopefully I don't run into the same issue.
    The only code I hate more than my own is everyone else's.

  7. #7
    SitePoint Zealot
    Join Date
    Jun 2010
    Location
    Arizona
    Posts
    109
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you were running Barebones CMS 1.0 on PHP 5.3 or later, there is an issue with the product that causes logins to not function properly. Barebones CMS 1.1 has a fix for that (and many other issues) and RC14 is pretty much close to what the final release will be. The login screen (login.php) creates the 'bbl' and 'bbq' cookies (yes, there is a cookie named 'bbq' in Barebones CMS) that the rest of the system uses.
    Thomas Hruska

    Single Sign-On Server/Client - The PHP login system that rocks.

  8. #8
    SitePoint Wizard bronze trophy
    Join Date
    Jul 2006
    Location
    Augusta, Georgia, United States
    Posts
    4,147
    Mentioned
    16 Post(s)
    Tagged
    3 Thread(s)
    Quote Originally Posted by thruska
    If you were running Barebones CMS 1.0 on PHP 5.3 or later, there is an issue with the product that causes logins to not function properly.
    That would be it than, thanks. I'll check out 1.1 much appreciated.
    The only code I hate more than my own is everyone else's.


Bookmarks

Posting Permissions

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