visualtricks
Forum Replies Created
-
Forum: Hacks
In reply to: Problem with simplecdn.maxcdn.comseems cdn works again ?? I would take a backup copy of jqueryTools anyway…better safe than sorry ??
Forum: Hacks
In reply to: Problem with simplecdn.maxcdn.com@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
In reply to: Problem with simplecdn.maxcdn.comThe 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 https://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
In reply to: Problem with simplecdn.maxcdn.comHi,
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.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.
CheersForum: Everything else WordPress
In reply to: Setting a variable in a loop not working as expected..wow. I feel so stupid. ??
Thanks, that was the problem..
Forum: Fixing WordPress
In reply to: Prevent custom-taxonomy items from being listed in loopIf you like you can see the page here: https://www.parentesiquadraoutlet.eu/wordpress/?page_id=23
Forum: Fixing WordPress
In reply to: Prevent custom-taxonomy items from being listed in loopSorry 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 thisif ( !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
MassimilianoForum: Fixing WordPress
In reply to: List subpages with thumbnail from custom fieldHey there, thanks for your reply! I will give it a shot ??