Unyson icon indicating copy to clipboard operation
Unyson copied to clipboard

How to get Unyson based themes approved by Theme Forest reviewers?

Open danyj opened this issue 11 years ago • 67 comments

This post is made in light of latest issues we ( anyone using Unyson ) have approving our themes on TF. Some of our fellow coders made it on TF and had no issues or we dont know about them, where others have serious problems and cant get their themes approved.

@WPJobs https://github.com/ThemeFuse/Unyson/issues/937#issuecomment-148519676

@pe6o https://github.com/ThemeFuse/Unyson/issues/937#issuecomment-148964653

Here are the lucky ones, http://themeforest.net/attributes/framework/unyson ( don't forget to add encouraging comment for a fellow coder )

Can the "lucky ones" please help us here and advise what should and should not be done. This is a great issue that concerns us all so we should all stick together if we want to see Unyson thrive.

We all know that coding and design plays major role in approval process, but in this case we are talking strictly about the Unyson framework issues.

Please pitch in so that others dont make same mistakes.

danyj avatar Oct 18 '15 10:10 danyj

Hi there,

Well, I'm one of the guy behind Woffice : themeforest.net/item/woffice-intranetextranet-wordpress-theme/11671924 and all the theme is based on Unyson,* all of the features are built with extensions*.

We plan to share all our extensions for free in the next weeks but I need to setup a blog first. But it's coming!

I didn't get any issue to have the theme approved regarding Unyson features. The only stupid thing is that you can't register post types directly from Unyson extensions on the first upload as it's not allowed by Themeforest. You need to have your theme approved a first time, then you can move them from your custom plugin to an extension which is way easier for everyone ! ;)

In that project, as you can see in the extensions list : alka-web.com/woffice-theme/ we've developed many extensions and most of them can be moved to any other Unyson theme, that's why I'll share them soon !

2Fwebd avatar Oct 18 '15 11:10 2Fwebd

@2Fwebd Thank you bud, can you advise if you have used all Unyson features like demo installs , auto installs and if you had issues escaping title,description,desc,help values

danyj avatar Oct 18 '15 11:10 danyj

Thanks for creating this topic!

I can advice 4 things:

  1. Follow these requirements https://help.market.envato.com/hc/en-us/articles/202822450-WordPress-Theme-Submission-Requirements

  2. Check yout theme with ThemeCheck plugin, it is mandatory! https://wordpress.org/plugins/theme-check/

  3. Check HTML code that theme outputs with https://validator.w3.org/

  4. Check your theme with Theme Unit Test https://codex.wordpress.org/Theme_Unit_Test, and if your theme supports WooCommerce https://docs.woothemes.com/document/importing-woocommerce-dummy-data/

dk-wordpress avatar Oct 18 '15 11:10 dk-wordpress

I agree with @WPJobs , but in step 2, you should also install Themeforest check plugin. It will ignore some requirements that 're only need in wordpress.org. I also don't have much issues between reviewer and Unyson core. For escaping issue, just escape all string and output: https://developer.wordpress.org/themes/functionality/internationalization/#escaping-strings

dylan-ngo11 avatar Oct 19 '15 04:10 dylan-ngo11

so, do we escape everything or still waiting for answer ?:P

Also, I would like to ask a question regarding the Themecheck / TF plugin. I use a LESS compiler library to generate new CSS files which generates 4 warnings (because it uses @ini_set and apparently, it's not supported :) )

Another question would be about the register_post_type which raises another error, any thoughts?

At the current moment I am still working at code quality, cleanups and documentation so it might take a while to submit it so if you have any suggestions please let me know. Also, if anyone is kind enough to take a quick look over it, I would appreciate it alot :)

cristeacosmin avatar Oct 20 '15 22:10 cristeacosmin

what compiler do you use to generate LESS file? For register_post_type, you should seperate it to a plugin.

dylan-ngo11 avatar Oct 21 '15 04:10 dylan-ngo11

I use this library : http://lessphp.gpeasy.com/

cristeacosmin avatar Oct 21 '15 06:10 cristeacosmin

@danyj @duongancol @WPJobs any thoughts on this? :)

PS: I don't want to bloat the theme with plugins and I prefer to do it myself.. at least if I screw up, It's my fault :P

cristeacosmin avatar Oct 22 '15 17:10 cristeacosmin

@c0sm1n87 in my themes i compile LESS files using WinLESS on a client side (directly in a browser), and then save compiled styles into file, this gives a much more opportunities than PHPLess, this library has a very stripped-down functionality

dk-wordpress avatar Oct 22 '15 18:10 dk-wordpress

@c0sm1n87 I have been using that lib for a long time now https://github.com/YJSGframework/yjsg/tree/master/includes/yjsgcore/classes/less.php and worked wonder on Joomla but I did not get to the incorporation in WP and I think we will have big issues , not because of TF but because of

define('FS_METHOD', 'ftpext');

as for TF check not passing , il take a closer look and reply in few days

danyj avatar Oct 22 '15 18:10 danyj

@danyj In Joomla! i use the library I mentioned, however the Joomla! themes i work on don't have to pass TF checks and I had absolutely no problem with the library (to the extent that I'm using).

@WPJobs for what I need it to do does handle pretty well. also, this plugin was built on this library:

https://wordpress.org/plugins/lessphp/

however, I would prefer not to use a plugin for this :)

cristeacosmin avatar Oct 22 '15 18:10 cristeacosmin

I don't follow every post so I am a bit behind, did TF answer your question regarding the escaping of the translatable strings?

cristeacosmin avatar Oct 22 '15 18:10 cristeacosmin

no , they did not answer https://forums.envato.com/t/output-sanitizing-issue-we-need-theme-reviewers-input-please-advise/11854/2

danyj avatar Oct 22 '15 18:10 danyj

Always, always leave message to the reviewer that the auto-install directory is for the Unyson 1-Click Install and that the Demo Install is not mandatory for the users and despite it's name it's not auto installed when the theme is activated.

pnpetroff avatar Oct 23 '15 17:10 pnpetroff

@pe6o thank you for your feedback regarding this

dk-wordpress avatar Oct 23 '15 18:10 dk-wordpress

I don't understand why the posts from Themezly were flagged and now are hidden :)

cristeacosmin avatar Oct 27 '15 11:10 cristeacosmin

@c0sm1n87 because I added links to Unyson git

danyj avatar Oct 27 '15 11:10 danyj

I think that @moldcraft should handle that question https://forums.envato.com/t/output-sanitizing-issue-we-need-theme-reviewers-input-please-advise/11854/2 since it is Unyson related and we all need an answer. Best bet is to ask the reviewer that has approved Unyson ,

danyj avatar Oct 27 '15 11:10 danyj

at the current moment I am trying to find a way to insert the less compiler without themecheck raising errors so I can submit it for review. I don't know if I should start escaping the hell out of the __(..) or leave them as how they are now.

I guess I will submit it one of these days without escaping and I will keep you updated with the reviewer answer (if it's not hard reject :+1: )

cristeacosmin avatar Oct 27 '15 12:10 cristeacosmin

Useful info in ref to demo installs https://github.com/ThemeFuse/Unyson/issues/882#issuecomment-154907637

danyj avatar Nov 09 '15 15:11 danyj