pha3z
Forum Replies Created
-
I figured it was a lost cause so I installed Squelch tabs and accordians plugin to test it out. The same problem is occurring with Squelch. Evidently, something in my WordPress theme or somewhere or else is causing javascript from some plugins to not load.
It’s not a problem with WP-UI.
Forum: Plugins
In reply to: [Comprehensive Google Map Plugin] Plugin deprecated since JanuaryI counted and made 14 replacements of .live() with .on() in cgmp.framework.js and loaded that file instead of cgmp.framework.min.js to make the plugin work again.
Directions for how to replace .live() with .on() can be found here:
jquery.com/upgrade-guide/1.9/Forum: Plugins
In reply to: [Comprehensive Google Map Plugin] Comprehensive Google Map Plugin Jquery 1.10Thanks for posting the cause of this. Helps out some of the rest of us. 🙂
Forum: Plugins
In reply to: [Multiple Featured Images] Integrate into has_post_thumbnail@ J.D. Grimes
I think there is an error in your code above.
<?php if ( has_post_thumbnail() ) { ?>
is equivalent to:
<?php if ( (int) kd_mfi_the_featured_image( 'featured-image-2', 'page', 'full' ) != 0 ) { ?>
You used “get_featured_image_id”, but I think you meant “the_featured_image” as I showed. They have different parameters.
Forum: Plugins
In reply to: [Combine CSS] File Path in CSS using url('')Cai, what steps must be taken to reproduce the problem?
Well I’m going through and fixing these myself so I might as well paste where the changes need to be made.
download-manager.php
Before line 321, add this line: if(!isset($_GET[‘task’])) return;wpdm-server-file-browser.php
Before line 4 and line 30, add this line: if(!isset($_GET[‘task’])) return;download-manager.php
Line 156, change to this:
if(isset($title)) { if($title==’true’) $title = “<h3>”.$data[‘title’].”</h3>”; }Line 161, change to this:
if(isset($desc)) { if($desc==’true’) $desc = wpautop($data[‘description’]).”</br>”; }Line 165:
if(!isset($template) || $template==”) $template = ‘wpdm-only-button’;Line 200:
Improper array index at end of line. $data[icon] should change to $data[‘icon’]Before Line 203, add both of these lines:
if (!isset($password_field)) { $password_field = ”; }
if (!isset($hc)) { $hc = ”; }Improper array index: $data[title] should be changed to $data[‘title’]
Please use debug notices when you write code. 🙂
Forum: Plugins
In reply to: [Download Manager] Zip file is corrupt after downloadI fixed it. I don’t know why, but I had to clean and flush the output buffer after setting headers and before letting the file send.
The existing headers look like this:
header(“Content-Description: File Transfer”);
header(“Content-Type: $mtype”);
header(“Content-Disposition: attachment; filename=\”$asfname\””);
header(“Content-Transfer-Encoding: binary”);
header(“Content-Length: ” . $fsize);I added these lines (notice a few new headers):
header(‘Expires: 0’);
header(‘Cache-Control: private’);
header(‘Pragma: private’);
ob_clean();
flush();No more corrupted zip files.
Forum: Plugins
In reply to: [Combine CSS] How does it know when to regenerate file?It’s working. I’d recommend changing the wording to “Clear CSS Cache”. Delete confused me when I first saw it, because it sounds like you’re permanently removing something instead of just resetting/clearing. ‘clear’ is a well understood computer term for such things.
Forum: Plugins
In reply to: [Combine CSS] How does it know when to regenerate file?p.s. Thanks for your butt-kicking work so far. 🙂 I think this plugin allows a much better way to work with WordPress, and it could be very useful for all of us who want a shift in how we work.
Forum: Plugins
In reply to: [Combine CSS] Error Log?Alright, this is interesting.
The permissions were wrong when I first upgraded, so that prevented the combine-css/tmp/*-settings.dat from being written to. It was blank.
I set the permissions on everything to 777, but the file was still blank. I deleted the file and PRESTO! – the correct new file was generated.
I wonder why the behavior is happening like that.
I was able to successfully duplicate the problem by clearing the contents in settings.dat. Everytime there’s a blank settings.dat, I have to delete it to get a new one generated properly.
Forum: Plugins
In reply to: [Combine CSS] Numerous Undefined ErrorsTim,
I can’t seem to find anything else useful. Where would I actually look on disk to find the generated stylesheet? Should it be showing up in combine-css/tmp ? The only thing in there is a .dat file.
Without diving into the code, I’m not sure where to go to figure out what the problem is.
– Jim
Forum: Plugins
In reply to: [Combine CSS] Numerous Undefined ErrorsTim,
The notifications are gone, but now the plugin is throwing out a blank stylesheet. I’m going to try to diagnose the problem. I checked the source on the generated HTML and I see this line:
<link rel=’stylesheet’ id=’combine-css’ href=’http://armstrongtheme.com/wp-content/plugins/combine-css/css.php?token=e82ca481eef6bbe8ec4fc07dc9dc8c42&ver=0.5′ type=’text/css’ media=’all’ />So I try to follow that link and I get a blank sheet.
And of course, my whole web page looks completely unstyled as a result. This problem never occurred before.
I’ll see if I can get you more information.
Forum: Plugins
In reply to: [Combine CSS] Numerous Undefined Errorscalik1d,
Can you please post specific error messages?
The issue I was discussing with Tim pertained to Notices that appear while running WordPress in debug mode.
I just tested and the notifications are resolved. I doubt you’re getting the same errors, calik1d. You should probably be posting your issue as a new thread.
– Jim
Forum: Plugins
In reply to: [Combine CSS] Numerous Undefined ErrorsTim,
Any progress?
Forum: Plugins
In reply to: [Combine CSS] Numerous Undefined ErrorsThanks Tim.
I’ve got another question. How difficult would it be to add a button to the WordPress admin bar that lets you clear the combined files from any page? And also what about a button to enable/disable the plugin from the admin bar as well?
Right now, when I make changes to any given CSS file, I have to go to the plugins page and deactivate and reactivate the plugin to get the combined CSS sheet to reflect the changes. Maybe I’m missing somtehing?