Plugin Author
Allen
(@amweiss98)
ok..I found the problem…in the /inc/template_functions.php file, look for the function restore_template() function..then change first IF statement to:
if (!$templateOptions[‘template_name’]==0 && !$templateOptions[‘template_code’]==0){
I’ll post this in the next update.
I have made the changes as you suggested. Now, on the Template Options tab I have this text:
Save Your Template
Here is the template you are currently using. If you changed the template, you can save it by giving it a new name and click Save This Template. When you do this, you will also be saving the CSS template.
Your Current Template: DEFAULT
Give your current template a unique name:
I gave to the template a new name ‘flux’ and pushed the button Save This Template. After this the response message was:
SUCCESS. Your template has been stored in the database. After the next update of the plugin, simply come back to this page, hit RESTORE, and you’ll have access to the same template again.
If you make changes to your template, just return to this page and save it again. It’s that simple.
But how can I edit the template if it is stored in the database, not in the template directory? I do not understand :(.
Plugin Author
Allen
(@amweiss98)
you edit it in the wordpress plugin admin section, like shown here
http://screencast.com/t/qKvE2dNSoh
… you edit it in the wordpress plugin admin section …
No, I do not edited anything.
1. I just gave the template a new name and saved it for further editing. I suppose that this is not a correct way? What file I must edit?
2. Changes made by me are saved in the database? Not created a new file?
Plugin Author
Allen
(@amweiss98)
this is a movie of how to save, restore, then edit the template.
http://screencast.com/t/ifknKE1NV4
Thank you, Allen!
Strange things happening with your plugin :). To appearing the new template in the templates list, after pressing the Save This Template button I have to hit once again the Restore button, or you omited this little step in your description :).
Now it is OK. Thanks again!