Forum Replies Created

Viewing 10 Topics - 1 through 10 (of 10 total)
Author Posts
June 24, 2014 at 3:30 pm in reply to: Link 'Thumb' on User Dashboard to Post Attachment 22372
Ben Ben

Hi There,

No problem, and thanks for the quick reply. Basically, there are a number of different CPTs which are collected on a user’s dashboard. One of those are ‘Project Documentation’ where the user uploads a document and a small description. What I was looking to do was to link the post’s permalink directly to the post’s attachment, rather than to the post itself, or the attachment page. I realise this can be done in wordpress normally but this plugin is so good it’s taken over a lot of the site’s functionality :).

Here’s a link to a screenshot which might help illustrate things better. https://www.dropbox.com/s/hrc61a90eqf5hct/My_Media_-_AHRC_Modulate_Site.png

April 2, 2014 at 4:15 pm in reply to: Editing Users Posts 17851
Ben Ben

Brilliant, thanks. It seems that you can only edit through the front end but that’s no problem at all.

Thanks again

April 1, 2014 at 3:24 pm in reply to: Editing Users Posts 17783
Ben Ben

Hi Mahi,

Sorted now. Apologies,

Ben

March 31, 2014 at 9:53 pm in reply to: Editing Users Posts 17684
Ben Ben

Hi Mahi,

Any news on this?

Thanks

Ben

March 3, 2014 at 6:58 pm in reply to: Editing Users Posts 16109
Ben Ben This reply has been marked as private.
February 28, 2014 at 5:05 pm in reply to: Editing Users Posts 15947
Ben Ben This reply has been marked as private.
October 18, 2013 at 9:31 pm in reply to: JW Player and WPUFP 9187
Ben Ben

Thanks Tareq,

It’s not done the trick, I think there might be some conflicting stuff in the loop section above. It’s using the custom post type ‘resource’.

Any idea what the problem might be?


<?php get_header(); ?>

<?php // Let's get the data we need
	$recording_date = get_post_meta( $post->ID, 'recording_date', true );
	$recording_length = get_post_meta( $post->ID, 'recording_length', true );
	$resource_presenters = get_the_term_list( $post->ID, 'presenters', '', ', ', '' );
	$resource_topics = get_the_term_list( $post->ID, 'topics', '', ', ', '' );
	$url = wp_get_attachment_url( $video_id );
	$resource_video = new WP_Query( // Start a new query for our videos
	array(
		'post_parent' => $post->ID, // Get data from the current post
		'post_type' => 'attachment', // Only bring back attachments
		'post_mime_type' => 'video', // Only bring back attachments that are videos
		'posts_per_page' => '1', // Show us the first result
		'post_status' => 'inherit', // Attachments require "inherit" or "all"
		)
	);
	$video_id = get_post_meta( $post->ID, 'your_video_meta', true );
	$url = wp_get_attachment_url( $video_id );

?>

I really appreciate the support, when we get this sorted please could you point me to your preferred link for me to rate and review.

Kind regards,

Ben

October 18, 2013 at 8:47 pm in reply to: JW Player and WPUFP 9182
Ben Ben

I’m really sorry but I cant get this one to work with the meta, would you be able to give a more complete example based on the code I provided?

Thanks again, your help is much appreciated.

Ben

October 16, 2013 at 5:06 pm in reply to: JW Player and WPUFP 9070
Ben Ben

Sorry, code truncated, full version here:

				<?php while ( $resource_video->have_posts() ) : $resource_video->the_post(); // Check for our video ?>
					<div id="player">
						<script type="text/javascript" src="<?php bloginfo('stylesheet_directory'); ?>/jw/jwplayer.js"></script>
						<div id="mediaspace">Video player loads here.</div>
						<script type="text/javascript">
						    jwplayer("mediaspace").setup({
						        flashplayer: '<?php bloginfo( 'stylesheet_directory' ); ?>/jw/player.swf',
						        file: '<?php echo $post->guid; ?>',
						        width: 640,
						        height: 360
						    });
						</script>
					</div>
				<?php endwhile; ?>
October 16, 2013 at 4:59 pm in reply to: JW Player and WPUFP 9069
Ben Ben

Hi There,

Thanks for the reply. I tried this but I dont think it’s working. Here’s the code I’m using to call the video in the template, would you be able to suggest how I change it?

It was working perfectly with the free plugin.

Thanks
B

have_posts() ) : $resource_video->the_post(); // Check for our video ?>

Video player loads here.

Viewing 10 Topics - 1 through 10 (of 10 total)