First caveat, I am NOT a coder, I just copy and paste, and pjay with ideas I get from those who can. To wit, I came up with the following thoughts,, and am wondering if this can be used to create and store the variables needed to track multiple levels of "drip" content. Please let me know if it is on the right track, and if you iz a coder, please help with a finished product.
Putting the information into Wordpress ...
Level 1 Button
- Code: Select all
[s2Member-PayPal-Button ... custom="www.example.com|TIMESTAMP|%cv2%|%cv3%|%cv4%" /]
Level 2 Button
- Code: Select all
[s2Member-PayPal-Button ... custom="www.example.com|%cv1%|TIMESTAMP|%cv3%|%cv4%" /]
Level 3 Button
- Code: Select all
[s2Member-PayPal-Button ... custom="www.example.com|%cv1%|%cv2%|TIMESTAMP|%cv4%" /]
Level 4 Button
- Code: Select all
[s2Member-PayPal-Button ... custom="www.example.com|%cv1%|%cv2%|%cv3%|TIMESTAMP" /]
Getting the information from Wordpress ...
- Code: Select all
$custom = get_user_option("s2member_custom");
list($domain, $timestamp1, $timestamp2, $timestamp3, $timestamp4) = preg_split("/\|/", $custom);
if (($timestamp4 == "") && ($timestamp3 == "") && ($timestamp2 == ""))
{ echo $timestamp1;}
elseif (($timestamp4 == "") && ($timestamp3 == ""))
{ echo $timestamp1;
echo $timestamp2;}
elseif ($timestamp4 == "")
{ echo $timestamp1;
echo $timestamp2;
echo $timestamp3;}
else
{ echo $timestamp1;
echo $timestamp2;
echo $timestamp3;
echo $timestamp4;}