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.

cassel


My Latest Replies (From Various Topics)

Viewing 25 replies - 251 through 275 (of 644 total)
Author Replies
Author Replies
Posted: Thursday Nov 29th, 2012 at 5:45 pm #32951
cassel
Username: cassel

Yes, that would work, but initially, you didn’t even need to use the different levels. If you use ccaps, you can use only the level 1 for everything. That way, you dont have to worry about which level to set the ccaps when you have multiples of them.

Posted: Tuesday Nov 27th, 2012 at 3:48 pm #32741
cassel
Username: cassel

Maybe something to suggest for a new version? I might not be the only one who could use that.

Posted: Tuesday Nov 27th, 2012 at 11:12 am #32709
cassel
Username: cassel

Checked with my developper and it seems that the theme does not allow such code to work. Any other way to have a php code for a Pro-form instead of a shortcode?

Posted: Monday Nov 26th, 2012 at 8:00 pm #32651
cassel
Username: cassel

Yes, that is exactly the way it works and would meet your needs. And if you want one member to access TWO sections, then you grant the user both ccaps. It is that easy.

Posted: Monday Nov 26th, 2012 at 8:23 am #32586
cassel
Username: cassel

INterestingly, i got the exact same error message, so i’ll see if something is brought up in this thread. In my case, the transaction at Paypal completed, but the ccaps were not added (and the customer stated that she WAS logged in when she clicked the button), so i just added the ccaps manually, but in case it happens again, i’ll follow this thread.

Posted: Saturday Nov 24th, 2012 at 8:05 pm #32506
cassel
Username: cassel

I tried replacing this:
$my_ccaps= ‘wm’ . date(‘Ym’) . ‘,element,forum’;

by just this:
$my_ccaps= ‘element,forum’;

and i still get the error, so it is not in the function itself that the problem lies.

Posted: Saturday Nov 24th, 2012 at 8:01 pm #32504
cassel
Username: cassel

I added the ‘); at the end, but i get the exact same error.

Posted: Saturday Nov 24th, 2012 at 7:57 pm #32502
cassel
Username: cassel

How about this complete code:

<?php
	$my_ccaps= 'wm' . date('Ym') . ',element,forum';
	echo do_shortcode('[s2Member-Pro-PayPal-Form modify="1" level="1" ccaps="'. $my_ccaps . '" desc="Element Creation Tutorial - GOLD" ps="paypal" lc="" cc="USD" dg="0" ns="1" custom="scrapbookcampus.com" ta="0" tp="0" tt="D" ra="15" rp="1" rt="M" rr="1" rrt="" rra="2" accept="paypal" accept_via_paypal="paypal" coupon="" accept_coupons="0" default_country_code="" captcha="0" /]
?>
Posted: Saturday Nov 24th, 2012 at 7:54 pm #32499
cassel
Username: cassel

Here:

Parse error: syntax error, unexpected T_STRING in /home/creas1/public_html/scrapbookcampus.com/wp-content/themes/headway-2013/library/core/functions.php(90) : eval()’d code on line 142

  • This reply was modified 4 years, 1 month ago by  cassel.
Posted: Saturday Nov 24th, 2012 at 7:46 pm #32497
cassel
Username: cassel

I still get the same error message with the T_STRING while copying your code.

Posted: Saturday Nov 24th, 2012 at 7:43 pm #32495
cassel
Username: cassel

Are those periods and spaces supposed to be there??

Posted: Saturday Nov 24th, 2012 at 3:48 am #32462
cassel
Username: cassel

The simplest way i know is to pretend they want to log in, and click “Lost your password?” and that will lead to the steps needed to reset a new password.

Posted: Wednesday Nov 21st, 2012 at 8:57 pm #32298
cassel
Username: cassel

It seems a bit complex, but maybe you can look at the Ccap clock timer hack that does set a code based on the time of transaction. You might want to look at this post:
http://www.s2member.com/forums/topic/ccap-clock-timer-perfect-for-magazines/

Maybe once the “timer” is set, you can use that ccap further down?

Posted: Wednesday Nov 21st, 2012 at 2:41 pm #32268
cassel
Username: cassel

At this point, the hack is not automatically synched with MC. I have not asked my developper for it because in my case, i have a small enough number of members that i can manually enter the date i need for content dripping. I also have emails sent weekly based on the date of the start. I enter the date manually for now (but that synch is on the to do list for the developper) so you could do the same in the mean time and enter the start of the course at whatever date you want. Since you dont need to be exact on the date of the registration (you can enter the date of January 5th to all the new registrants until then, so you can enter that manually once a week and it wont affect the start of the course)

There is also a plugin he developed to synch MC and s2M so that anyone making changes to email in MC will get the same changes in s2M.
http://krumch.com/2012/08/24/kc-bidirectional-integration-of-s2member-with-mailchimp/

If my explanation seems complicated, it is not. Just ask and i will re-explain it, no problem!

Posted: Tuesday Nov 20th, 2012 at 6:43 pm #32169
cassel
Username: cassel

You need YOUR payments to stop or your members’ payments?

Posted: Tuesday Nov 20th, 2012 at 1:14 pm #32117
cassel
Username: cassel

No danger. The hack is just something you would have to copy. It has all the instructions. I am not a coder either and i can use it. The hack is set in a different file that would not be overwritten by any upgrade, and the ccap is used just like any other ccap in s2M.

My explanation might sound complicated, but it really isn’t! I swear!

Posted: Tuesday Nov 20th, 2012 at 11:54 am #32109
cassel
Username: cassel

There is a hack that my developer coded and it is called Ccap Drip Timer. In that particular code, it will drip the content based on the time of transaction (instead of the time of registration, which can differ). The complete hack includes a snippet that will set a timestamp to the transaction, but you can probably emulate that and instead of using the timestamp at the time of transaction, you can assign a set ccap that will be the first day of the course. That way, if the course starts on January 5, then you would assign the “timestamp” as if the member made the transaction on that day (so everyone registering until then would have the same “timestamp”) and the dripped content would only start on that day.

Then, if you take on registrations for the next course starting on March 10, as soon as the January course starts, you change the “timestamp” to the one for March 10, and so on.

There is a little bit more information on this post:
http://www.s2member.com/forums/topic/ccap-drip-timer-drip-multiple-courses/
This will also allow you to drip content on several courses simultaneously, even if they are all on Level 1.

Posted: Monday Nov 19th, 2012 at 7:39 pm #32031
cassel
Username: cassel

I dont mind. You can check it out here: http://scrapbookcampus.com
If you have any specific question, do not hesitate to ask.

Posted: Monday Nov 19th, 2012 at 7:33 pm #32029
cassel
Username: cassel

Yes on all the counts.
Using ccaps would be the way to go. You can assign a ccap of “set1” for the first set, then “set2”, “set3” and so on.
You can also have the links protected by conditional, something like this:

[s2If current_user_can(access_s2member_ccap_set1)]
    Link to video 1
    Link to video 2
    Link to video 3
[/s2If]
[s2If current_user_can(access_s2member_ccap_set2)]
    Link to video 4
    Link to video 5
    Link to video 6
[/s2If]

And you can protect the pages with ccaps or conditionals. I tend to prefer the conditionals because you can then keep the visitor on the page they are trying to access, in case they accessed it from some way. Something like this:

[s2If current_user_can(access_s2member_ccap_set1)]
    Video 1
    Video 2
    Video3
[/s2If]
[s2If !current_user_can(access_s2member_ccap_set1)]
    Oops, it looks like you reached this page by mistake. If you know you are supposed to access these videos, you probably forgot to log in. If you have not already registered for XYZ, you can purchase a registration at ....
[/s2If]

I have a whole site based on multible ccaps to protect videos for courses. Ccaps are pretty powerful!

Posted: Friday Nov 16th, 2012 at 7:41 pm #31855
cassel
Username: cassel

I am not 100% sure that s2Member can do it. I had a similar situation and i needed a preview to change every week based on the content dripping. I needed image 1 to display for the first week, image 2, on the second week, etc. but i needed that to be based on when the member registered for my course, so member A might see image 1 while Member B would see image 2, at the same time if they registered at different time.

Well, since i could not get s2Member to do something else i needed to do (drip content based on transaction time and not registration time, which in my case, was often different), i had a programmer code a hack that allows you to use a specific shortcode to do it.

You can get the information on that hack that is called Ccap Drip Timer, here:
http://www.s2member.com/forums/topic/ccap-drip-timer-drip-multiple-courses/

Posted: Friday Nov 16th, 2012 at 7:31 pm #31849
cassel
Username: cassel

If you have an installment plan button, I assume they’re paying a fixed number of payments for a specific duration of access. You simply configure the Item ID appropriately.

I guess that is where it fails because i wanted to offer either one large price or broken in 3 installment payments, but the access is NOT limited to the duration of the payment as it is somehow a Buy now situation. Buy now for $120 or in 3 easy monthly payment of $40 (like those infommercials).

Thanks anyways.

Posted: Friday Nov 16th, 2012 at 3:36 pm #31816
cassel
Username: cassel

Some simple stats could help although it is a bit cumbersome. I am using StatCounter, which is free and i can see what each user (based on IP) has downloaded. You might want to look at that. The price is right!

Posted: Friday Nov 16th, 2012 at 3:33 pm #31814
cassel
Username: cassel

You can probably add a condition around that “time code”.
For example, you can sell access to an event that you would call “Event1” (and you associate a Custom capability (ccaps) called “Event1”). Then, you can wrap the code similar to what i used, inside a conditional so the code might look like this:

<?php if(current_user_can("access_s2member_ccap_Event1")){ ?>
<?php if (date("Ymd") == 20121130){ ?>
         This is content will appear on NOv 30th, 2012
    <?php if (date('H') => 12) && (date('H') < 16){ ?>
         placing the event here, it will be accessible starting at 12 noon, until 4pm
    <?php } ?>
<?php } ?>
<?php } ?>

Then, i think it is a matter of playing with those variables. This means that s2Member will check if the member has the ccap called “Event1” and if so, on the set date and time, the event will be accessible. Outside those conditions, the member wont get anything.

Does that make sense?

Posted: Friday Nov 16th, 2012 at 2:32 pm #31804
cassel
Username: cassel

If you post your questions in here, you might get the answers you need as many members are quite “expert” (others are just power users) but still helpful.

Posted: Friday Nov 16th, 2012 at 2:22 pm #31799
cassel
Username: cassel

Also, would this entail configuring s2 for each possible time that link is available?

I would imagine so as the content will be inside the specific code.

Here is part of the code i used:

<?php if (date("Ymd") == 20121103){ ?>
         This is content that appeared only on Nov 3rd, 2012
    <?php if (date('H') == 0){ ?>
        code for the embedded video for 12 minight
    <?php } else if (date('H') == 1){ ?>
        code for the embedded video for 1 am
    <?php } else if (date('H') == 2){ ?>
        code for the embedded video for 2 am
    <?php } else if (date('H') == 3){ ?>
        code for the embedded video for 3 am
    <?php } ?>
<?php } ?>  

I had something like that for each hour over 2 days, and i had a video embedded for each hour. Then, when it turned to Nov 5th, i had a simple message saying “Oops, you missed it”. I am not very advanced in coding and php, so someone else might use this as a start and give you more specific information, or you can use this if it is enough for you need.

Viewing 25 replies - 251 through 275 (of 644 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.