sdls
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7] Recaptcha Version 3Hiya, left a comment earlier that said this plugin is now “broken”. This is not true, and apologies to the plugin author.
The contact form 7 actually works correctly with Recaptcha vs 3. If you look at your recaptcha stats, you’ll see traffic hitting the script.
It’s just that Recpatcha vs3 is not catching half as much spam as vs 2.
I would suggest to the plugin author the ability to “toggle” between vs2 and vs3, maybe 2 tabs under Contact -> Integration, so you can preserve your keys for each API service without having to reset.
Thanks for the free plugin BTW.
Forum: Plugins
In reply to: [Contact Form 7] Recaptcha Version 3Broken for me too, after that most recent update of CF7, the only Recaptcha option available is vs 3.0 and it simply does not work.
Thanks for you response Jeremy, very helpful… I’ll check this out and drop a line back with the outcome… Have a great day.
Forum: Fixing WordPress
In reply to: adding separator#Free269 Your really close just remove that nesting in the CSS:
.nav-menu > li:last-child .dot { display: none; }Regarding #esmi comments:
Sometimes adding bullets via CSS can be unpredictable on older browsers, as well as different media platforms such as tablet and iPhone… although the method mentioned above is cumbersome it does degrade better in older browsers. Could you provide some CSS you felt worked well for this purpose #esmi? thanks!
Forum: Reviews
In reply to: [The Events Calendar] Great Plugin!I’m totally blown away that you respond to plugin comments so thoroughly. Having shopped around and worked with many plugin development companies, I have to say that working with Modern Tribe has been excellent thus far.
I wish you guys did more plugins for WordPress !! 😉
Forum: Themes and Templates
In reply to: [Twenty Fourteen] Paging broken after WordPress 4.0 UpdateThanks for your time Andrew,
Issue resolved.
We tested and tested to ensure this was not a plugin issue before making this post, but unfortunately we discovered the fault was with “PopUp Pro” plugin from WPMUDEV.
We uninstalled all plugins THEN flushed the cache, and where able to get that paging working again. A good strategy if rewrite issues happen again in the future anyway.
Forum: Themes and Templates
In reply to: [Twenty Fourteen] Paging broken after WordPress 4.0 UpdateYes thanks Andrew,
We’ve checked that out…
The culprit seems to be
$format .= $wp_rewrite->using_permalinks() ? user_trailingslashit( $wp_rewrite->pagination_base . '/%#%', 'paged' ) : '?paged=%#%';@global $wp_rewrite
WordPress Rewrite objectWe’ve flushed the Rewrite Rules using several methods here:
http://andrei-lupu.com/wordpress/dont-forget-to-flush-your-rewrite-rules/Still no luck resolving paging
Any idea how the global rewrite object could get jiggy?
Thanks Cindy! YOU ROCK!
Just wondering @cindy would you be able to assist me with implementing the above solution as a snippet that could be included in the theme functions files with modifying the core files in the plugin?
I’m afraid this kind of class integration from a theme’s functions file is a little over my head.
Thanks!
S.
Hey All,
Potential solution for customizing the front-end list and form.
Love the cleverness to-do plugin. Although the admin looks beauty… it’s a little challenging to access the front-end integration.
What I needed was a front-end solution (we’re talkin in the site templates) that lists to do items on the left and “add new to do” form on the right, The current CTDL_Frontend_Admin class setup and ‘todoadmin’ shortcode groups them together making it difficult to customize on the front-end.
*Fair warning this solution involves editing the core files which is not ideal, but perhaps it will be useful to other developers.
editing the cleverness-to-do-list-frontend.class.php file
add in a new block of code which duplicates the class and shortcode structure used in the plugin to create your own form:
/** * CUSTOM ADD FORM SHORTCODE */ class CTDL_Frontend_AddForm extends ClevernessToDoList { protected $atts; public $add_script; public function __construct() { add_shortcode( 'todoaddnewform', array( $this, 'display_addnewform' ) ); parent::__construct(); } public function display_addnewform( $atts ) { extract( shortcode_atts( array( 'title' => '', ), $atts ) ); $this->atts = $atts; $this->add_script = true; $this->list = ''; if ( $title != '' ) { $this->list .= '<h3 class="todo-title">'.esc_html( $title ).'</h3>'; } if ( is_user_logged_in() ) { if ( current_user_can( CTDL_Loader::$settings['add_capability'] ) || CTDL_Loader::$settings['list_view'] == '0' ) { extract( shortcode_atts( array( 'priority' => 0, 'assigned' => 0, 'deadline' => 0, 'progress' => 0, 'categories' => 0, 'addedby' => 0, 'date' => 0, 'editlink' => 1 ), $this->atts ) ); $this->form = '<h3>'.apply_filters( 'ctdl_add_heading', esc_html__( 'Add New To-Do Item', 'cleverness-to-do-list' ) ).'</h3>'; $this->form .= '<form name="addtodo" id="addtodo" action="'.$this->url.'?type=ToDoItem&action=added" method="post"> <table class="todo-form form-table">'; /** @var $priority int */ if ( $priority == 1 ) $this->create_priority_field(); /** @var $deadline int */ if ( $deadline == 1 ) $this->create_deadline_field(); /** @var $categories int */ if ( $categories == 1 ) $this->create_category_field(); if ( CTDL_PP ) $this->create_planner_field(); /** @var $assigned int */ if ( $assigned == 1 ) $this->create_assign_field(); /** @var $progress int */ if ( $progress == 1 ) $this->create_progress_field(); $this->form .= do_action( 'ctdl_add_form' ); $this->create_todo_text_field(); $this->form .= '</table>'.wp_nonce_field( 'todoadd', 'todoadd', true, false ).'<input type="hidden" name="action" value="addtodo" /> <p class="submit"><input type="submit" name="submit" class="button-primary" value="'.apply_filters( 'ctdl_add_text', esc_attr__( 'Add To-Do Item', 'cleverness-to-do-list' ) ).'" /></p>'; $this->form .= '</form>'; return $this->form; } else { return ''; } } else { $this->list .= esc_html__( 'You must be logged in to view', 'cleverness-to-do-list' ); } return $this->list; } }This class creates a new shortcode “todoaddnewform” which allows you to add in just the form into your template where needed. All the parameters still work which allow you to add the right fields when creating the form.
For example add into your template:
<?php echo do_shortcode('[todoaddnewform priority="1" categories="1"]'); ?>or into your page content
[todoaddnewform priority="1" categories="1"]Forum: Fixing WordPress
In reply to: Image Directory – problemExperienced the same problem on several old sites. This problem occurs sporadically and is not commonly occuring on other websites on the same server
Try going to your “Media Settings” page… do you see a “Store uploads in this folder” option with a long path to your uploads folder? If so… this is your problem… WordPress 3.5+ does not seem to require this long path, but more of a site relative path (which is great!)
Change your “Store uploads in this folder” to “wp-content/uploads”… when you “save settings” you should see that field disapear entirely, never to bother us again 😉
This occured for me when my hosting provider changed the folder structure on the server making this long URL incorrect. Therefore WordPress could not find the “uploads” directory at all.
Hope that helps…
Here’s some things you might want to check in case your still having problems…
Update to WordPress 3.5 +
Update all plugins
Check file permissions 755 on the uploads dir/
Check PHP versionForum: Plugins
In reply to: [Posts 2 Posts] Clever URL'sRayken’s example is the closest I can find to a plug and play code. The key difference is in his example the first url chunk is fixed. i.e. ‘spare-parts/’ whereas I’m hoping to make this flexible.
// the rules function custom_p2p_rewrites() { global $wp_rewrite; // Define custom rewrite tokens $rewrite_tag = '%productName%'; // Add the rewrite tokens $wp_rewrite->add_rewrite_tag( $rewrite_tag, '(.+?)', 'products=' ); // Define the custom permalink structure $rewrite_keywords_structure = $wp_rewrite->root . "/spare-parts/$rewrite_tag/"; // Generate the rewrite rules $new_rule = $wp_rewrite->generate_rewrite_rules( $rewrite_keywords_structure ); // Add the new rewrite rule into the global rules array $wp_rewrite->rules = $new_rule + $wp_rewrite->rules; return $wp_rewrite->rules; } // add to query vars function add_custom_p2p_rewrites( $public_query_vars ) { $public_query_vars[] = 'products'; return $public_query_vars; } // flush function flush_custom_rules() { global $wp_rewrite; $wp_rewrite->flush_rules(); } add_action( 'init', 'flush_custom_rules' ); add_action( 'generate_rewrite_rules', 'custom_p2p_rewrites' ); add_filter( 'query_vars', 'add_custom_p2p_rewrites' );Thanks thanks thanks for your help
Forum: Plugins
In reply to: [Posts 2 Posts] Clever URL'sthanks for the ultra quick response Scribu! Can’t seem to find the answer on the page you’ve suggested
Are you suggesting I look at this tutorial?
http://matty.co.za/2009/11/custom-url-rewrites-in-wordpress/Doesn’t seem to be the same requirements as what Rayken is looking for. I’m a bit of a newb to this topic, so please excuse my slowness in understanding
Any insight would be greatly appreciated.
Forum: Plugins
In reply to: [Posts 2 Posts] Admin View Sort by Drop DownP.S. This code is not perfect and still needs some love
Forum: Plugins
In reply to: [Posts 2 Posts] Admin View Sort by Drop DownThanks to the filter added by the Author it was pretty fast to make this happen…..perhaps this will be useful to others.
function restrict_posts_by_relation() { global $typenow; $post_type = 'yourfirstposttype'; // change HERE $related_post = 'yoursecondposttype'; // change HERE $related_post_drop_down = 'related_'. $related_post. '_post'; if ($typenow == $post_type) { // $selected = isset($_GET[$related_post]) ? $_GET[$related_post] : ''; // create the drop down of related posts $args = array( 'orderby'=>'title', 'order' => 'ASC', 'showposts' => '-1', 'post_type' => $related_post, ); $dropposts = new WP_Query($args); if( $dropposts->have_posts() ): ?> <select id="<?php echo $related_post_drop_down; ?>" class="postform" name="<?php echo $related_post_drop_down; ?>"> <?php while( $dropposts->have_posts() ): $dropposts->the_post(); // setup_postdata($post); ?> <option class="level-1" value="<?php the_ID(); ?>"><?php the_title(); ?></option> <?php endwhile; ?> </select> <?php endif; wp_reset_postdata(); }; } add_action('restrict_manage_posts', 'restrict_posts_by_relation'); function convert_relation_to_query($query) { global $pagenow; $post_type = 'yourfirstposttype'; // change HERE $related_post = 'yoursecondposttype'; // change HERE $related_post_drop_down = 'related_'. $related_post. '_post'; $connection_reference = 'youronnectionreference'; // change HERE $related_post_ID = $_GET[$related_post_drop_down]; $q_vars = &$query->query_vars; if ($pagenow == 'edit.php' && isset($q_vars['post_type']) && $q_vars['post_type'] == $post_type && isset($related_post_ID) && is_numeric($related_post_ID) && $related_post_ID != 0) { // echo "beep"; $mod_post = get_post( $related_post_ID ); // print_r($mod_post); $args = array( 'connected_type' => $connection_reference, 'connected_items' => $mod_post, ); query_posts($args); } } add_filter('parse_query', 'convert_relation_to_query');