applegateian
Forum Replies Created
-
Forum: Plugins
In reply to: Hide missing image icon for Tim ThumbWorks perfectly – thanks!!!
Forum: Plugins
In reply to: Hide missing image icon for Tim ThumbHi guys
This isn’t actually related to Tim Thumb script I guess. I’ve now changed this to include a lightbox on clicking on any image, so the original image is used too in the lightbox.
As I’m using custom fields to show the 7 images, but not all are mandatory, there is likely to be (a) a broken image icon on the page for any missing images and (b) a broken lightbox experience where the missing images are.
I found this post but I am not sure how to use this solution:
Here is my code for each image:
<a href="<?php the_field('featuredimage' ); ?>" rel="lightbox" title="<?php the_field('featured_image_description'); ?>"><img src="<?php echo get_option('siteurl') ?>/wp-content/themes/reverie/scripts/timthumb.php?src=<?php the_field('featuredimage' ); ?>&w=607&zc=1" alt="Post Image" class="postimgthumb" /></a>Forum: Plugins
In reply to: [Author Spotlight (Widget)] Integrating with Buddypress Xprofile fieldsOK sounds great, when is the next release?
Forum: Fixing WordPress
In reply to: Advanced Custom Fields – match title to post title & slugUpdate – found this on stackoverflow, but doesn’t work so far, any ideas welcome
http://wordpress.stackexchange.com/questions/61148/change-slug-with-custom-field
Any thoughts on this one?
Forum: Plugins
In reply to: [WP Help] Create help docs outside viewable admin?Did you solve this?
I’ve given up. Been asking for 6 months so I am now using ACF http://www.advancedcustomfields.com/ plugin and styling the backend for users. It’s a lot easier.
Hi Lowerpower
You could share what you did without giving away your project, that would help alot of people
Thanks,
Ian
Ok I moved that, cleared cache, still the same – code for the whole section is here – thanks:
function scripts() { global $post; if ( $post->ID == 286 || has_shortcode( 'wpuf_addpost' ) || has_shortcode( 'wpuf_edit' ) || has_shortcode( 'wpuf_dashboard' ) ) { $max_file_size = intval( wpuf_get_option( 'attachment_max_size' ) ) * 1024; $max_upload = intval( wpuf_get_option( 'attachment_num' ) ); $attachment_enabled = wpuf_get_option( 'allow_attachment' ); wp_enqueue_script( 'jquery' ); if ( $post->ID == 286 || has_shortcode( 'wpuf_addpost' ) || has_shortcode( 'wpuf_edit' ) ) { wp_enqueue_script( 'plupload-handlers' ); } wp_enqueue_script( 'jquery-ui-sortable' ); wp_enqueue_script( 'wpuf_attachment', plugins_url( 'js/attachment.js', dirname( __FILE__ ) ), array('jquery') ); wp_localize_script( 'wpuf_attachment', 'wpuf_attachment', array( 'nonce' => wp_create_nonce( 'wpuf_attachment' ), 'number' => $max_upload, 'attachment_enabled' => ($attachment_enabled == 'yes') ? true : false, 'plupload' => array( 'runtimes' => 'html5,silverlight,flash,html4', 'browse_button' => 'wpuf-attachment-upload-pickfiles', 'container' => 'wpuf-attachment-upload-container', 'file_data_name' => 'wpuf_attachment_file', 'max_file_size' => $max_file_size . 'b', 'url' => admin_url( 'admin-ajax.php' ) . '?action=wpuf_attach_upload&nonce=' . wp_create_nonce( 'wpuf_audio_track' ), 'flash_swf_url' => includes_url( 'js/plupload/plupload.flash.swf' ), 'silverlight_xap_url' => includes_url( 'js/plupload/plupload.silverlight.xap' ), 'filters' => array(array('title' => __( 'Allowed Files' ), 'extensions' => '*')), 'multipart' => true, 'urlstream_upload' => true, )Hi a.blok
I have tried what you suggested, didn’t work unfortunately.
Any ideas?
function scripts() { if ( $post->ID == 286 || has_shortcode( 'wpuf_addpost' ) || has_shortcode( 'wpuf_edit' ) || has_shortcode( 'wpuf_dashboard' ) ) { $max_file_size = intval( wpuf_get_option( 'attachment_max_size' ) ) * 1024; $max_upload = intval( wpuf_get_option( 'attachment_num' ) ); $attachment_enabled = wpuf_get_option( 'allow_attachment' ); global $post; wp_enqueue_script( 'jquery' ); if ( $post->ID == 286 || has_shortcode( 'wpuf_addpost' ) || has_shortcode( 'wpuf_edit' ) ) { wp_enqueue_script( 'plupload-handlers' ); }Bump…hoping for a resolution.
PS I updated jQuery to the latest version in my theme.
I think this is the same as my issue:
http://wordpress.org/support/topic/plugin-wp-user-frontend-cannot-upload-any-images
Was it resolved?
I’m having the same issue.