Title: thezman's Replies | WordPress.org

---

# thezman

  [  ](https://wordpress.org/support/users/thezman/)

 *   [Profile](https://wordpress.org/support/users/thezman/)
 *   [Topics Started](https://wordpress.org/support/users/thezman/topics/)
 *   [Replies Created](https://wordpress.org/support/users/thezman/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/thezman/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/thezman/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/thezman/engagements/)
 *   [Favorites](https://wordpress.org/support/users/thezman/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/users/thezman/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/thezman/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[FileBird - WordPress Media Library Folders & File Manager] Great idea – horrified by virtual folders](https://wordpress.org/support/topic/great-idea-horrified-by-virtual-folders/)
 *  Thread Starter [thezman](https://wordpress.org/support/users/thezman/)
 * (@thezman)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/great-idea-horrified-by-virtual-folders/#post-15707539)
 * It does not help, but thank you for your reply.
 * **Please consider my comment a feature request.**
    Here is a suggestion: make
   it very clear to users that only virtual folders are created.
 * You can sell this idea as being “light weight” – I can see the benefit of having
   _only virtual_ folders makes things easier for you as a plugin developer.
 * However, I also feel it necessary to point out how badly my client was ‘mislead’
   into thinking they had real folder structures on the server. This was tragic,
   because the plugin sure “looked like it works”.
 * To be fair to you – yes, I was able to find information about this online, however,
   I had to dig/research to find that out and this “virtual folder” thing is so 
   very **important** that it ought to be in big red letters on every page of documentation.
 * I know what to do here
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[FileBird - WordPress Media Library Folders & File Manager] Using the API and functions to search by name and return array+nesting](https://wordpress.org/support/topic/using-the-api-and-functions-to-search-by-name-and-return-arraynesting/)
 *  Thread Starter [thezman](https://wordpress.org/support/users/thezman/)
 * (@thezman)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/using-the-api-and-functions-to-search-by-name-and-return-arraynesting/#post-15707532)
 * I see.
    Thank you for the reply. I know what to do here. Please consider this
   a feature request. Its a feature I would have been willing to pay for. *cheers
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[FileBird - WordPress Media Library Folders & File Manager] Is this plugin compatible with cloud storage?](https://wordpress.org/support/topic/is-this-plugin-compatible-with-cloud-storage/)
 *  [thezman](https://wordpress.org/support/users/thezman/)
 * (@thezman)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/is-this-plugin-compatible-with-cloud-storage/#post-15694128)
 * We are dealing with a similar problem.
    250,000 user/membership upload (X4 for
   sizes) = 1,000,000 “unorganized” files All of which need to be offloaded to Cloud
   storage
 * I found that THIS plugin claims it works with filebird
    [https://wordpress.org/plugins/infinite-uploads/](https://wordpress.org/plugins/infinite-uploads/)
 * Here is what we are dealing with:
    [https://wordpress.org/support/topic/great-idea-horrified-by-virtual-folders/](https://wordpress.org/support/topic/great-idea-horrified-by-virtual-folders/)
 * In short… this is not a good plugin for a “membership” type site
    I am working
   with a client that has a mature community and it only “looks like” their files
   are organized, nothing is organized.
 * This plugin would be AWESOME for a small basic wordpress site
    I do not think
   the author ever intended this system to be used with a WPMU or a Membership type
   install. (mediaPress plugin may be a better choice for that)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] Errors after update – welcome-panel.php on line 9](https://wordpress.org/support/topic/errors-after-update-welcome-panel-php-on-line-9/)
 *  Thread Starter [thezman](https://wordpress.org/support/users/thezman/)
 * (@thezman)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/errors-after-update-welcome-panel-php-on-line-9/#post-14976556)
 * “public function print() { ”
 * Line #9 of contact-form-7/admin/includes/welcome-panel.php
 * does NOT error out on PHP 7.4
    -  This reply was modified 4 years, 8 months ago by [thezman](https://wordpress.org/support/users/thezman/).
    -  This reply was modified 4 years, 8 months ago by [thezman](https://wordpress.org/support/users/thezman/).
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [“TEMPLATEPATH” depreciated but still included in multiple core WordPress Files?](https://wordpress.org/support/topic/templatepath-depreciated-but-still-included-in-multiple-core-wordpress-files/)
 *  [thezman](https://wordpress.org/support/users/thezman/)
 * (@thezman)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/templatepath-depreciated-but-still-included-in-multiple-core-wordpress-files/#post-11208449)
 * I too am annoyed by this as it fills up the error log but I am equally annoyed
   by the PHP 7.2 rules…
 * The solution to the problem might be considered as follows:
    [https://stackoverflow.com/questions/48236765/undefined-constant-error-in-php-7-2](https://stackoverflow.com/questions/48236765/undefined-constant-error-in-php-7-2)
 * The constants TEMPLATEPATH and STYLESHEETPATH in /wp-includes/theme.php on line
   136 seem to not be declared at this time? very odd…
 * **This deserves a closer examination by WordPress Dev Team.**
 * Consider the following errors:
 *     ```
        function is_child_theme() {
              return ( TEMPLATEPATH !== STYLESHEETPATH );
       } 
       ```
   
 * _PHP Warning: Use of undefined constant TEMPLATEPATH – assumed ‘TEMPLATEPATH’(
   this will throw an Error in a future version of PHP) in /wp-includes/theme.php
   on line 136_
 * **This also causes an error**
 *     ```
        function is_child_theme() {
       	$STYLESHEETPATH = constant("TEMPLATEPATH"); 
               $TEMPLATEPATH = constant("STYLESHEETPATH");
       	return ( $TEMPLATEPATH !== $STYLESHEETPATH );
       } 
       ```
   
 * _ PHP Warning: constant(): Couldn’t find constant TEMPLATEPATH in /wp-includes/
   theme.php on line 136_
 * Very strange… only solution at this time is to disable logging and wait for a
   patch.
 *   Forum: [Reviews](https://wordpress.org/support/forum/reviews/)
    In reply to:
   [[Gutenberg] This will work as well as “car kits” from the 1970’s](https://wordpress.org/support/topic/this-will-work-as-well-as-car-kits-from-the-1970s/)
 *  Thread Starter [thezman](https://wordpress.org/support/users/thezman/)
 * (@thezman)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/this-will-work-as-well-as-car-kits-from-the-1970s/#post-9749101)
 * Tammie
    thank you for your response. As a developer I understand the “ambiguity”
   of comments like mine, I am working on a screencast to replicate the issue and
   will post it within a few days (when time permits).
 * I will illustrate the following:
    Main issue at hand, specific Bigger objective
   picture for users/developers Subjective concerns about SEO, Schema and validation
 *   Forum: [Reviews](https://wordpress.org/support/forum/reviews/)
    In reply to:
   [[Gutenberg] Wrong direction?](https://wordpress.org/support/topic/wrong-direction/)
 *  [thezman](https://wordpress.org/support/users/thezman/)
 * (@thezman)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/wrong-direction/#post-9735458)
 * I agree with Robert this is the wrong direction.
 * I believe that what I saw in **Shortcake is the direction Gutenberg should be
   heading** ([https://wordpress.org/plugins/shortcode-ui/](https://wordpress.org/plugins/shortcode-ui/)).
   Main reason being that Developers can then retain control over the output from
   shortcode and users get their “friendly UX”
 * As it now stands users already place insane things into the WP editor, I develop
   full time 24×7 on call and I’ve managed sites that needed hundreds of REGEX expressions
   to remove general user insanity from the post editor (things like adding http://
   to URL’s that were missing, catching IMG tags and making them into popups, removing
   broken/old embeds or shortcode from deleted plugins, all kinds of nonsense people
   dumped into their posts/pages over the years in an effort to avoid hiring a developer)
 * Things like the custom fields option, (ACF, Redux, ect…) make short work of the‘
   user insanity in the editor field’ problem. Ive started building SCHEMA.org tags
   into my theme base and they need very strict controls to validate properly… it’s
   clear to me that distancing developers from any WordPress field input is a step
   in the wrong direction.
 * Shortcode works because developers can control the output, I think Shortcake 
   is the answer to Gutenberg… as long as there is little to NO html in any of the
   fields that general users put into WordPress then I believe we are heading the
   right direction and would stand by it.
 * To take a non-trival example: a good portion of my WordPress work is now based
   on removing VisualBuilder type plugin’s from people’s themes so they can validate
   properly, actually work, become more compliant and (in regard to responsive design)
   resemble some semblance of web-standards.
 * If Gutenberg places any HTML into the post editor I am against it. I am against
   any plugin that does that, all code should be IN code, not in the DB.
    -  This reply was modified 8 years, 7 months ago by [thezman](https://wordpress.org/support/users/thezman/).
    -  This reply was modified 8 years, 7 months ago by [thezman](https://wordpress.org/support/users/thezman/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PHP Compatibility Checker] GREAT IDEA- but needs to be REWRITTEN (or Removed)](https://wordpress.org/support/topic/great-idea-but-needs-to-be-rewritten-or-removed/)
 *  Thread Starter [thezman](https://wordpress.org/support/users/thezman/)
 * (@thezman)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/great-idea-but-needs-to-be-rewritten-or-removed/#post-9506321)
 * Are you testing it directly on WPengine as a “normal user” would?
    Are you using
   it on the STAGE site version of WPengine?
 * Unfortunately I have no way to confirm “why” the plugin fails, I can tell you
   that when I open the support chat window with WPengine they do not know either,
   they just say “it’s your theme”. (which does not seem a legit answer since this
   plugin says it does not run/execute theme files)
 * However, they CAN use SSH to monitor the output and then they paste the results
   in the chat window… since SSH is jailed on all WPengine accounts and the error
   log is “customized” so am I from debugging the issue effectively
 * This leads me to suspect that some kind of output buffering conflict is the issue…
   at any rate, maybe a simple solution is to add a button that says “raw output”
   and then just link to whatever the tech support folks are sending me?
 * If you like, please feel free to contact me and we can take a look at the sites
   this was an issue with. Let me know the best way to accomplish this, for example,
   maybe a live screen session or chat window would work?
 * Thank you for looking into this.
    -  This reply was modified 8 years, 9 months ago by [thezman](https://wordpress.org/support/users/thezman/).
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Need GLOBAL var to detect "If Appearance Customize Screen" is ON](https://wordpress.org/support/topic/need-global-var-to-detect-if-appearance-customize-screen-is-on/)
 *  Thread Starter [thezman](https://wordpress.org/support/users/thezman/)
 * (@thezman)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/need-global-var-to-detect-if-appearance-customize-screen-is-on/#post-6796251)
 * after about a day of hacking here is the path I took:
    1. I created a global var for the postID called psudo_postid
    2. created a function to detect if “is_customiser”
    3. I added a drop menu into the theme options panel that lets the admin choose 
       any page/post/custom post_type and “simulate” it
    4. I added that same drop menu into the actual WordPress Customize panel under “
       Appearance=>Customize”
    5. mod all theme files to work outside the loop
 * All page-name.php and single-name.php now contain this checker
 *     ```
       global $psudo_postid;
       if(!isset($psudo_postid)) {$postid = get_the_ID();} else{$postid = $psudo_postid;}
       ```
   
 * created a switch in index.php and page-homepage.php that works like so:
 *     ```
       global $psudo_postid;
       	$psudo_postid = $theme_opt['page_to_sim'];
   
       	if(!$psudo_postid) {
       		include THEME_DIR.'/parts/_homepage.php';
       	} else {
       		// simulate another page
       		$sim_what = get_post_type( $psudo_postid );
       		$page_template = get_page_template_slug( $psudo_postid );
   
       		switch ($sim_what) {
       			case 'custom_post_type_one':
       			case 'custom_post_type_two':
       			case 'custom_post_type_three':
       				include THEME_DIR.'/single-'.$sim_what.'.php';
       			break;
   
       			case 'page':
       				$page_template = get_page_template_slug( $psudo_postid );
       				if(!$page_template) { // then its a default
       					include THEME_DIR.'/page.php';
       				} else{
       					include THEME_DIR.'/'.$page_template;	}
       			break;
   
       			case 'post':
       				include THEME_DIR.'/single.php';
       			break;
   
       		}
       	}
       ```
   
 * Added this to functions.php
 *     ```
       function is_customizer_preview(){
       	global $is_customizer;
           $is_customizer = true;
       }
       add_action( 'customize_preview_init', 'is_customizer_preview' );
       ```
   
 * As a result, the WordPress ‘Appearance Customize Screen’ reloads when the admin
   changes the “page_to_sim”.
    since everything is routed through index.php or page-
   homepage.php the WordPress Customize Screen reloads and shows that page
 * End Result: WordPress Customize Screen now allows Admins to change settings and
   see them (color, font sizes, and anything else) on the sub pages, custom post
   types, archives, and the like.
 * Unorthodox, yet effective.
 * > I thought I would note here a **failed attempt** which involved trying to add
   > all custom post types into the pre_get_posts drop menu that an admin would 
   > use to set the homepage under “Settings->Reading->Front page displays:”.
 * The idea is sound and works… however, it forces the admin to annoyingly “change
   back” the ‘Front page displays’ option to what it should be after testing. The
   way above allows a “sim” for the admin to preview ANY page without being forced
   to change their homepage just to preview an option on a subpage.
 *     ```
       function add_custom_post_dropdown( $pages ){
           $args = array( 'post_type' => 'custom_post_type_one');
           $items = get_posts($args);
           $pages = array_merge($pages, $items);
   
           $args = array( 'post_type' => 'custom_post_type_two');
           $items = get_posts($args);
           $pages = array_merge($pages, $items);
   
           $args = array( 'post_type' => 'custom_post_type_three');
           $items = get_posts($args);
           $pages = array_merge($pages, $items);
   
           return $pages;
       }
       add_filter( 'get_pages', 'add_custom_post_dropdown' );
   
       function enable_custom_post_home( $query ){
           if('' == $query->query_vars['post_type'] && 0 != $query->query_vars['page_id'])
               $query->query_vars['post_type'] = array( 'page', 'custom_post_type_one', 'custom_post_type_two', 'custom_post_type_three' );
       }
       add_action( 'pre_get_posts', 'enable_custom_post_home' );
       ```
   
 * I hope this post helps someone on their search:
 * Keywords I searched in google looking for a solution:
    WordPress Appearance Customize
   theme subpages WordPress admin Customize subpages preview WordPress Customize
   screen only allows homepage WordPress Customize theme preview not working for
   sub pages WordPress admin Customize screen custom post_type WordPress admin Customize
   screen custom taxonomy WordPress Appearance=>Customize not showing sub pages 
   WordPress Appearance=>Customize does not preview secondary clicks WordPress Appearance
   =>Customize does not preview tertiary clicks
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Complete disable of Page/Post content area](https://wordpress.org/support/topic/complete-disable-of-pagepost-content-area/)
 *  Thread Starter [thezman](https://wordpress.org/support/users/thezman/)
 * (@thezman)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/complete-disable-of-pagepost-content-area/#post-5260727)
 * yea. thanks for that.
    clogging my email. was that really necessary?
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Complete disable of Page/Post content area](https://wordpress.org/support/topic/complete-disable-of-pagepost-content-area/)
 *  Thread Starter [thezman](https://wordpress.org/support/users/thezman/)
 * (@thezman)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/complete-disable-of-pagepost-content-area/#post-5260684)
 * This is resolved, Christian1012 provided the correct answer.
    Thank you for your
   assistance.
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Complete disable of Page/Post content area](https://wordpress.org/support/topic/complete-disable-of-pagepost-content-area/)
 *  Thread Starter [thezman](https://wordpress.org/support/users/thezman/)
 * (@thezman)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/complete-disable-of-pagepost-content-area/#post-5260565)
 * I tried the following with no luck in functions.php running wordpress 4.0
    the
   good news is that “remove_post_type_support” does work, so thank you for that!
   would be nice to get this working… seems like a nice chunk of code, so thank 
   you for that as well.
 *     ```
       // Remove editor support for my-taxonomy
       if ( is_admin() && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) ) {
         add_action( 'add_meta_boxes', function(){
           global $post; // Should be available at this hook.
           $terms = wp_get_post_terms( $post->ID, 'post' );
       //////// no luck on posts
           if( ! empty( $terms ) && ! is_wp_error( $terms ) ) {
             remove_post_type_support( get_post_type(), 'editor' );
           }
         });
       } // endif(is_admin)
   
       // Remove editor support for my-taxonomy
       if ( is_admin() && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) ) {
         add_action( 'add_meta_boxes', function(){
           global $post; // Should be available at this hook.
           $terms = wp_get_post_terms( $post->ID, 'page' );
       //////// no luck on page
           if( ! empty( $terms ) && ! is_wp_error( $terms ) ) {
             remove_post_type_support( get_post_type(), 'editor' );
           }
         });
       } // endif(is_admin)
       ```
   
 * PS: this could be a theme issue, so far the theme is sane, but there is some 
   funky stuff in it. technically I should try this on a blank theme or ground up
   install, so don’t waste too much time on this, knowing about remove_post_type_support
   is helpful to me.
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Complete disable of Page/Post content area](https://wordpress.org/support/topic/complete-disable-of-pagepost-content-area/)
 *  Thread Starter [thezman](https://wordpress.org/support/users/thezman/)
 * (@thezman)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/complete-disable-of-pagepost-content-area/#post-5260514)
 * had some luck with this but can not seem to direct it at only a specific taxonomy.
   Only seems to work on posts.
 *     ```
       add_action( 'init', 'my_custom_init' );
       function my_custom_init() {
       	remove_post_type_support( 'post', 'excerpt' );
       }
   
       add_action( 'init', 'my_custom_init2' );
       function my_custom_init2() {
       	remove_post_type_support( 'post', 'editor' );
       }
       ```
   
 *   Forum: [Installing WordPress](https://wordpress.org/support/forum/installation/)
   
   In reply to: [[wpSermons] Can’t upload sermons](https://wordpress.org/support/topic/wpsermons-cant-upload-sermons/)
 *  [thezman](https://wordpress.org/support/users/thezman/)
 * (@thezman)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/wpsermons-cant-upload-sermons/#post-581419)
 * make a file called ” .htaccess “
    no extention, just ” .htaccess “ upload it 
   to any directory, useing FTP where you need big files…
 * insert these values useing, say, text edit…
 * php_value post_max_size 110M
    php_value upload_max_filesize 100M php_value memory_limit
   32M
 * php.ini does not work like you would think…i have had better luck with the .htaccess
   method.
 * i think the php.ini file only works that way when its in the cgi bin, at least
   thats what i have been told. try the .htaccess way for a quick fix. worked great
   for me…
 * ps- can i check out your sermons?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Increase Max Upload size with WP 2.1?](https://wordpress.org/support/topic/increase-max-upload-size-with-wp-21/)
 *  [thezman](https://wordpress.org/support/users/thezman/)
 * (@thezman)
 * [18 years, 7 months ago](https://wordpress.org/support/topic/increase-max-upload-size-with-wp-21/#post-524303)
 * make a file called ” .htaccess “
 * insert these values useing, say, text edit…
 * php_value post_max_size 110M
    php_value upload_max_filesize 100M php_value memory_limit
   32M
 * php.ini does not work like you would think…i have had better luck with the .htaccess
   method.
 * i think the php.ini file only works that way when its in the cgi bin, at least
   thats what i have been told. try the .htaccess way for a quick fix. worked great
   for me…

Viewing 15 replies - 1 through 15 (of 17 total)

1 [2](https://wordpress.org/support/users/thezman/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/thezman/replies/page/2/?output_format=md)