Posts by egobuilders

123 posts
  • Bought between 50 and 99 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • Sold between 10 000 and 50 000 dollars
  • United States
egobuilders says

Can someone please elaborate on WP validation, sanitizing, filtering, and escaping? Which files do they need to go in, obviously functions.php will get some code, but what about output? Which pages and in what way does output need to be filtered? What is acceptable and what is not acceptable?

Should I just keep guessing and keep resubmitting and keep getting rejected until I guess what the reviewer is looking for?

For starters, some of the files I’m using are… functions.php index.php page.php (and templates) single.php archive.php category.php ......and everything is working great.

Here are some various, random output examples I’m using… (What needs to be filtered and in what way? What doesn’t need to be filtered? I can find no explanation for this)...

wp_title(); the_post_thumbnail(); the_excerpt(); the_content(); comments_template(); comment_form(); wp_link_pages(); the_tags();

I have Googled this dozens and dozens of times, and scanned YouTube for answers many times, for weeks and weeks. The only answers I find are very vague and incomplete. It can’t be that hard.

Here’s the message I get from the reviewer…

“The WordPress theme should make use of the following inbuilt functions to validate or santize content on input or escape any questionable content for put.” ...(Seriously, it says “put”) http://codex.wordpress.org/Data_Validation  

 

This code below is currently in my functions.php file (has not been submitted yet)... I like what it does, but I don’t even know if this is acceptable on ThemeForest…

add_filter('comment_text', 'wp_filter_nohtml_kses'); add_filter('comment_text_rss', 'wp_filter_nohtml_kses'); add_filter('comment_excerpt', 'wp_filter_nohtml_kses');  

This code below doesn’t tell me anything (although I greatly appreciate the suggestion)...

$postmeta = sanitize_text_field( $_POST['fieldname'] ); // comments field input??? update_post_meta( $post->ID, 'fieldkey', 'fieldname' );  

...Am I supposed to put that in the functions.php file for the default input fields for comments? When is it used?

I’m sure it’s VERY simple to do. I’m just tired of getting rejected repeatedly for the same thing.

What I need to know is what ThemeForest accepts, and what they don’t accept, in regard to validation, sanitizing, filtering, and escaping. Which input fields need to be filtered? How? Which output needs to be filtered, and which output does not need to be filtered? How? Please!

Thanks in advance!!! : )

123 posts
  • Bought between 50 and 99 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • Sold between 10 000 and 50 000 dollars
  • United States
egobuilders says

I just answered my own question. Custom template pages are the way to go. Thank you, me!

123 posts
  • Bought between 50 and 99 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • Sold between 10 000 and 50 000 dollars
  • United States
egobuilders says

I’m trying to finish creating my first WordPress Template for ThemeForest, and I need clarification on formatting page.php for plain text, since all of the content is generated with shortcodes.

In other words, to create content on a new page, one would utilize a shortcode called [section] which spans 100% left to right, and adds the necessary columns and spacing on the left and right, etc. Multiple [section] shortcodes are utilized to add content, thereby making the page taller…

But when someone adds a page with plain text and no shortcodes are used, the text just fills the entire width of the published page (far left to far right), since there is not a shortcode in place to “pad” it and format it.

Should I create a separate page template specifically for using shortcodes and then just format page.php to show the plain text all nice and orderly (with optional sidebar?)

Thanks!

123 posts
  • Bought between 50 and 99 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • Sold between 10 000 and 50 000 dollars
  • United States
egobuilders says

I’m trying to finish up my first WordPress Theme on ThemeForest, and I need clarification on formatting page.php for plain text, since all of the content is generated with shortcodes.

In other words, to create content on a new page, one would utilize a shortcode called [section] which spans 100% left to right, and adds the necessary columns and spacing on the left and right, etc. Multiple [section] shortcodes are utilized to add content, thereby making the page taller…

But when someone adds a page with plain text and no shortcodes are used, the text just fills the entire width of the published page (far left to far right), since there is not a shortcode in place to “pad” it and format it.

Should I created a separate page template specifically for using shortcodes and then just format page.php to show the plain text all nice and orderly (with optional sidebar?)

Thanks!

123 posts
  • Bought between 50 and 99 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • Sold between 10 000 and 50 000 dollars
  • United States
egobuilders says

Thanks, but I know how to build it… I just need a plugin quickly : )

123 posts
  • Bought between 50 and 99 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • Sold between 10 000 and 50 000 dollars
  • United States
egobuilders says

Does anyone know where I can find a single WP plugin that allows multiple member registrations, like a form for Teachers to register and a separate form for students to register? Some plugins only allow one form, but I need two separate forms. Also, a student needs to be able to upload an image to the WP DATABASE, but NOT the Media Section. And registration confirmation with secure password generation would be nice. And that’s about all it needs to do : )

Thanks!

123 posts
  • Bought between 50 and 99 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • Sold between 10 000 and 50 000 dollars
  • United States
egobuilders says

Great! I will start there… looks like that’s exactly what I’ve been trying to find. Thank you!

123 posts
  • Bought between 50 and 99 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • Sold between 10 000 and 50 000 dollars
  • United States
egobuilders says

I have created custom admin settings for a WordPress theme I am trying to get approved and would now like to implement the value(s) into the WP theme via jQuery. I Googled it for several days without finding a solution.

I am not permitted to put this in footer.php… <?php echo '<script type="text/javascript"> $("#thing").css({"background-color":"' . get_option('blah_bgcolor') . '"}); </script>'; ?>

I am instructed by a reviewer to put this (and 50 other jQuery styles using get_option) into a function in functions.php but I need a little more help on how to do this since I can’t just create a function that “echos” out the jQuery, and I can only load external JS files wherein I cannot use get_option.

So, how can I use jQuery like this… (or standard CSS would suffice also) $("#menu").css({"background-color":"' . get_option('awp_header_bgcolor') . '"}); ...in functions.php in WordPress?
123 posts
  • Bought between 50 and 99 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • Sold between 10 000 and 50 000 dollars
  • United States
egobuilders says

Seriously? No response? Anyone?

123 posts
  • Bought between 50 and 99 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • Sold between 10 000 and 50 000 dollars
  • United States
egobuilders says

Brilliant Australia! Thanks! Everything I needed, and then some : )

by
by
by
by
by
by