Unyson icon indicating copy to clipboard operation
Unyson copied to clipboard

Auto-install (demo data) and ThemeForest, please help

Open dk-wordpress opened this issue 11 years ago • 75 comments

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

dk-wordpress avatar Oct 15 '15 07:10 dk-wordpress

Which Unyson version do you have?

ghost avatar Oct 15 '15 07:10 ghost

Thank you for a fast reply. Unyson 2.4.9 is installed, fresh as always

dk-wordpress avatar Oct 15 '15 07:10 dk-wordpress

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.

dylan-ngo11 avatar Oct 15 '15 07:10 dylan-ngo11

thank you, @duongancol, it is really simple, but, maybe in the future, is it possible to make some compatibility with ThemeCheck plugin?

dk-wordpress avatar Oct 15 '15 07:10 dk-wordpress

yes, if database.txt is zipped but for me it's unneccessary because the reviewer doesn't check demo đata.

dylan-ngo11 avatar Oct 15 '15 07:10 dylan-ngo11

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 :)

dk-wordpress avatar Oct 15 '15 07:10 dk-wordpress

no, it's database.txt not database.sql, please check again to make sure the problem from Backup extension

dylan-ngo11 avatar Oct 15 '15 08:10 dylan-ngo11

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

dk-wordpress avatar Oct 15 '15 08:10 dk-wordpress

.sql file

We don't have .sql we have .txt. Maybe you have a very old version of the Backup extension?

ghost avatar Oct 15 '15 08:10 ghost

Sorry, about .sql in docs. I will fix that right away.

ghost avatar Oct 15 '15 08:10 ghost

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!

dk-wordpress avatar Oct 15 '15 08:10 dk-wordpress

Just use Unyson, that is the best help you can give.

ghost avatar Oct 15 '15 08:10 ghost

and fon't forget to share it ;)

dylan-ngo11 avatar Oct 15 '15 08:10 dylan-ngo11

thank you again, i will promote it in all possible ways!

dk-wordpress avatar Oct 15 '15 08:10 dk-wordpress

@WPJobs so , did they accept it? when is the launch. dont let us wait here :)

danyj avatar Oct 15 '15 20:10 danyj

@danyj, Thank you for your interest, but reviewer invented new things that i should fix, so my theme still in review process :)

dk-wordpress avatar Oct 15 '15 20:10 dk-wordpress

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 avatar Oct 15 '15 20:10 danyj

@danyj, oh... latest requirements are:

  1. theme should generate 100% valid HTML, by the way, Unyson Forms extension generates an empty "action" form attribute, and this is an error

  2. use esc_html__, esc_html_e, and wp_kses, e.g.:

  3. 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/

dk-wordpress avatar Oct 15 '15 20:10 dk-wordpress

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 avatar Oct 15 '15 21:10 danyj

@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 );

dk-wordpress avatar Oct 15 '15 21:10 dk-wordpress