mellow_bunny
Forum Replies Created
-
Forum: Plugins
In reply to: [Plugin: melative-link] Needs a demoRight on, valid point. I’ll see what we can whip up and if we can make the jargon a little more friendly ;P!
Forum: Fixing WordPress
In reply to: Disabling automatic height and width on <img> tags.So I have been able to do this by altering the
get_image_tagfunction inside/wp-includes/media.php. I altered just one line from this:$html = '<img src="' . esc_attr($img_src) . '" alt="' . esc_attr($alt) . '" title="' . esc_attr($title).'" '.$hwstring.'class="'.$class.'" />';Into this:
$html = '<img src="' . esc_attr($img_src) . '" alt="' . esc_attr($alt) . '" title="' . esc_attr($title).'" class="'.$class.'" />';The only variable removed was
$hwstring. I was hoping to override this function but it’s not in pluggable.php of course.So for now I’ll make use of this hack but I think I will create a plugin to remove the attributes with regex using a filter or action hook or something. That would be a better longterm solution. All that would be required is for the plugin to find the attributes and remove them before saving the post to the database.
Forum: Fixing WordPress
In reply to: Disabling automatic height and width on <img> tags.Ok maybe I should be a little more specific. WordPress automatically adds the width and height attributes to all <img> tags I insert into a post or page.
<img class="alignnone size-full wp-image-24" title="CoolWhip" src="http://mellowspace.com/wp-content/uploads/2009/08/CoolWhip.png" alt="CoolWhip" width="1920" height="1080" />I want to stop it from entering in those attributes. I’m not sure that removing img styling from my CSS will have any effect.
Edit: Whenever you insert an image it asks you to select a size, giving options of Thumbnail, Medium, Large and Full Size. I would love to be able to choose a fifth option “Not set”. This would I assume prevent WordPress from adding the width & height attribute if it was defined correctly.
Forum: Fixing WordPress
In reply to: 2.8.1 CodePress Syntax Highlighting Removed?EditArea would be pretty good actually.
Forum: Fixing WordPress
In reply to: Some images now stretched vertically with 2.8The only consistent way I’ve found around this is to remove the width and height attributes from the img tag. That allows proper scaling in IE and FF.
Forum: Fixing WordPress
In reply to: 2.8.1 CodePress Syntax Highlighting Removed?It was disabled as seen here in the WP.Trac.
I was trying to find a post on why this has happened but I assume it’s to do with the integration being buggy for whatever reason.
Forum: Plugins
In reply to: [Plugin: WP Super Cache] Super Cache and custom SVN installs of WPAfter looking into the code I found that the following was causing the error.
define( 'WPCACHEHOME', ABSPATH . (hidden)/mellowspace.com/wordpress-content/plugins/wp-super-cache/" ); //Added by WP-Cache ManagerAs you can see above there is a stray “ after the wp-super-cache directory. I wasn’t sure if that was causing the error itself but I changed to the below code and now Super Cache is working perfectly.
define( 'WPCACHEHOME', WP_CONTENT_DIR . '/plugins/wp-super-cache/' ); //Added by WP-Cache ManagerI’m not sure if this was a quirk of my install or what but it’s resolved :)!
Forum: Plugins
In reply to: [Plugin: WP Super Cache] Super Cache and custom SVN installs of WP[Tue Nov 04 14:14:09 2008] [error] [client 67.x.x.x] Could not write to logfile:, referer: http://www.mellowspace.com/wordpress/wp-admin/options-general.php [Tue Nov 04 14:14:09 2008] [error] [client 67.x.x.x] Printing message to stderr:, referer: http://www.mellowspace.com/wordpress/wp-admin/options-general.php [Tue Nov 04 14:14:09 2008] [error] [client 67.x.x.x] [Tue Nov 04 14:14:09 2008] [info] Executing "(hidden)/mellowspace.com/wordpress/wp-admin/options-general.php" as UID 515, GID 501, referer: http://www.mellowspace.com/wordpress/wp-admin/options-general.php [Tue Nov 04 14:14:09 2008] [error] [client 67.x.x.x] , referer: http://www.mellowspace.com/wordpress/wp-admin/options-general.php [Tue Nov 04 14:14:09 2008] [error] [client 67.x.x.x] PHP Notice: Undefined property: stdClass::$response in (hidden)/mellowspace.com/wordpress/wp-admin/menu.php on line 30, referer: http://www.mellowspace.com/wordpress/wp-admin/options-general.php [Tue Nov 04 14:14:09 2008] [error] [client 67.x.x.x] PHP Notice: Undefined index: _wpnonce in (hidden)/mellowspace.com/wordpress-content/plugins/wp-super-cache/wp-cache.php on line 124, referer: http://www.mellowspace.com/wordpress/wp-admin/options-general.php [Tue Nov 04 14:14:09 2008] [error] [client 67.x.x.x] PHP Parse error: syntax error, unexpected '/' in (hidden)/mellowspace.com/wordpress-content/wp-cache-config.php on line 8, referer: http://www.mellowspace.com/wordpress/wp-admin/options-general.phpThese are the errors that appear when I attempt to enable the cache.
Forum: Installing WordPress
In reply to: Blank pages when submitting forms in admin panelOk after some more googling, I found that this problem actually came from my theme. The functions.php file had multiple <?php ?> tags and this was causing errors as there was spaces in between. See below..
`<?php
if ( function_exists(‘register_sidebar’) )
register_sidebar(array(
‘before_widget’ => ”,
‘after_widget’ => ”,
‘before_title’ => ‘<h4>’,
‘after_title’ => ‘</h4>’,
));
?><?php // for sidebar.php if needed ?>
<?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar() ) : endif; ?>`Forum: Fixing WordPress
In reply to: One Account For Whole SiteNo there is not one plugin to do it all. You would have to have a plugin for each and every other script you wanted to integrate.
Forum: Installing WordPress
In reply to: Blank pages when submitting forms in admin panelI’m having the exact same issue I tried enabling the WP_DEBUG to no avail. I’ll try and get logs but if anyone has any ideas let me know.
Forum: Fixing WordPress
In reply to: One Account For Whole SiteYou will have to check whether all the software you want to integrate can link into a central user table. It’s not a simple process and would require careful planning and someone experienced to help you.