PriMoThemes — now s2Member® (official notice)
This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™
add_action('genesis_after_post_title','wpc_do_s2member_notify');
function wpc_do_s2member_notify(){
list($seeking, $file) = preg_split("/-/", $_GET["s2member_seeking"], 2);
if(is_page('membership-signup')){
set_transient('wpc_file_name', $file, 1800);
if($seeking === "file"){
?>
<p style="background-color:#ffffe0;padding:10px;border:1px solid #E6DB55;text-align:center;">In order to gain access to this free content, you must become a member. <a href="/wp-login.php?action=register"><u>Click here to register</u></a> and you will be automatically brought back to the free content you were trying to access. If you are an existing member, you can <a href="/wp-login.php"><u>login here</u></a>.</p>
<?php
}
}
if(is_page('login-welcome-page')){
?>
<p style="background-color:#ffffe0;padding:10px;border:1px solid #E6DB55;text-align:center;"><a href="/?s2member_file_download=<?php echo get_transient('wpc_file_name'); ?>">download your file now</a></p>
<?php
}
//delete_transient('wpc_file_name');
}
Users browsing this forum: No registered users and 1 guest