monodistortion
Forum Replies Created
-
Hi micropat,
I hate to bring this up again but I noticed that there are a lot of short_open_tag php statements (
<?
instead of<?php
) in the admin panel now. It’s causing my admin panel to look really crazy.Both the Subscribe and Share/Save buttons have these.
Forum: Plugins
In reply to: [Plugin: Add to Any Subscribe Button] Add-to-Any Subscribe and Save buttonsIn your admin panels look under Settings – Subscribe Buttons – Menu Options – Only show the menu when the user clicks the Subscribe button. You’ll want to uncheck that button.
Looks great now. The .js files are around 10KB each and the .css is 2KB.
Forum: Plugins
In reply to: Add to Any Subscribe Button doesn’t validate XHTML 1.0 TransitionalVersion 0.9.3 looks good. I haven’t played with widgets myself but it looks like the $before_widget and $after_widget did the trick.
Forum: Plugins
In reply to: [Plugin: Live Comment Preview] Caching the JS scriptOh, as a side note, the md5.js file can be minified to save a few K. I was just doing some research and this site looks interesting:
https://compressorrater.thruhere.net/You can compare the compression of four different javascript compressors (before and after gzip).
Forum: Plugins
In reply to: [Plugin: Live Comment Preview] Caching the JS scriptThe javascript for this plugin is a little tricky because it is generated dynamically and customized by a function in live-comment-preview.php. That’s why it’s called with the query ?live-comment-preview.js. I was looking into forcing it to cache in the browser but I think that may break the way the gravatar IDs are generated dynamically. Making the entire javascript static looked like a lot more hacking than I was willing to try.
I was able to generate a gzipped file by changing line 72 from:
header(‘Content-type: text/javascript’);
to:
ob_start (“ob_gzhandler”); //compress with gzip if possible
header(‘Content-type: text/javascript’);This reduces the javascript file size from 13.4KB to 4.4KB.
Forum: Plugins
In reply to: Plugin Nextgen Gallery: 1. space above/between images 2. upgradeAre you familiar with editing CSS? I would recommend trying Firefox with the Firebug plugin, since that’s what I use to figure out most CSS problems.
It looks like you’re using the K2 theme which has a CSS file called core.css.php which means the CSS may be generated by PHP so I can’t say for sure what you’ll need to change. You may want to ask in the K2 forums since this is a K2 related CSS problem.
For some reason the core.css.php is overriding the nggallery.css.
If it doesn’t affect the rest of your layout get rid of .entry-content div at line 531:
.entry-content p, .entry-content ul, .entry-content ol, .entry-content div, .entry-content blockquote
{
margin:13px 0;
}You may be able to fix the margins in the nggallery.css file and declare them !important so they will take precedence.
Forum: Plugins
In reply to: NextGen Gallery working perfectly but problem with flash stuff in pageWhat type of thumbnail effect are you using? (Thickbox, Lightbox 2, etc.)
Can you change the parameters for your flash object? A quick google search gave me:
https://drupal.org/node/73280#comment-425526
https://www.dynamicdrive.com/forums/showthread.php?t=9382Forum: Plugins
In reply to: [Plugin: WP-reCAPTCHA and Slimbox] conflict in IE 6I like Slimbox since the javascript files are much smaller but I may try switching back to Lightbox 2.
I ended up hacking the slimbox.php file to get it to work with reCAPTCHA. I split the function slimbox_styles() into two pieces and left the CSS in the head and used another add_action to put the javascript at the bottom of the body. The only disadvantage is if you click on an image before the page loads completely you get the raw image instead of the slimbox…
You can usually count on IE to screw things up for you and give you days of extra work!
That is part of the Lightbox 2 javascript code so I think you would have to change that. It takes the title=”” attribute and puts that into the caption.
Your first option would be to not use the title attribute but the NextGen Gallery uses that. Your other option would be to change the Lightbox 2 javascript. I’m not a javascript expert by any means but I believe the relevant code is on line 218:
this.imageArray.push([imageLink.href, imageLink.title]);
and line 223:
collect(function(anchor){ return [anchor.href, anchor.title]; }).
That was it! I guess I don’t have short_open_tag enabled in my php.ini.
Thanks!