Title: visualtricks's Replies | WordPress.org

---

# visualtricks

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

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

 Search replies:

## Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)

 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Problem with simplecdn.maxcdn.com](https://wordpress.org/support/topic/problem-with-simplecdnmaxcdncom/)
 *  [visualtricks](https://wordpress.org/support/users/visualtricks/)
 * (@visualtricks)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/problem-with-simplecdnmaxcdncom/page/2/#post-2595279)
 * seems cdn works again 🙂 I would take a backup copy of jqueryTools anyway…better
   safe than sorry 🙂
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Problem with simplecdn.maxcdn.com](https://wordpress.org/support/topic/problem-with-simplecdnmaxcdncom/)
 *  [visualtricks](https://wordpress.org/support/users/visualtricks/)
 * (@visualtricks)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/problem-with-simplecdnmaxcdncom/page/2/#post-2595278)
 * [@scott](https://wordpress.org/support/users/scott/): that only solves the loading“
   lock” for the site, but it doesn’t fix things in your site that are using jquerytools(
   as you are loading jquery, not jqueryTools). Would be nice to a have a copy of
   _full_ jquery.tools.min.js (1.2.5 or 1.2.6), I’m searching but found only older
   versions
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Problem with simplecdn.maxcdn.com](https://wordpress.org/support/topic/problem-with-simplecdnmaxcdncom/)
 *  [visualtricks](https://wordpress.org/support/users/visualtricks/)
 * (@visualtricks)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/problem-with-simplecdnmaxcdncom/#post-2595257)
 * The problem is that SimpleCDN is down and somewhere on your site, be it for a
   plug-in or a theme or the backend, there is a call to [http://cdn.jquerytools.org/1.2.5/full/jquery.tools.min.js](http://cdn.jquerytools.org/1.2.5/full/jquery.tools.min.js)
   
   which actually is preventing both jquerytools and your site to load properly.
   In my case this script-calling is in functions.php of the theme I’m using so 
   I have to manually remove or change that code (and find a copy of jquery.tools.
   min.js !)
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Problem with simplecdn.maxcdn.com](https://wordpress.org/support/topic/problem-with-simplecdnmaxcdncom/)
 *  [visualtricks](https://wordpress.org/support/users/visualtricks/)
 * (@visualtricks)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/problem-with-simplecdnmaxcdncom/#post-2595244)
 * Hi,
    I’ve the same problem, just noticed and came across this post searching 
   around. Seems indeed related to jqueryTools.js loading from cdn.jquerytools.org,
   which in my case is called in theme functions.php by wp_enqueue_script( ). I 
   think loading a local copy of querytools and removing that call, could fix the
   problem for the time being.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Ajax Contact Form] [Plugin: Ajax Contact Form] Wish to add content before Ajax Contact short code](https://wordpress.org/support/topic/plugin-ajax-contact-form-wish-to-add-content-before-ajax-contact-short-code/)
 *  [visualtricks](https://wordpress.org/support/users/visualtricks/)
 * (@visualtricks)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-ajax-contact-form-wish-to-add-content-before-ajax-contact-short-code/#post-2368969)
 * Hi, as forced_request says, you can open ajaxcf.php in any editor and change 
   the last function called ajax_contact_form() just replace from the comment to
   the end with this:
 *     ```
       // add contact form
       function ajax_contact_form(){
       	global $wpdb;
       	$table_name = $wpdb->prefix . "design_form";
       	$myrows = $wpdb->get_results("select * from $table_name order by torder ASC"); 
   
       $out = '<form id="ajaxForm">';
   
       foreach($myrows as $myrow) { if($myrow->tname=='input') {
        $out.= '<p>';
        $out.= '<label for="' . $myrow->tid .'">' . $myrow->value .':</label>';
        $out.= '<input id="'. $myrow->tid .'" name="' . $myrow->name . '" value="' .$myrow->value . '" type="text" />';
        $out.= '</p>';
       } else {
        $out.= '<p>';
        $out.= '<label for="'. $myrow->tid .'">'. $myrow->value .':</label>';
        $out.= '<textarea id="'. $myrow->tid .'" name="'. $myrow->name .'">'.$myrow->value.'</textarea>';
        $out.= '</p>';
         }
       }
        $out.= '<p>';
        $out.= '<label for="check">Want a copy of this mail to your address?:</label>';
        $out.= '<input id="check" name="check" type="checkbox" />';
        $out.= '</p>';
        $out.= '<p class="submit">';
        $out.= '<input name="action" type="hidden" value="ajaxcf" />';
        $out.= '<input id="submit_button" value="Send" type="button" onClick="submit_me();" />';
        $out.= '</p>';
        $out.= '</form>';
        return $out;
       }
       add_shortcode("ajaxcf", "ajax_contact_form");
   
       ?>
       ```
   
 * hope this helps.
    Cheers
 *   Forum: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
   
   In reply to: [Setting a variable in a loop not working as expected..](https://wordpress.org/support/topic/setting-a-variable-in-a-loop-not-working-as-expected/)
 *  Thread Starter [visualtricks](https://wordpress.org/support/users/visualtricks/)
 * (@visualtricks)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/setting-a-variable-in-a-loop-not-working-as-expected/#post-2267333)
 * wow. I feel so stupid. 🙂
 * Thanks, that was the problem..
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Prevent custom-taxonomy items from being listed in loop](https://wordpress.org/support/topic/prevent-custom-taxonomy-items-from-being-listed-in-loop/)
 *  Thread Starter [visualtricks](https://wordpress.org/support/users/visualtricks/)
 * (@visualtricks)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/prevent-custom-taxonomy-items-from-being-listed-in-loop/#post-2225683)
 * If you like you can see the page here: [http://www.parentesiquadraoutlet.eu/wordpress/?page_id=23](http://www.parentesiquadraoutlet.eu/wordpress/?page_id=23)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Prevent custom-taxonomy items from being listed in loop](https://wordpress.org/support/topic/prevent-custom-taxonomy-items-from-being-listed-in-loop/)
 *  Thread Starter [visualtricks](https://wordpress.org/support/users/visualtricks/)
 * (@visualtricks)
 * [14 years, 10 months ago](https://wordpress.org/support/topic/prevent-custom-taxonomy-items-from-being-listed-in-loop/#post-2225682)
 * Sorry to bump…i’m tryin to solve myself but I still could use some help.. 🙂
   
   Maybe i’m on the right direction though.. it turned out I’m not looking for a
   taxonomy term but for custom posts (belonging to custom taxonomy) that have a
   certain tag, so I think I should filter out these posts with query_posts() when
   user is not logged in. I got the tag ID by looking at the url in admin panel 
   when I Edit the reserved product category (wp-admin/edit-tags.php?action=edit&
   taxonomy=tcp_product_category&tag_ID=8&post_type=tcp_product) so i’m putting 
   this: `if ( !is_user_logged_in() ) { query_posts( ‘taxonomy=tcp_product_category&
   tag__not_in=8&post_type=tcp_product’ ); }` just before the loop starts but…reserved
   item still shows up.. I’ve also tryed this
 *     ```
       if ( !is_user_logged_in() ) {
   
       	$args = array(
       			'tax_query' => array (
       						   'taxonomy' => 'tcp_product_category',
       						   'field' => 'slug',
       						   'terms' => 'areariservata',
       						   'operator' => 'NOT IN'
       						   ),
   
       			'post_type' => 'tcp_product'
       			);
   
       	query_posts( $args );
       	}
       ```
   
 * but still no luck. Am I at least on the right way ? What am I doing wrong ?
 * as usual, thanks again for any help
    Massimiliano
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [List subpages with thumbnail from custom field](https://wordpress.org/support/topic/list-subpages-with-thumbnail-from-custom-field/)
 *  Thread Starter [visualtricks](https://wordpress.org/support/users/visualtricks/)
 * (@visualtricks)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/list-subpages-with-thumbnail-from-custom-field/#post-1957533)
 * Hey there, thanks for your reply! I will give it a shot 🙂

Viewing 9 replies - 1 through 9 (of 9 total)