Results 1 to 9 of 9

Thread: wp admin demo site

  1. #1
    SonnyCooL's Avatar
    SonnyCooL is offline HeeHa
    Join Date
    Jan 2010
    Location
    Melb/Malaysia
    Posts
    920
    Thanks
    250
    Thanked 92 Times in 78 Posts

    wp admin demo site

    guy anyone know how to create a demo site to allow user login and try run ? and everything will be reset in certain time frame ??
    thanks

  2. #2
    Gavo is offline Newbie Net Builder
    Join Date
    Dec 2012
    Posts
    17
    Thanks
    0
    Thanked 4 Times in 3 Posts
    There is a reply here that might help
    WordPress › Support Admin demo mode?

    I wouldn't provide a live demo, it would take a lot of extra coding to block anyone from being able to edit files or get a shell in there, be very careful what you do & if you don't fully understand security don't do it, unless you find a full plugin to do it for you

  3. #3
    Gavo is offline Newbie Net Builder
    Join Date
    Dec 2012
    Posts
    17
    Thanks
    0
    Thanked 4 Times in 3 Posts
    meh edit post doesn't work & when clicking submit post a popup box asked if I wanted to leave the page , enter key wont work in IE either check here WordPress › Role Scoper WordPress Plugins

  4. #4
    TopDogger's Avatar
    TopDogger is offline Über Hund
    Join Date
    Jan 2009
    Location
    Hellfire, AZ
    Posts
    2,946
    Thanks
    341
    Thanked 883 Times in 671 Posts
    It sounds like what he is looking for is a plugin that resets any changes the temporary admin makes to a site.

    SonnyCool, I think the only way you can do that is to make a copy of the database prior to the demo and restore that database after.
    "Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote." -- Benjamin Franklin


  5. #5
    Andy101's Avatar
    Andy101 is offline Code Otaku
    Join Date
    Aug 2009
    Location
    Kanazawa
    Posts
    1,177
    Thanks
    163
    Thanked 297 Times in 224 Posts
    I think that for security reasons, you would have to set it up in a virtual machine, disable the sending of email, and reload a mirrored copy of the drive on each reset. In any case, you would need an IT expert to set it up.

  6. #6
    TopDogger's Avatar
    TopDogger is offline Über Hund
    Join Date
    Jan 2009
    Location
    Hellfire, AZ
    Posts
    2,946
    Thanks
    341
    Thanked 883 Times in 671 Posts
    A simplified way to accomplish this could be to set up two databases and simply change the wp-config file to point to the appropriate database.

    Database #1 would be the normal version of the site where you do not allow other to access the admin area.

    Database #2 would be your demo database that you do allow others to access and they can change admin settings. When you are done with a demo, copy Database #1 over Database #2 to reset it for the next demo.

    Each database can contain different logins and configurations for demo purposes.

    We are talking about perhpas 5 minutes of time to reset the database.
    "Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote." -- Benjamin Franklin


  7. #7
    Andy101's Avatar
    Andy101 is offline Code Otaku
    Join Date
    Aug 2009
    Location
    Kanazawa
    Posts
    1,177
    Thanks
    163
    Thanked 297 Times in 224 Posts
    But, in WordPress you can edit the code of the plugins to do whatever crazy stuff you like on the server

  8. #8
    TopDogger's Avatar
    TopDogger is offline Über Hund
    Join Date
    Jan 2009
    Location
    Hellfire, AZ
    Posts
    2,946
    Thanks
    341
    Thanked 883 Times in 671 Posts
    That's a good point, but I don't think you can edit the plugin code unless you give the plugins folder the proper permissions. At least you cannot on my sites.

    You can disable the editors with a simple line of code in the wp-config.php file

    How to Disable Theme and Plugin Editors from WordPress Admin Panel

    Code:
    define( 'DISALLOW_FILE_EDIT', true );
    "Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote." -- Benjamin Franklin


  9. #9
    SonnyCooL's Avatar
    SonnyCooL is offline HeeHa
    Join Date
    Jan 2010
    Location
    Melb/Malaysia
    Posts
    920
    Thanks
    250
    Thanked 92 Times in 78 Posts
    actually i found a way of doing it
    1. Setup WPMS.
    2. Create a sub site. (blog ID1)
    3. Use domain mapping for domain or just leave it play around with subdomain.
    4. Set user roles as administrator. (only sub site, not network)
    5. Use wp reset db. (i use cron job to reset it) [/QUOTE]

Tags for this Thread

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
  •