Ron Strilaeff
Forum Replies Created
-
Forum: Plugins
In reply to: [Flexible Frontend Login] New added features: ajax, registration, …Henning,
On this page you said you would merge these changes into the official plugin. I’m sure you are very busy but is this still in the works or should I just go get the fork?
Thanks, Ron
Forum: Plugins
In reply to: [Quick Cache (Speed Without Compromise)] How long does "Clear Cache" take?bravenewniche… I’m glad my experimentation has helped you.
Well, I just checked again and my oldest stale cache files were from 2 months ago, the file count was 32k and the disk space used was 3.9GB.
Changing the cache expiration time (from 3601 back to 3600 this time) did remove all the files within a minute or two without ever disabling the cache. So that’s a nice workaround, but not a fix.
It seems that this plugin must be ignoring that config value, except when it is changed. OR… maybe it is working making new cache files without deleting the stale ones. The description of that setting (in the plugin) doesn’t say anything about actually removing old files.
Other than having to do this housekeeping, the plugin has been solid: it seems to do its job efficiently, and stay out of the way.
So what IS the resolution here? I have Version: 1.6.2
All of the terms and counts show up for me (empty or not). I’m currently using the list mode but the empties show up in all modes.
Forum: Plugins
In reply to: [SimpleModal Login] SimpleModal Login Registration ErrorMe too…. I get the red box the says “ERROR: OK” when I try to login as an existing user with a valid name and password.
Then when I press cancel to dismiss the simplemodal popup, and refresh the site, that user IS logged in.
The plugin is not usable like this. Please help us Eric.
Forum: Plugins
In reply to: [SimpleModal Login] How to add SimpleModal in a link in the menuTry (no quotes)
– put ‘/wp-login.php’ in the URL field
– put ‘Log-In’ in the Navigation Label field (any label will do)
– put ‘simplemodal-login’ in the css classes fieldSave Menu, refresh site, click on the new menu item.
That worked for me on recent wp version and woothemes-canvas
Changing those values has no effect for me.
Even deleting that js file has no effect! … must be cached?
Has anybody been able to control the size and position of the popup?
Forum: Plugins
In reply to: [Modal Dialog] WebsiteFyi: http://yannickcorner.nayanna.biz/wordpress-plugins/modal-dialog/
But even less documentation than you see here. Yannick … are you alive?
Forum: Hacks
In reply to: How to pass value in wordpress urlI have a relevant question.
If at the top of my target page I execute this:
print_r( $wp_query->query_vars);I can see a list of the valid query_vars … nice. However, if I actually use any one of them (like author_name), the target page redirects to 404.php. Why is that?
The only way to make it work is to use a parameter that is NOT in the approved list and that seems the opposite of the intention.
For example, I set up a test …
1. Construct these links in the page you want to link from:
http://example.com/target-page/?author_name=joeuser http://example.com/target-page/?author_name_alt=joeuser2. Then on that target-page use:
$author = $_GET['author_name'];or
$author = $_GET['author_name_alt'];The target-page using the existing ‘author_name’ var returns 404.php, but the alternate, made-up var name works (accepting the url parameter). There is obviously something special about the way wordpress handles that list of query_vars.
What is the point of having query_vars then?
What am I missing?Edit: I just noticed that the resulting 404.php “not found” page url now has the parameter value embedded like this:
http://example.com/target-page/joeuserhmmm, the plot thickens. Does wordpress have an internal redirect thing going on?
Forum: Fixing WordPress
In reply to: How do I use the WP image functions in a page template?I ended up not using the built in media code but did have to enqueue all this to load the supporting javascript into a frontend page template.
wp_enqueue_script('jquery'); wp_enqueue_script('plupload-handlers'); wp_enqueue_script('jcrop'); wp_enqueue_style('jcrop');Then figure out how json and ajax works to get everything to behave.
My code is nowhere near mature or tight enough for a shareable plugin or even good enough for me to explain how it works… (I’m still learning so this is strictly in-house for that particular page/purpose, and is not even live yet.)
I’m not aware of plugin that does the gravitar upload/crop from a front end widget or like a mini-registration or login form, but I have similar needs so I’ll be digging into that in the next few months.
In the meantime, apparently this plugin allows users to do that if you allow them to get to the user admin page.
http://wordpress.org/extend/plugins/user-avatar/screenshots/glhf!
Forum: Plugins
In reply to: [WP Ultimate Search] No results anywhere and nothing in chrome, help!Hey I don’t have time to track this down myself, but I was just checking some log and config files on my server and stumbled on this error when I was playing with your plugin.
Apparently it is not hard to create a situation in which the “WHERE” clause is empty:
[Mon Apr 08 18:29:22 2013] [warn] [client 174.66.18.85] mod_fcgid: stderr: WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND ff_posts.post_status = 'publish'' at line 5 for query , referer: http://strilaeff.net/blog/replacing-motor-mounts-on-a-vw-passat/ [Mon Apr 08 18:29:22 2013] [warn] [client 174.66.18.85] mod_fcgid: stderr: \t\t\tSELECT *,, referer: http://strilaeff.net/blog/replacing-motor-mounts-on-a-vw-passat/ [Mon Apr 08 18:29:22 2013] [warn] [client 174.66.18.85] mod_fcgid: stderr: \t\t\tsubstring(post_content, 1,200), referer: http://strilaeff.net/blog/replacing-motor-mounts-on-a-vw-passat/ [Mon Apr 08 18:29:22 2013] [warn] [client 174.66.18.85] mod_fcgid: stderr: \t\t\tAS excerpt, referer: http://strilaeff.net/blog/replacing-motor-mounts-on-a-vw-passat/ [Mon Apr 08 18:29:22 2013] [warn] [client 174.66.18.85] mod_fcgid: stderr: \t\t\tFROM ff_posts WHERE , referer: http://strilaeff.net/blog/replacing-motor-mounts-on-a-vw-passat/ [Mon Apr 08 18:29:22 2013] [warn] [client 174.66.18.85] mod_fcgid: stderr: \t\t\tAND ff_posts.post_status = 'publish' made by do_action('wp_ajax_nopriv_wpus_search'), call_user_func_array, WPUltimateSearch->get_results, WPUltimateSearch->execute_query_basic, referer: http://strilaeff.net/blog/replacing-motor-mounts-on-a-vw-passat/glhf
Forum: Plugins
In reply to: [WP Ultimate Search] No results anywhere and nothing in chrome, help!ok I tried that and it (or my site) seems to be ignoring the shortcodes on the /search page. WP sees it as a shortcode though since it is getting replaced by nothing.
I’m using woothemes-canvas and I know their shortcodes work.
I’ll dig in later to see what is wonky. No worries.
Forum: Plugins
In reply to: [WP Ultimate Search] No results anywhere and nothing in chrome, help!Thanks for looking at it, maybe I can help you by being a typical test site. I don’t need it to work yet, since our live site (where I would like some ajaxified advanced search) will not be ready for a month or two. Even then I will probably just have some category drop downs to start.
Anyways, here is the content of my /search (or /search/) page:
content before shortcode [wp-ultimate-search-results] content after shortcodeIn firefox, on my site, the shortcode produces no content. There is one space on either side of the square brackets.
I just tested it as network activate vs subsite activate and it behaves the same so I will leave it as subsite activate.
(Forget chrome for now, the search widget it is just unresponsive there and i’m pretty sure the google search js stuff in a text widget at the top of my sidebar is not interfering.)
Forum: Fixing WordPress
In reply to: Delete ALL 30,000 anattached images in Media library – pluggin?Did you ever find a convenient way to delete all the unattached images?
There seems to be a big need for an all in one “cleanup” plugin that does something like this:
– remove all unattached images after verifying that they are not used somewhere on the site
– delete the actual image files from the uploads folder that are not linked to from any post
– do this unattended in the backgroundWhile we are at it, we might as well have an option to delete all trash and any items from the list below that is not being used by a published, pending or draft post or page:
– taxonomy terms
– attachments
– user_meta
– post_meta
– comments
– any other dead weight from both the database and filesystem.Call it “spring cleaning” 🙂 I see the wp-cleanup plugin, which is a good start, but I don’t think it does anything with images.
I personally have a need for this because I’m working on an import program that gets all my data and images from a couple of existing sites and maps it all and inserts new posts and taxonomy terms on one new site. I just spent the whole day deleting all the imported stuff because of a design change to the new site. But I could not just do a reinstall since there is a significant amount of data on the new site I wanted to keep. Hmmm … maybe that will be my first plugin.
Forum: Fixing WordPress
In reply to: Are the fade effects on admin messages broken?Good to know, thanks!
So to remove the messages like this on my options/admin pages:
echo "<div id='message' class='updated fade'><p><strong>Options Saved</strong></p></div>";I enqueued a little js file which includes this jQuery snippet:
jQuery(document).ready(function($){ // doc ready wrapper. the '$' means I can use '$' instead of 'jQuery' within this scope. $('.fade').click(function(){$(this).fadeOut('fast');}); }); // end of doc ready wrapperIMHO it is better to remove the message after acknowledging it with a click instead of just an auto fadeOut. But from a UI point of view, it really should go away after *any* change is made to the page.
Thanks again … resolved!
Forum: Plugins
In reply to: How do I dynamically update an admin page using ajaxOk, my solution to this required some rethinking.
The javascript/jquery/ajax/client side pulls the status periodically from the php/server side. This is under control of a pair of javascript timer statements:
intervalID = setInterval(getstatus, 2000); clearInterval(intervalID);The purpose of the getstatus js function is a separate ajax call to read the pct complete (or whatever you want) from the server. The server does not push data back to the client … it responds to a request for a status update.
On the server side, the (time consuming) main process periodically does a quick and easy update_option(option_name, option_value) to put the pct complete value into the database whenever the %$#& it wants (without interrupting or slowing down any tight loops).
Then, the php handler of the getstatus ajax call simply does a get_option of the same option_name and responds to the client with the value that was saved asynchronously by the main process. Almost elegant! 🙂
I had a minor glitch where the get_option returned null occasionally, but since it is not critical, I’m moving on.
I also tried to make global php vars work for this but I guess they are not static between function calls … php session vars might work but that seemed too complicated.
Anyways, maybe someone will stumble upon this thread and it will help them. Good luck and have fun!