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™
This example uses cv1 to record a special marketing campaign:
( The campaign ( i.e. christmas-promo ) could be referenced using %%cv1%% )
custom="scrapbookcampus.com|christmas-promo"
[s2Member-PayPal-Button level="1" ccaps="basic,forum" desc="Basic Scrap Course with PSP" ps="ScrapbookCampus" lc="" cc="USD" dg="0" ns="1" custom="my_domain|success-basic" ta="0" tp="0" tt="D" ra="1" rp="6" rt="M" rr="BN" rrt="" cv1="success-basic" rra="1" success="http://my_domain|cv1" image="http://my_domain/Images/buy-now-yellow.png" output="button" /]
[s2Member-PayPal-Button level="1" ccaps="element,forum" desc="Element Creation with PSP" ps="ScrapbookCampus" lc="" cc="USD" dg="0" ns="1" custom="my_domain|success-element" ta="0" tp="0" tt="D" ra="1" rp="6" rt="M" rr="BN" rrt="" cv1="success-element" rra="1" success="http://my_domain|cv1" image="http://my_domain/Images/buy-now-yellow.png" output="button" /]
Once your registation is completed, you can login and access your bonuses here:
http://my_domain/%%cv1%%
Thank you! You've been updated to:
Element Creation with PSP
Please log back in now.
http://my_domain/wp-login.php
cassel wrote:I think i got it (and if it works, it would be great!) but i would like you to confirm that i understand correctly (and applied it correctly too!).
cassel wrote:This is far from what i am working on now. Where is this "confirmation email" come from and why didn't i get the one i just set up?
What confirmation email panel are you editing? Could you copy the title and paste it here?
Congratulations! You officially registered for the %%item_name%%
Congratulations! ( your membership has been approved )
<?php
add_filter ("ws_plugin__s2member_modification_email_sbj", "my_s2_modification_sbj", 10, 2);
function my_s2_modification_sbj ($s2member_default_sbj, $vars = array ())
{
return "Thank you! Your account has been updated.";
}
add_filter ("ws_plugin__s2member_modification_email_msg", "my_s2_modification_msg", 10, 2);
function my_s2_modification_msg ($s2member_default_msg, $vars = array ())
{
return "Thank you! You've been updated to:\n" . $vars["paypal"]["item_name"] . "\n\nPlease log back in now:\n" . wp_login_url ();
}
?>
ws_plugin__s2member_signup_email_sbj
ws_plugin__s2member_signup_email_msg
ws_plugin__s2member_sp_email_sbj
ws_plugin__s2member_sp_email_msg
<?php
add_filter ("ws_plugin__s2member_signup_email_sbj", "my_s2_signup_sbj", 10, 2);
function my_s2_signup_sbj ($s2member_default_sbj, $vars = array ())
{
return "Congratulations ( your account has been approved )";
}
add_filter ("ws_plugin__s2member_signup_email_msg", "my_s2_signup_msg", 10, 2);
function my_s2_signup_msg ($s2member_default_msg, $vars = array ())
{
return "Thank you! You purchased:\n" . $vars["paypal"]["item_name"] . "\n\nPlease register now:\n" . add_query_arg("action", "register", wp_login_url ());
}
?>
- where is the information passed through to your Filter function inside the $vars array?
- the other filters you mention, are they files? if not where are they?
They could have different names, or you could combine all of your Hooks/Filters into a single file if you prefer. I just use s2-hacks.php as an example to go by. All that's important is that your PHP file(s) are inside this special directory for WordPress: /wp-content/mu-plugins/ These are (M)UST (U)SE plugins, which are loaded automatically, that's what you want.- the two file content you posted have the same name, going in the same directory, how come?
Users browsing this forum: No registered users and 2 guests