Suggestions for additional demos

I’m building some live demos for 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?

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.

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.

I ran into a bug that I thought you might want to know about.

/edit.php:


	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.


	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:

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…

By the way the logged in user would be the one with super permissions. I didn’t define the other(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.

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.

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.

That would be it than, thanks. I’ll check out 1.1 much appreciated.