Auto-install (demo data) and ThemeForest, please help
Hello, guys!
I've just finished my first project based on your incredible framework, thank you so much for your work, you're really the best and Unyson is a really the best tool for creating themes!
Unfortunatelly i faced a big problem. My theme can not be approved on ThemeForest, because i'm using Auto-install (backup extension). They require me to remove database.sql file from auto-install directory (i believe this is because ThemeCheck plugin generates a warning about that), but if i'll do that, my theme will be without demo data, and this is too bad.
I know this is so stupid, and theme forest review team are bunch of idiots who create problems for no reason, but it is impossible to convince them.
Could you help me please, it there a way to rename an extension of this .sql file or maybe to compress it in archive? It seems all my time which i spent to develop a theme fly to nowhere
Thank you for reading, i hope you will help me, guys
Which Unyson version do you have?
Thank you for a fast reply. Unyson 2.4.9 is installed, fresh as always
simple solution, just upload theme without auto-install folder and add it again after your theme is approved. And Reviewer won't check your demo data. So just remove it and add later.
thank you, @duongancol, it is really simple, but, maybe in the future, is it possible to make some compatibility with ThemeCheck plugin?
yes, if database.txt is zipped but for me it's unneccessary because the reviewer doesn't check demo đata.
Reviewer doesn't check demo data, that's true, but he checks a whole theme using ThemeCheck plugin, and this plugin generates a warning if .sql file exists in a theme, and this warning generates a problem :)
no, it's database.txt not database.sql, please check again to make sure the problem from Backup extension
Sorry, not quite understand, can i just rename database.sql into database.txt in /auto-install/ directory? Or should i zip database.sql and then rename it into database.txt?
I generated auto install by using Backup extension, and then i followed these instructions http://unyson-framework.readthedocs.org/en/latest/extension/contentdemoinstall/#auto-install, i placed uploads folder and database.sql file into /auto-install/ directory in the root dir of my theme
.sql file
We don't have .sql we have .txt. Maybe you have a very old version of the Backup extension?
Sorry, about .sql in docs. I will fix that right away.
that's true, i generated auto-install with previous version of Unyson, i didn't know that this problem was already fixed in the 2.4.9, thank you, @moldcraft and @duongancol for your fast help!
I do not know how to thank you for your invaluable help!
Just use Unyson, that is the best help you can give.
and fon't forget to share it ;)
thank you again, i will promote it in all possible ways!
@WPJobs so , did they accept it? when is the launch. dont let us wait here :)
@danyj, Thank you for your interest, but reviewer invented new things that i should fix, so my theme still in review process :)
ok , show us the theme than we might catch other things you might need. is already in the process ques so you should not be worried. I would like to know what they actually say and what they are picking about.
@danyj, oh... latest requirements are:
-
theme should generate 100% valid HTML, by the way, Unyson Forms extension generates an empty "action" form attribute, and this is an error
-
use esc_html__, esc_html_e, and wp_kses, e.g.:
-
do not use fopen / fwrite etc, use WP_Filesystem instead
more requirements can be found here https://help.market.envato.com/hc/en-us/articles/202822450-WordPress-Theme-Submission-Requirements
p.s. my theme URL is http://unicum.wplab.pro/
no way , they ask for titles in configs to be escaped ?
I used this
__( 'Notification', 'fw' ),
for example , did you miss those or they specifically asking for esc_html__
and so far I know html is escaped from titles , @moldcraft are they ?
@danyj yes, they asked this, here is a cite:
It's possible for translators to sneak HTML and JS into translation files or even just inadvertently mess something up. So, it's good practice to simply escape them. No HTML: esc_html__( 'String', ‘unicum’ ); esc_html_e( 'String', ‘unicum’ ); Some HTML: wp_kses( __( 'String something', ‘unicum’ ), $allowed_html_array );