SnippetMaster Support Forums
Return to main website
 
December 06, 2008, 07:09:44 PM
* Show unread posts since last visit.
* Show new replies to your posts.
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 06, 2008, 07:09:44 PM

Login with username, password and session length
Search:  
Advanced search
* Home Help Search Login Register
SnippetMaster Support Forums  |  General  |  How To's & FAQs  |  Topic: Change Demo Mode from Yes to No « previous next »
Pages: [1] Print
Author Topic: Change Demo Mode from Yes to No  (Read 2901 times)
genecap
Beta Tester

Posts: 58


WWW
[-] Change Demo Mode from Yes to No
« on: January 11, 2006, 10:51:53 AM »

After the Admin changed the Enable Demo mode from No to Yes.
A user could not save changes, just like it should work.

Then the Admin changed the Enable Demo back to "No", but the change did not happen.
This is what the Admin sees:

This feature is not enabled in Demonstration Mode.

How to fix?
« Last Edit: April 09, 2006, 05:34:04 AM by admin » Report to moderator   Logged

.... Gene
admin
Forum Administrator
*
Posts: 2446

SnippetMaster Author


WWW
[-] Re: Demo Mode from No to Yes to No
« Reply #1 on: January 11, 2006, 11:07:24 AM »

Hello,

Yes, this is "by design".  Smile

But wait!  Let me explain..   Cool

Let's say that you enable demo mode... and you have it up on your website for customers to try out.

And then they disable demo mode.. and start writing over your demo files, etc... or changing your demo user's password, or adding users, or whatever.. (all those things are disabled in demo mode).

That would be a problem.

So the only solution I could think of was to not allow the ability to "turn off" demo mode once it has been turned on. 

The solution:

1) Download and open the /snippet-db/random-folder-name/program_settings.php file with a text editor.
2) Change line #9 from this:
Quote
demo_mode#1

to this:
Quote
demo_mode#0

3) Save and upload the file, overwriting the old version.

That will "manually" disable the demo mode. 

I'll probably eventually add some way to do this without manually having to edit the database file.. but for now it's a manual process.  Smile

« Last Edit: January 11, 2006, 12:11:42 PM by admin » Report to moderator   Logged
genecap
Beta Tester

Posts: 58


WWW
[-] Re: Demo Mode from No to Yes to No
« Reply #2 on: January 11, 2006, 12:03:29 PM »

Very good way to solve this issue, it worked Very Happy
The file to edit is  located within a sub folder of snippet-db. The sub folder name looks like some random name, but editing per your instructions worked.
Thanks...
Report to moderator   Logged

.... Gene
admin
Forum Administrator
*
Posts: 2446

SnippetMaster Author


WWW
[-] Re: Demo Mode from No to Yes to No
« Reply #3 on: January 11, 2006, 12:11:02 PM »


The file to edit is  located within a sub folder of snippet-db. The sub folder name looks like some random name, but editing per your instructions worked.


Oh ya.. I forgot about that.  This is the "database" folder, and is a random name that is picked when you install the program.  It's for security, so that nobody can easily guess the location of your database files.  Smile

Report to moderator   Logged
Terminator1138
Beta Tester

Posts: 6


WWW
[-] Re: Demo Mode from No to Yes to No
« Reply #4 on: January 12, 2006, 11:57:08 AM »

could one fix this by setting up a demo rules for not allowing certain changes and admin functionality so they could not change demo files?  Thus admin could log in and change the demo mode?
Report to moderator   Logged
admin
Forum Administrator
*
Posts: 2446

SnippetMaster Author


WWW
[-] Re: Demo Mode from No to Yes to No
« Reply #5 on: March 28, 2006, 09:21:49 AM »

It would be extremely difficult to do that, and would be dependent on setting proper write permissions of the files, database folders, etc...

I have added an "alert popup" to warn admin that the change to Demo Mode can only be reversed by manually changing the database setting...

.. and I also added instructions to change the database to the tooltip popup for the option.  Smile

Report to moderator   Logged
Pages: [1] Print 
SnippetMaster Support Forums  |  General  |  How To's & FAQs  |  Topic: Change Demo Mode from Yes to No « previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!