I would like to have a demo blog, where the visitor can login with some default demo userid and password, can test whatever he wants, but every e.g. 20 minutes, it would be cleared and "reinstalled".
What is the best way how to do it?
I would like to have a demo blog, where the visitor can login with some default demo userid and password, can test whatever he wants, but every e.g. 20 minutes, it would be cleared and "reinstalled".
What is the best way how to do it?
building a demo is simple, but making it reinstall per periods is not, as the system is not made for that...
the best thing could be that you create a blog, like #_1_, you copy the part of the database that contain the infos about #_1_, and you ca simply re-query your server with that content, overriding the old content...
Oh, i remember dr mike talked about this... he has a demo blog set up. He talked about it here in the forum somewhere.
simply re-query your server with that content, overriding the old content...
Can I know more about setting this timer. drmike demo blog is setup by subdomain. how about subdir? I mean subdirWPMU can make it?
I'm just emptying out the database tables for that specific blog and then reload them every 20 minutes or so.
drmike, you used to reload db manually?
I can't imagine how the rubbish spammer mess my demo blog in front of newcomer.
http://www.daria.be/demoupdate.phps
171 is the id of the blog that I had setup ahead of time. I'm leaving the stats tables in there and not replacing them.
thanks for sharing.
but not found default demo username & password can be reset in that demoupdate.phps
and confuse with "umeta_id" for new demo use.
but not found default demo username & password
It is. Take a look at the line starting with:
mysql_query("INSERT INTO 'wp_users'
and confuse with "umeta_id" for new demo use.
Please take a look at your wp_usermeta table.