YAPB Admin form fix for WP2.5
March 15th, 2008 | Published in Notebook | 2 Comments
I’m still working on the fix to display the images in the post listing fields on the admin page, but this is to make it display correctly when adding a post.
The file you’ll need to replace the code in is located at:
wp-content/yet-another-photoblog/tpl/edit_form_advanced_field_fileupload.tpl.php
- <!-- This fieldset gets rendered if we have an image attached to the post: Replace -->
- <div id="yapb_div_imageuploader" class="postbox">
- <div class="inside" style="height: 80px;">
- <img src="<?php echo $this->image->getThumbnailHref(array('h=80','fltr[]=usm|30|3|3')) ?>" height="80" alt="" style="float:right; margin-right 10px;height:80px;padding:3px;border: 1px solid #CCCCCC">
- <input type="file" name="yapb_imageupload" size="30" tabindex="1" value="" id="imageupload" style="background-color:white;" /><br>
- </div>
- </div>
- <!-- This fieldset gets rendered if we have no image attached to the post: Upload -->
- <div id="yapb_div_imageuploader" class="postbox">
- <div class="inside">
- <input type="file" id="yapb_imageupload" name="yapb_imageupload" size="30" tabindex="1" value="" id="imageupload" style="background-color:white;" onChange="toggleCategory(true);" /><input class="button" type="button" value="<?php _e('clear field', 'yapb') ?>" onClick="$('yapb_imageupload').value='';toggleCategory(false);" /><br />
- </div>
- </div>
Download plaintext version




March 16th, 2008at 9:38 am(#)
Thanks, testing it now.
March 18th, 2008at 8:10 am(#)
Excellent! I am hoping to upgrade to 2.5 pretty soon after it comes out (barring any major bugs, of course) and YAPB was the one plugin holding me back!