rogerhyam
Forum Replies Created
-
Forum: Plugins
In reply to: [Require Featured Image] Not compatible with GutenbergIt would be really nice to have a fix for Gutenberg. This is such a useful plugin if you have a large number of authors to shepherd.
The changes already made in Github look pretty minor but I don’t have experience with the JS front end of WP or I’d have a stab at it myself. Maybe if things get bad….
Forum: Themes and Templates
In reply to: [Awaken] Buttons missing from media playerOK – I switch themes to fix the player so the links above won’t be relevant.
Forum: Plugins
In reply to: [List category posts] Update spits out code0.74.2 is working great for me now.
Thanks for the speedy fix.
Roger
Forum: Plugins
In reply to: [List category posts] Update spits out code0.74.1
Update Failed: <? /** * Class to build pagination * @author [email protected] */ class LcpPaginator { private $catlist; private $prev_page_num; private $next_page_num; // Singleton implementation private static $instance = null; public static function get_instance(){ if( !isset( self::$instance ) ){ self::$instance = new self; } return self::$instance; } # Define if pagination should be displayed based on ‘pagination’ param and option. # Check if the pagination option is set to true, and the param # is not set to ‘no’ (since shortcode parameters should # override general options). # Receives params[‘pagination’] from CatList private function show_pagination($pagination){ return !empty($pagination) && $pagination == ‘yes’ || (get_option(‘lcp_pagination’) === ‘true’ && ($lcp_pag_present && $pagination !== ‘false’) ); } public function get_pagination($params){ if ($this->show_pagination($params[‘pagination’])){ $lcp_paginator = ”; $pages_count = ceil ( $params[‘posts_count’] / # Avoid dividing by 0 (pointed out by @rhj4) max( array( 1, $params[‘numberposts’] ) ) ); $pag_output = ”; if ($pages_count > 1){ for($i = 1; $i <= $pages_count; $i++){ $lcp_paginator .= $this->lcp_page_link($i, $params[‘page’], $params[‘instance’]); } $pag_output .= “”; // Add “Previous” link if ($params[‘page’] > 1){ $this->prev_page_num = intval(intval($params[‘page’]) – 1); $pag_output .= $this->lcp_page_link($this->prev_page_num , $params[‘page’], $params[‘instance’], $params[‘previous’] ); } $pag_output .= $lcp_paginator; // Add “Next” link if ($params[‘page’] < $pages_count){ $this->next_page_num = intval($params[‘page’] + 1); $pag_output .= $this->lcp_page_link($this->next_page_num, $params[‘page’], $params[‘instance’], $params[‘next’]); } $pag_output .= “”; } return $pag_output; } } //
char
is the string from pagination_prev/pagination_next private function lcp_page_link($page, $current_page, $lcp_instance, $char = null){ $link = ”; if ($page == $current_page){ $link = “$current_page”; } else { $server_vars = add_magic_quotes($_SERVER); $request_uri = $server_vars[‘REQUEST_URI’]; $query = $server_vars[‘QUERY_STRING’]; $amp = ( strpos( $request_uri, “?”) ) ? “&” : “”; $pattern = “/[&|?]?lcp_page” . preg_quote($lcp_instance) . “=([0-9]+)/”; $query = preg_replace($pattern, ”, $query); $url = strtok($request_uri,’?’); $protocol = “http”; $port = $server_vars[‘SERVER_PORT’]; if ( (!empty($server_vars[‘HTTPS’]) && $server_vars[‘HTTPS’] !== ‘off’) || $port == 443){ $protocol = “https”; } $http_host = $server_vars[‘HTTP_HOST’]; $page_link = “$protocol://$http_host$url?$query” . $amp . “lcp_page” . $lcp_instance . “=”. $page . “#lcp_instance_” . $lcp_instance; $link .= “prev_page_num) { $link .= “class=’lcp_prevlink'”; } elseif ($page === $this->next_page_num) { $link .= “class=’lcp_nextlink'”; } $link .= “>”; ($char != null) ? ($link .= $char) : ($link .= $page); $link .= “”; } // WA: Replace ‘?&’ by ‘?’ to avoid potential redirection problems later on $link = str_replace(‘?&’, ‘?’, $link ); return $link; } }{“success”:true,”data”:{“update”:”plugin”,”slug”:”list-category-posts”,”oldVersion”:”Version 0.74″,”newVersion”:”Version 0.74.1″,”plugin”:”list-category-posts\/list-category-posts.php”,”pluginName”:”List category posts”}}Forum: Plugins
In reply to: [List category posts] Update spits out codeHi Fernando,
I’d like you to know we all appreciate you and your hard work and contributing such a great plugin to our community.
For my site I’ve rolled back to 0.73.2 and everything is fine and can wait till you have a fix.
Many thanks,
Roger
Forum: Plugins
In reply to: [List category posts] Update spits out codeMe too. I there a simple way to roll back?
Forum: Plugins
In reply to: [Simple Location] Can’t activate – ‘WP_Geo_Meta’ not foundI needed functionality from a couple of plugins combined so I ended up writing my own simple thing. All the mapping plugins out there are way too complex and don’t have the notion of a geotagged post which is what I’m after.
Happy to share it here:
https://github.com/rogerhyam/rbge_geo_tag
You need to define a RBGE_GOOGLE_MAPS_KEY constant in your wp-config.php to get it going but then it will allow geotagging of posts and plotting those posts on maps with a short code.
You could fork it and make of it what you will.
n.b. comes with no warrantee or support etc etc
Forum: Fixing WordPress
In reply to: Strange warning message – update pluginI had the same issue. It looks like malware. Not sure if it is from a plugin that I installed or my provider or something more sinister.
/wp-includes/js/jcrop on my site had these files in even after I had done an online upgrade to 4.1
323B 24 Nov 2013 Jcrop.gif
2.1K 24 Nov 2013 jquery.Jcrop.min.css
16K 24 Nov 2013 jquery.Jcrop.min.js
14K 24 Nov 2013 jquery.jsFreshly downloaded WP 4.1 looks like this:
323B 2 Jan 18:17 Jcrop.gif
2.1K 2 Jan 18:17 jquery.Jcrop.min.css
16K 2 Jan 18:17 jquery.Jcrop.min.jsI deleted the directory then did an re-install from via the dashboard panel to get the good version and I think that has cured it.
I’ll be keeping and eye on it to see if it changed back again. My WP instance has been running for years with different plugins on and off so it is difficult to diagnose where the badness came from. If you do a Google search for:
wordpress “WARNING! Please update plug-in to continue”
You get a list of potentially compromised sites.
+1 on this. Is it effecting the Pro version of the plugin as well?