huntermaster
Forum Replies Created
-
Forum: Plugins
In reply to: [Image Formatr] Active plugin indents textIf you know how to use CSS you can make the image and text fit nicely any way you want; the default style is to add a class called
img
to the surrounding<div>
and you can use the admin to add more classes as well.You can add something like the following to your theme’s
style.css
file:div.img { padding-right: 3px; display: inline }
or anywhere in your post:
<style>div.img { padding-right: 3px; display: inline }</style>
Also, if you don’t want any formatting at all, you can use the
asis
attribute:<img src="https://flickr.com/2638_b.jpg" asis="true">
Forum: Plugins
In reply to: [Image Formatr] Its not working like before after updating to 1.0Schweizer, did the plugin work before in an older version, and now it doesn’t work in version 1.1? If that’s the case, I’m very interested in helping you find a solution.
Forum: Plugins
In reply to: [Image Formatr] Its not working like before after updating to 1.0Maybe the WordPress Visual Editor is doing something weird with the image, but it is working on my website. I would be willing to check out what is going on if you want to give me access to your admin.
Forum: Plugins
In reply to: [Image Formatr] Its not working like before after updating to 1.0Ok, so what does the html for this image look like in the browser when you use
asis
?Forum: Plugins
In reply to: [Image Formatr] Its not working like before after updating to 1.0Hi Schweiz,
asis
is working on my site with both version 1.0.1 and version 1.1, what version are you using? Could you provide a link to a your web site or the html from the image?Forum: Plugins
In reply to: [Image Formatr] Override linkThanks for the feedback.
You can make the caption link to a webpage with: link:
<img src="/images/asia/bangkok_1517.jpg" title="Licensed to soak" link="https://google.com"/>
or if you really want to disable the PrettyPhoto popup, you can make this Image Formatr plugin obey your anchor with the usemya attribute:
<a href="/images/asia/bangkok_1517.jpg" target="_blank"><img src="/images/asia/bangkok_1517.jpg" title="Licensed to soak" usemya="true"/></a>
Forum: Plugins
In reply to: [Image Formatr] Completely ruins all formatting in a postI just uploaded a patch that hopefully fixes the problem introduced in 1.0, please upgrade to 1.0.1 and if can please let me know if it works:
https://downloads.www.ads-software.com/plugin/image-formatr.latest-stable.zip
Forum: Plugins
In reply to: [Image Formatr] Its not working like before after updating to 1.0I just uploaded a patch that hopefully fixes the problem introduced in 1.0, please upgrade to 1.0.1 and if can please let me know if it works:
https://downloads.www.ads-software.com/plugin/image-formatr.latest-stable.zip
Forum: Plugins
In reply to: [Image Formatr] Completely ruins all formatting in a postThanks for the feedback. Did you upgrade or are you using this plugin for the first time? What plugin version and what WordPress version are you using? Can you give me a link you your site so I can check it out.
Forum: Plugins
In reply to: [Image Formatr] Its not working like before after updating to 1.0Thanks for the update, and I am currently checking a bug.
Check your Image Formatr admin settings under Main settings and make sure the checkbox is checked for:
Process page/post content
.Forum: Plugins
In reply to: [Image Formatr] Image positioningIt’s easy to change markup layout with CSS, something like this:
div.img {display: inline;}
A good place to add it might be your theme’s stylesheet:
You might try editing it with your theme-editor.
It’s a good request and I will try to add some layout options directly in my plugin, thanks for the tip, -steven
Forum: Plugins
In reply to: Postboxes not definedI moved my <script> code to the wp-footer action and now i don’t get the error, but my boxes don’t open/close when i click them. How can i get boxes to toggle open & closed when i click the title?
Forum: Plugins
In reply to: [Image Formatr] [Plugin: Image Formatr] IE 7-8 problemI’m glad it’s working, thanks for reporting the issue. The code has been fixed in development: https://downloads.www.ads-software.com/plugin/image-formatr.zip
Forum: Plugins
In reply to: [Image Formatr] [Plugin: Image Formatr] IE 7-8 problemHey bhupi, glad to donate code to WordPress users.
I found a bug in the default Highslide settings, there is an
extra comma in the JavaScript. After you install the plugin, with your web browser, go to the admin settings for image-formatr and look at the big box called “Highslide settings”. In that box changeuseControls: false,
to
useControls: false
Remove the comma from the end of the line and it should work fine in IE now. Please let me know if you are still having any problems and thanks for writing.
The code is near the beginning of the file class.admin.php and will be fixed in the next release of the plugin, 0.9.8.
Forum: Hacks
In reply to: Need description of add_settings_error functionI’m not really sure what goes in that function but Bob Chatman writes about it a little bit and there is a closed Trac ticket that declares the function as:
add_settings_error( $setting, $id, $message, $type = 'error' )
In my WordPress 3.1 wp-admin/includes/template.php @ line 3098:
/** * Register a settings error to be displayed to the user * * Part of the Settings API. Use this to show messages to users about settings validation * problems, missing settings or anything else. * * Settings errors should be added inside the $sanitize_callback function defined in * register_setting() for a given setting to give feedback about the submission. * * By default messages will show immediately after the submission that generated the error. * Additional calls to settings_errors() can be used to show errors even when the settings * page is first accessed. * * @global array $wp_settings_errors Storage array of errors registered during this pageload * * @param string $setting Slug title of the setting to which this error applies * @param string $code Slug-name to identify the error. Used as part of 'id' attribute in HTML output. * @param string $message The formatted message text to display to the user (will be shown inside styled <div> and <p>) * @param string $type The type of message it is, controls HTML class. Use 'error' or 'updated'. */ function add_settings_error( $setting, $code, $message, $type = 'error' ) { global $wp_settings_errors; if ( !isset($wp_settings_errors) ) $wp_settings_errors = array(); $new_error = array( 'setting' => $setting, 'code' => $code, 'message' => $message, 'type' => $type ); $wp_settings_errors[] = $new_error; }
The message comes up fine for me no matter what I put in for ‘setting’ or ‘code’ but I wish I could get the an error class attached to the table cell of the offending element.