Dripping By Member Level
Posted: October 27th, 2010, 4:06 pm
As I have found that the method s2 discusses for "drip" content, principally refers to "dripping" from the users original registration date, with one exception, Jason's tip at viewtopic.php?f=4&t=602#p2620 led me to wondering if his solution could be used to solve the problem of tracking multiple levels of "drip" content.
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
Level 2 Button
Level 3 Button
Level 4 Button
Getting the information from Wordpress ...
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;}