Danno040
Forum Replies Created
-
Forum: Plugins
In reply to: [More Fields] More Fields 2.1 disables DFW button in Visual EditorIndeed. I see that in my fork, I didn’t pass the DFW argument to the wp_editor call. Once I changed that, the full screen button disappeared. I’m trying to find some documentation about what DFW actually needs in order to display correctly. Hopefully, we can get this fixed so everyone can use the WYSIWYG editor.
Would you mind posting an export of the field? I’ll try it on my WP install. It could be some setting is different between your setting and mine.
I can’t recreate this problem.
Are you using the latest version of WP? More Fields?
I’m not having that problem. You’re saying for every new “input box” you are getting another copy of the “Boxes created with More Fields or overridden from elsewhere.” text?
Forum: Plugins
In reply to: [More Fields] More Fields 2.1 disables DFW button in Visual EditorDid you mean ‘more-fields-settings-object.php’?
I was having an issue where TinyMCE was not loading at all for any my WYSIWYG fields. I actually rolled up my sleeves and updated More Fields to use wp_editor. If you want, you can check out my More Fields fork on GitHub.
I use More Fields in a bunch of WP installs, and had the same issue as you guys.
Having looked at the code, I’m surprised sdhunt ever got any files listed. Also, it saves the attachment ID because that is WAY more useful than the filename. If you have the attachment id you can use functions like wp_get_attachment_image to get the different sizes of images.
To prevent any plugin confusion, I make a fork of More Fields on GitHub.
Anyway, I think I fixed both File List and File List Thumb views. If you try my fork, please let me know what you think.
Forum: Plugins
In reply to: [More Fields] [Plugin: More Fields] Files and Files with ThumbnailsI use More Fields in a bunch of WP installs, and had the same issue as you.
Since it seems the developers have moved on, I decided to try my hand at fixing some of these bugs.
To prevent any plugin confusion, I make a fork of More Fields on GitHub.
Anyway, I think I fixed both File List and File List Thumb views. If you try my fork, please let me know what you think.
Well, I propose Base64 Encoding the string. That way any special characters will not break the import. Here’s a patch I put together, hopefully this helps you:
--- ../tags/2.1/more-plugins/more-plugins-admin.php 2012-03-07 15:51:01.000000000 -0700 +++ more-plugins/more-plugins-admin.php 2012-03-08 08:52:46.000000000 -0700 @@ -235,9 +235,9 @@ $k = $this->keys[1]; $a = str_replace('-', '_', $k); $f = $function . '_saved_' . $a; - $j = maybe_serialize($data); + $j = base64_encode( maybe_serialize($data) ); $export = "<?php \nadd_filter('$filter', '$f');\n"; - $export .= "function $f (\$d) {\$d['$k'] = maybe_unserialize('$j', true); return \$d; }\n?>"; + $export .= "function $f (\$d) {\$d['$k'] = maybe_unserialize( base64_decode('$j'), true); return \$d; }\n?>"; $filename = $a . '.php'; $dir = $this->dir . 'saved/';