latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

About: Greg Romero

Sorry, I've not written a description yet. I'll get to it soon!


Topics I've Started

Viewing 3 topics - 1 through 3 (of 3 total)
Topic Count Last Reply
Membership Page

By:  Greg Romero in: Community Forum

voices: 3
replies: 7

4 years, 5 months ago  Eduan

Error. Please contact Support for assistance.

By:  Greg Romero in: Community Forum

voices: 2
replies: 5

4 years, 6 months ago  Raam Dev

SSL

By:  Greg Romero in: Community Forum

voices: 3
replies: 6

4 years, 6 months ago  Cristián Lávaque

Viewing 3 topics - 1 through 3 (of 3 total)

My Latest Replies (From Various Topics)

Viewing 12 replies - 1 through 12 (of 12 total)
Author Replies
Author Replies
Posted: Thursday Jul 26th, 2012 at 1:16 am #20279

Eduan,

Outstanding! How do you guys figure this stuff out? That worked perfectly.. Thanks!

Posted: Tuesday Jul 24th, 2012 at 5:55 pm #20104

Please disregard. This code below works, although there might be a better way. Thanks

<?php $_g = stripslashes_deep ($_GET);

if (isset ($_g["_s2member_seeking"]["post"]) ) : ?>

<?php  $post_id = esc_html ($_g["_s2member_seeking"]["post"]) ; 

$post_object = get_post( $post_id ); 
 ?>	<?php endif; ?>

	
	<?php if ( has_media_embed_1($post_object->ID) ) : ?>

		
			
			<?php do_action( 'get_teaser', $post_object->ID, absint( $video_width ),  absint( $video_height ) );	?>
			
			

<?php else : ?>
	  
	  	
 <?php echo get_the_post_thumbnail($post_object->ID, 'large' ); ?>	  	
		
	
	<?php endif; ?>
		
Posted: Tuesday Jul 24th, 2012 at 5:51 pm #20103

Philly, The way I have the code below works for the do_action. But when there is no “has_media_embed_1” in the post, the code wont show the thumbnail. Can anyone see any problems in my code? Thanks

<?php $_g = stripslashes_deep ($_GET);

if (isset ($_g["_s2member_seeking"]["post"]) ) : ?>

<?php  $post_id = esc_html ($_g["_s2member_seeking"]["post"]) ; 

$post_object = get_post( $post_id ); 
 
 ?>
	
<?php if ( has_media_embed_1($post_object->ID) ) : ?>

		
			
			
<?php do_action( 'get_teaser', $post_object->ID, absint( $video_width ),  absint( $video_height ) );	?>
			
			
<?php endif; ?>
	
<?php else : ?>
	  
	  	
 <?php echo get_the_post_thumbnail($post_object->ID, array(320,302)); ?>	  	
		
	
<?php endif; ?>
Posted: Tuesday Jul 24th, 2012 at 4:11 pm #20100

Thanks, let me look at that option

Posted: Sunday Jul 8th, 2012 at 11:01 am #18614

Thanks Raam, but I still get no results with that code.

Im trying to use the membership page to show my visitors a limited amount of content they intended to see. On this page, I will show them the title, exercpt, video and a thumbnail. Then the paypay form

What Im trying to do is tell s2member to display the video, if there is no video for that post, then show the featured image.

if video
show video (function has_media_embed)

elseif
show featured image

else
show default signup.jpg

Thanks

Posted: Saturday Jul 7th, 2012 at 12:56 pm #18563

Thanks, Im actually trying to show this function. I think were close.

<?php

$_g = stripslashes_deep ($_GET);


if (isset ($_g["_s2member_seeking"]["post"]) && has_media_embed()) {

	$post_id = esc_html ($_g["_s2member_seeking"]["post"]) ;
	
	$post_object = get_post( $post_id );

do_action( 'get_teaser', $post_object->ID, absint( $video_width ),  absint( $video_height ) );}
?>

More

add_action( 'get_teaser',       'ti_get_teaser', 10, 5 );

Function

function has_media_embed( $post_id = null ) {
	$post_id = ( null === $post_id ) ? get_the_ID() : $post_id;
	
	/* Get global values */
	global $media_embed_mb;
	
	/* Get media embed metabox options */
	$media_embed_mb->the_meta( $post_id ); 
	$media_source     = $media_embed_mb->get_the_value( 'media_source' );
	$media_embed_code = $media_embed_mb->get_the_value( 'media_embed_code' );
	
	$media_embed = ( $media_source || $media_embed_code ) ? true : false;
	
	return $media_embed;
}

Ill add later. Im clueless.on this, thanks for your help.

Posted: Friday Jul 6th, 2012 at 7:43 pm #18504

Hi, Thanks for the code. I used this to get the post_title.

<?php

$_g = stripslashes_deep ($_GET);


if (isset ($_g["_s2member_seeking"]["post"]))

	$post_id = esc_html ($_g["_s2member_seeking"]["post"]) ;
	
	$post_object = get_post( $post_id );

    echo $post_object->post_title;
	
?>

I would like to know how I could alter this code to check if the page is something like this:

<?php if ( is_singular() ) : ?>

or

if ( has_media_embed() ) : ?>

I need to pass these “ifs” to make my page work the way I need it to,.

Thanks!

  • This reply was modified 4 years, 6 months ago by  Greg Romero.
Posted: Friday Jun 29th, 2012 at 11:21 am #17861

Thanks!

Posted: Friday Jun 29th, 2012 at 11:20 am #17860

It seems I cant test Pro Forms with Sandbox. I get the error. Maybe, I need SSL to test also.

Thanks

Posted: Thursday Jun 28th, 2012 at 5:43 pm #17798

Thanks

Posted: Thursday Jun 28th, 2012 at 10:52 am #17763

Thanks Raam,

Heres the link. Please tell me what you think.

http://bmxskills.com/s2member-server-check-120526.php

Posted: Wednesday Jun 27th, 2012 at 4:22 pm #17693

Anyone have experience with this? I paid for this product and I cannot get it to work.

Viewing 12 replies - 1 through 12 (of 12 total)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.