Forum Replies Created

Viewing 12 replies - 1 through 12 (of 12 total)
  • Right on, valid point. I’ll see what we can whip up and if we can make the jargon a little more friendly ;P!

    Thread Starter mellow_bunny

    (@mellow_bunny)

    So I have been able to do this by altering the get_image_tag function 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.

    Thread Starter mellow_bunny

    (@mellow_bunny)

    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.

    EditArea would be pretty good actually.

    The 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.

    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.

    Thread Starter mellow_bunny

    (@mellow_bunny)

    After 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 Manager

    As 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 Manager

    I’m not sure if this was a quirk of my install or what but it’s resolved :)!

    Thread Starter mellow_bunny

    (@mellow_bunny)

    [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.php

    These are the errors that appear when I attempt to enable the cache.

    Ok 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; ?>`

    No 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.

    I’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.

    You 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.

Viewing 12 replies - 1 through 12 (of 12 total)