• Is there any way to “show” someone all of the admin functions without any of them being active?

    I want to make a few users into Admins, but I would like them to be able to look over all the options thoroughly before going on to do real damage 😉

    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter kaat

    (@kaat)

    Thanks skippy, that’s actually the one way I was aware of; it’s just that I was hoping to switch my install to demo mode so users can see the various plugins and theme mods too.

    No, there’s no demo mode for WordPress.

    You could always set up a second blog, strictly for goofing around. This is conventionally called a sandbox. Lots of here have second (and third!) blogs used solely to test things.

    WordPress’ ease of installation makes this extremely easy.

    Hi friends,

    I’ve just found a way to add a demo user to WordPress without any worry, I posted the way in the mailing list , but I had no feedback, We use the demo @ persian wordpress project without any problem, here is the original message :

    [WORDPRESS 2+ ONLY]

    For a wordpress i18n project I needed to run a demo version of a wordpress (ADMIN) without being worry about miss-usages/hacks/attacks, After working a bit I found a simple way , I will explain my way. Before I announce this soloution and putting it into action , I need some experts’ comments.

    First of All I changed wp-includes/wp-db.php (function query) :

    Original Code:

    $this->result = @mysql_query($query, $this->dbh);
    ++$this->num_queries;

    Changed to :

    global $userdata;

    if (($userdata->user_login == ‘demo’) && (preg_match(“/^\\s*(insert|delete|update|replace) /i”,$query)))
    $_stop = true;
    else
    $_stop = false;

    if (!$_stop) {
    $this->result = @mysql_query($query, $this->dbh);
    ++$this->num_queries;
    }

    This code will prevent user identified by DEMO to change database, After that we should turn the wp cache off to avoid option caching,

    This method would work, and will show the demo user all the power of WP ADMIN area without changing the DB at all 🙂

    There’s just one point remains : editing files

    This can be overcome by using “WP2 Roles”, I used plugin “Role Manager” and revoked “Edit Plugins”, “Edit Files”, “Import” and “Edit Themes” from a Role named “Demo” and assigned the user demo the role demo!

    “WordPress’ ease of installation makes this extremely easy.”

    haha.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Admin demo mode?’ is closed to new replies.