youngmicroserf
Forum Replies Created
-
Forum: Plugins
In reply to: [Regenerate Thumbnails] [Plugin: Regenerate Thumbnails] Odd PHP when failingHey-
I have the same problem –
POST http://[SERVER]/wordpress/wp-admin/admin-ajax.php 200 OK 3.01s HeaderPostAntwort <br /> <b>Warning</b>: imagecreatefromstring() [<a href='function.imagecreatefromstring'>function.imagecreatefromstring</a>]: gd-jpeg: JPEG library reports unrecoverable error: in <b>[SERVER]/wordpress/wp-includes/media.php</b> on line <b>258</b><br /> <br /> <b>Warning</b>: imagecreatefromstring() [<a href='function.imagecreatefromstring'>function.imagecreatefromstring</a>]: Passed data is not in 'JPEG' format in <b>[SERVER]/wordpress/wp-includes/media.php</b> on line <b>258</b><br /> <br /> <b>Warning</b>: imagecreatefromstring() [<a href='function.imagecreatefromstring'>function.imagecreatefromstring</a>]: Couldn't create GD Image Stream out of Data in <b>[SERVER]/wordpress/wp-includes/media.php</b> on line <b>258</b><br /> {"success":""Oops." (ID 4623) was successfully resized in 2.180 seconds."}except that it wasn’t successfully resized…
Thanks for any help!
Forum: Plugins
In reply to: [Front-end Editor] selective editing of custom post fields?Thanks, Scribu!
Hey createwithtasha,
I had the same issue and solved it like this: There’s a bug in the conditional logic that will output the header code only if $class equals “activate” in the last of the iterations. This occurs because $class = ” is declared inside the outer foreach loop around line 65, right above the check the postpage/wherepage check that starts the inner content construction. I moved the $class-declaration before the outer foreach statement (around line 38), and it works perfectly.
Cool :). Speaking of post_thumbnails. The last release doesn’t save/insert the post_thumbnails in my installation, while earlier releases do. Will test the development version.
Hi,
I have a similar problem… first, I think that box should be checked by default rather than the other way around…
but also – here’s the similar problem: I have two videos on a page, one in a blog post and one in a text-widget. Now, on most pages both render fine, but on category pages, even with the box checked, only the shortcode of the post in the content area, not the widget, will be rendered.
It’s really strange… everything’s find on the main blog page, but if someone wants to see a category, the video disappears.
I’d be grateful for any help!
Hey Scribu –
You still have to double-click on each post element to edit it, instead of all at once, making it a sub-optimal workflow.
that is a fair point… in my case I suppose that may even be preferable. But for more general applications, I suppose you’re right. Would it be impossible in the current plugin logic to activate and save all FEE elements simultaneously?
Hey, if anyone is interested, I made a couple of changes to the code to get a value-unit datatype – that is turning a value-unit pair into an array when being saved into the options table and adding a form element to display and change the value-unit pair. Maybe there’s a better way to do it, but it works for me…
a) new form element ‘valueunit’ as new file ‘valueunit.php’ in [plugin_root]/functions/admin/
This file is displaying a simple combined element of input and select box. The two elements are then saved as variables with the valueunit-key and the respective suffix “_value” and “_unit”.
<?php if (!defined('OT_VERSION')) exit('No direct script access allowed'); /** * Input Option * **/ function option_tree_valueunit( $value, $settings, $int ) { ?> <div class="option option-valueunit"> <h3><?php echo htmlspecialchars_decode( $value->item_title ); ?></h3> <div class="section"> <div class="element"> <input type="text" name="<?php echo $value->item_id; ?>_value" id="<?php echo $value->item_id; ?>_value" value="<?php if ( isset($settings[$value->item_id]) ) { echo htmlspecialchars( stripslashes( $settings[$value->item_id[0]] ), ENT_QUOTES); } ?>" /> <div class="select_wrapper"> <select name="<?php echo $value->item_id; ?>_unit" class="select unit"> <?php echo '<option value="">-- Choose One --</option>'; $units = array( 'px' => 'px', '%' => '%', 'em' => 'em', 'pt' => 'pt' ); foreach ( $units as $unit ) { $selected = ''; if ( $settings[$value->item_id[1]] == trim( $unit ) ) { $selected = ' selected="selected"'; } echo '<option'.$selected.'>'.trim( $unit ).'</option>'; } ?> </select> </div> </div> <div class="description"> <?php echo htmlspecialchars_decode( $value->item_desc ); ?> </div> </div> </div> <?php }b) changes made to [plugin_root]/functions/functions_load.php ->
include the new form part. This is to load the new form part in the options panel.include( 'admin/valueunit.php' );at the appropriate position.
c) changes made to [plugin_root]/admin/settings.php ->
display the new option-type in the select box in the settings form.
Added a new array element in the types-array after ca. line 113.'valueunit' => 'ValueUnit',d) changes made to [plugin_root]/classes/class.admin.php -> function option_tree_array_save. Added an else-if condition checking for the new option type “valueunit” and then taking the value-unit pair sent and write it into an array using the single original key after ca. line 491.
else if ($value->item_type == "valueunit" ) { $key = trim( $value->item_id ); $tempkeys = array('_value', '_unit'); foreach ($tempkeys as $tempkey) { $value[]=$_REQUEST[$key.$tempkey]; } $new_settings[$key] = $value }Forum: Requests and Feedback
In reply to: What Should 2011 Hold for WordPress?Oh, a feature I forgot about:
media:
Create a simple microformat for CC/PD pictures and allow searching of public stock image databases from the media integration panel. Think – “oh I need an illustration for topic x…” Click on flickr or wikimedia commons, choose appropriate license and search, and get a list of images that fit the criteria. Choose download/embedding and click insert. There was a plugin like this (only less integrated) but it’s been disfunctional for ages (flickr manager).
Forum: Requests and Feedback
In reply to: What Should 2011 Hold for WordPress?One thing I haven’t read here but think would be really, really useful in the long run –
full integration of the BP x-profile BACKEND functionality in the WP core. I’ve been playing with Buddypress and WordPress member setups and it’s always annoyed me that there are two different locations in which member data is stored (particularly given the lack of information about how they are working / interact). Make that one extensible location, let BP use the WP member data instead of the other way around, as “syncronizing” currently requires.
As I see it, member data is core WP functionality.
Also
+1 KILL THE THICKBOX, use something faster, please
+1 on media handling, thumbnail cropping and regeneration from the backend
+1 fine if this is added by core plugins, but if so, users should have the opportunity to choose their included core plugins like on the jQuery site
+1 on conditional menus
+1 on post/page expiration
+1 on is_child (still…)
+1 on sql joins (wp_query doesn’t allow to use eg meta filters on more than one post type) – already in trac
+1 better general options panel
+1 make press this even better adding more one-click-posting functionality
+1 Core option to post to facebook/Twitter (I’m continously finding myself in the situation where I’m posting stuff on fb instead of my blog)
+1 work with facebook (who else…) on an option that allows external comments to be synchronized with fb comments via iframe, just like they propose with their comment box. It’s a good idea, but it needs to be the other way around, users on fb should have to agree to their comments being stored on the blog site. Their “the web is facebook” approach should make them receptive to this, in my opinion.Thanks Scribu!
Forum: Plugins
In reply to: [Breadcrumb NavXT] [Plugin: Breadcrumb NavXT] Item trail not linkedThanks,
that did the trick!
Forum: Plugins
In reply to: [Breadcrumb NavXT] [Plugin: Breadcrumb NavXT] Item trail not linkedThanks for your reply!
I looked at the output and this is what’s being output by 3.6.0 on the old server displaying a level two page –
<div class="breadcrumb"> <!-- Breadcrumb NavXT 3.6.0 --> <div class="breadcr bhome"> <a title="go to main" href="http://server.de/client/main">client main</a> </div> ยท <a title="Go to level one" href="http://server.de/client/main/level_one/">level one</a> ยท level two </div>and this is what’s being output on the same page on the new server by 3.5.1 using the exact same settings.
<div class="breadcrumb"> <!-- Breadcrumb NavXT 3.5.1 --> <div class="breadcr bhome"> <a title="go to main" href="http://server.de/client/main">client main</a> </div> ยท level one ยท level two </div>As you can see, the items are output, but level one is not wrapped in anchors. As I said I can make the current, level two, page linked by activating that option, but level one remains unlinked on a level two page regardless of what I do.
The dots in the code are “middots” – the separator character used in the breadcrumb.
Thanks for any tip!
Forum: Plugins
In reply to: [Simple Fields] [Plugin: Simple Fields] is possible to do this?It’s here –
http://ww.wp.xz.cn/extend/plugins/posts-to-posts
But use the development version 0.4, since Scribu has rewritten the connection mechanism in 0.4 (now using a table instead of meta values).
Great! Thanks for all the help!
Ha, yeah, thanks for pointing me there.
It was a problem with assigning the values to the filter. So now it works perfectly, this is working out very nicely, changes in the front are mirrored in the backend’s file selector ๐ But as for the JS – if I were to use another type than image, say
fieldTypes['sf_image_base'] = fieldTypes['base'].extend({...});for this so I could copy my modifications somewhere else – how would I hook the new JS into the plugin?