WordPress.org

Support

Support » Plugins and Hacks » Hacks » [Resolved] Advanced Image Settings Php Location

[Resolved] Advanced Image Settings Php Location

  • Hi,

    Does anyone know where the php file which contains “Advanced Image Settings” is located?

    – (i.e. when you click on an img in the editor and go to “Advanced Settings”)

    We have a site with pre-written CSS and WordPress/ TinyMCE Image editors keeps on over-riding our settings with hardcoded img “width” and “height” attributes! It’s driving me nuts!

    Windows 7 Search sucks so I haven’t been able to find the “exact match string” for it in the WP core folders.

    Can anyone tell me where this file is located so I can hack away???

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator Jan Dembowski

    @jdembowski

    Brute Squad and Volunteer Moderator

    We have a site with pre-written CSS and WordPress/ TinyMCE Image editors keeps on over-riding our settings with hardcoded img “width” and “height” attributes! It’s driving me nuts!

    Uh, editing the files that ships with WordPress will lead you to many Bad Things™ and much grief. It’s really discouraged as it makes your installation unsupportable and possibly less secure. Also you’ll lose your changes at the next update.

    Hard coding HTML like that always gets messed up if you use the Visual Editor. Have you considered visiting your WordPress user profile and disable the visual editor for your account?

    http://your-wordpress-URL-here/wp-admin/profile.php

    It’s the Disable the visual editor when writing check box.

    Or try one of the many TinyMCE plugins instead.

    http://wordpress.org/extend/plugins/search.php?q=TinyMCE

    We’re currently using the “Ultimate TinyMCE” plugin which has the right image editing settings that we need.

    Disabling the “Visual Editor” only does it for my account – not to mention it also disables the “Ultimate TinyMCE” plugin as far as I can see.

    I’m aware that I’d loose the changes at the next update. True not ideal but at least I’d know a bit more of how the system works.

    If I can find the file – maybe there are some hooks I can use to over-ride the current “Advanced Image Settings” output function?

    Know of any/ where the php file is located?

    Moderator bcworkz

    @bcworkz

    According to my packet logger, the following files are accessed:
    wp-includes/js/tinymce/plugins/wpeditimage/editimage.html
    wp-includes/js/tinymce/plugins/wpeditimage/js/editimage.min.js
    wp-includes/js/tinymce/utils/form_utils.js

    and several css files

    thanks bcworkz, those are exactly the files I was looking for.

    btw how exactly did you log those packets?
    – did you use wireshark/ or config something in apache?

    thanks again!

    Moderator bcworkz

    @bcworkz

    No from the other end, just httpfox plugin for firefox. And I misspoke, it doesn’t log individual packets, only requests and responses, along with accompanying data.

    cheers bcworkz, that’s brilliant stuff.

    actually thought that all requests went through index.php as a query string which then accessed php files hidden server-side

    anyway it’s good to know!

    Moderator bcworkz

    @bcworkz

    FWIW, most initial front end requests do go through index.php, so it would be a decent place to insert a snooper. (But would not have caught the listed files) But httpfox works for all http traffic, not just WP front end 🙂

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] Advanced Image Settings Php Location’ is closed to new replies.
Skip to toolbar