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 - 326 through 350 (of 644 total)
Author Replies
Author Replies
Posted: Friday Oct 26th, 2012 at 11:45 am #29805
cassel
Username: cassel

in the current configuration when things are set for say “level 2″ those things can only be seen by people on level 2 – I would like the folks that are on the higher levels to be able to see this as well.

By default, what is set for level 2 will be visible to level 3 and level 4 members, but will also be able to access level 1 and level 0 content. Is that what you are looking for?

Posted: Friday Oct 26th, 2012 at 8:43 am #29763
cassel
Username: cassel

Just as another way to think of this. If each video was associated with a ccap (video1, video2, etc), then you could probably use the conditionals to display what the customer has already purchased (provided that they are logged in). Something like this:

You already purchased:
[s2If current_user_can(access_s2member_ccap_video1)]
    - video 1 (with the name)
[/s2If]
[s2If current_user_can(access_s2member_ccap_video2)]
    - video 2 (with the name)
[/s2If]
[s2If current_user_can(access_s2member_ccap_video3)]
    - video 3 (with the name)
[/s2If]
[s2If current_user_can(access_s2member_ccap_video4)]
    - video 4 (with the name)
[/s2If]

So whatever the customer purchased would be displayed and the rest wont. I guess it is a different way to use ccaps instead of using them for protecting content. Would that work for your need?

Posted: Thursday Oct 25th, 2012 at 10:07 pm #29727
cassel
Username: cassel

Thank Ganaxis. I remember struggling with that a long time ago (like maybe last year). Maybe i just gave up and since i know that 99.9% of my customers are Paypal users, that it would not be a problem. However, if Raam or Cristian come over with a solution, i sure will implement it for the 0.1% of my customers.

Thanks for your patience, and let’s wish each other luck.

Posted: Thursday Oct 25th, 2012 at 8:15 pm #29720
cassel
Username: cassel

Can you try this one?
http://scrapbookcampus.com/element-creation-deluxe-checkout/

This is a recurring membership one. If i find one of my setups as what you need, then we can look at the similarities and differences.

Posted: Thursday Oct 25th, 2012 at 7:37 pm #29717
cassel
Username: cassel

Ganaxi, would you mind trying the pro-form on my site?
http://scrapbookcampus.com/basic-scrap-course-checkout/

Don’t complete the transaction but see if you get the same option when it sends you to the Paypal page.
I had issues also with the Express Checkout at one point that was or was not enabled (took me days to figure out it was). I generated that pro-form from s2M. If that works, it means that it s2M is probably working correctly in generating a form, and maybe the problem can be somewhere else?

Posted: Wednesday Oct 24th, 2012 at 3:38 pm #29581
cassel
Username: cassel

Good point. I`ll think about it. Maybe someone else can have another idea before i do.

Posted: Wednesday Oct 24th, 2012 at 3:28 pm #29576
cassel
Username: cassel

Could you create two different pro-forms, one for whoever, and available to all, and one, on a hidden page (not available in the navigation) and give the “special” link to the call center only?

Posted: Wednesday Oct 24th, 2012 at 2:58 pm #29566
cassel
Username: cassel

Sure you can.

[s2If is_user_logged_in()]
Put the video that is only to be accessible while logged in.
[/s2If]

[s2If !is_user_logged_in()]
Put a graphic or an indication of “please log in to view this video”
[/s2If]
Put the text outside the code so it is always viewable to everyone, logged in or not.

Posted: Wednesday Oct 24th, 2012 at 2:27 pm #29554
cassel
Username: cassel

Hum… maybe a tech support can find an explanation because i use that code extensively in my site without any problem. I have my videos on Amazon S3 through Easy Video Player 2 but that is what i do.

Here is an example: http://scrapbookcampus.com/webinars/woct2012/
If you are not logged in, you will see a sale pitck. If you are logged in, you will see the video.

Posted: Wednesday Oct 24th, 2012 at 1:57 pm #29541
cassel
Username: cassel

Check out your other thread where i posted the code you can use.

Posted: Wednesday Oct 24th, 2012 at 1:56 pm #29540
cassel
Username: cassel
[s2If is_user_logged_in()]
Put the video that is only to be accessible while logged in.
[/s2If]

Put the text outside the code so it is always viewable.

Hope it helps.
The conditionals are such a powerful feature of s2Member!

Posted: Wednesday Oct 24th, 2012 at 7:46 am #29499
cassel
Username: cassel

That is great news. Thanks for considering this feature.
Since for now, i can still manage those manually, although annoying, i can wait for that next release instead of requesting my programmer to do all the same work.

If you ever need a beta tester who uses CCAPS extensively, i can volunteer.

  • This reply was modified 4 years, 2 months ago by  cassel.
  • This reply was modified 4 years, 2 months ago by  cassel.
Posted: Wednesday Oct 24th, 2012 at 7:44 am #29497
cassel
Username: cassel

Other than that, was the code ok? Since the 72 hours error is not the only problem and other members upgrade yet get charged instead of just changing their subscription on the next payment OR get charged for the OLD subscription anyways in addition to the new one i am wondering if something was wrong with the code. Unless, as you say, it is a limitation of the Express Checkout API that causes all those issues?

Posted: Tuesday Oct 23rd, 2012 at 2:17 pm #29438
cassel
Username: cassel

Yes, i did generate the button from there, but i edited the button graphic and added the “special code” for the timestamp. The rest was left as provided by the button generator.

The 72 hours error was reported by at least 3 customers who tried to upgrade.

Posted: Monday Oct 22nd, 2012 at 3:58 pm #29327
cassel
Username: cassel

I already got a problem with EVERY customer who tried to upgrade:
– either they cannot because it is within that 72 hour period before the next payment
– either it works but charging the customer for a NEW payment, even if the previous payment was the same day (today, both payments went through within 10 minutes)
– the upgraded payment goes through without cancelling the previous rate which still goes through on the due date.

Maybe my code is wrong? Could you check?

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
 <input type="hidden" name="business" value="admin@digiscrapcampus.com" />
 <input type="hidden" name="cmd" value="_xclick-subscriptions" />
 <!-- Instant Payment Notification & Return Page Details -->
 <input type="hidden" name="notify_url" value="http://scrapbookcampus.com/?s2member_paypal_notify=1" />
 <input type="hidden" name="cancel_return" value="http://scrapbookcampus.com/" />
 <input type="hidden" name="return" value="http://scrapbookcampus.com/?s2member_paypal_return=1" />
 <input type="hidden" name="rm" value="2" />
 <!-- Configures Basic Checkout Fields -->
 <input type="hidden" name="lc" value="" />
 <input type="hidden" name="no_shipping" value="1" />
 <input type="hidden" name="no_note" value="1" />
 <input type="hidden" name="custom" value="scrapbookcampus.com" />
 <input type="hidden" name="currency_code" value="USD" />
 <input type="hidden" name="page_style" value="paypal" />
 <input type="hidden" name="charset" value="utf-8" />
 <input type="hidden" name="item_name" value="Element Creation Tutorial - GOLD" />
 <input type="hidden" name="item_number" value="1:wm<?php echo 
date('Ym'); ?>,element,forum" />
 <!-- Configures s2Member's Unique Invoice ID/Code  -->
 <input type="hidden" name="invoice" value="<?php echo S2MEMBER_VALUE_FOR_PP_INV(); ?>" />
 <!-- Identifies/Updates An Existing User/Member ( when/if applicable )  -->
 <input type="hidden" name="on0" value="<?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_ON0; ?>" />
 <input type="hidden" name="os0" value="<?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_OS0; ?>" />
 <!-- Identifies The Customer's IP Address For Tracking -->
 <input type="hidden" name="on1" value="<?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_ON1; ?>" />
 <input type="hidden" name="os1" value="<?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_OS1; ?>" />
 <!-- Controls Modify Behavior At PayPal® Checkout -->
 <input type="hidden" name="modify" value="1" />
 <!-- Customizes Prices, Payments & Billing Cycle -->
 <!--<input type="hidden" name="amount" value="15" />-->
 <input type="hidden" name="src" value="1" />
 <input type="hidden" name="srt" value="" />
 <input type="hidden" name="sra" value="1" />
 <!--<input type="hidden" name="a1" value="0" />-->
 <!--<input type="hidden" name="p1" value="0" />-->
 <!--<input type="hidden" name="t1" value="D" />-->
 <input type="hidden" name="a3" value="15" />
 <input type="hidden" name="p3" value="1" />
 <input type="hidden" name="t3" value="M" />
 <!-- Displays The PayPal® Image Button -->
 <input type="image" src="http://scrapbookcampus.com/Images/BuyNow-01-200.png" style="width:auto; height:auto; border:0;" />
</form>

The wm is the code used (with a hack) to determine the starting date of the upgrade so the member will only get access to the future classes, even with the same ccaps (that is what the programmer calls his “secret code”) and it does work in changing the ccaps, AND used with a conditional, grants access to the sections the member is supposed to. The rest of the code was generated by s2M.

And here is a screenshot:

  • This reply was modified 4 years, 2 months ago by  cassel.
  • This reply was modified 4 years, 2 months ago by  cassel.
Posted: Monday Oct 22nd, 2012 at 9:56 am #29260
cassel
Username: cassel

Meaning the s2-hacks.php file?

Posted: Sunday Oct 21st, 2012 at 5:19 pm #29219
cassel
Username: cassel

I didn’t bother with the timezone as i figured out the time is based on the server’s timezone. I just have to make the conversion and it is only 2 hours. No biggie. I also added a date condition, so it will only display on the specific days, while i can configure it earlier :)

For anyone interested, here is the code:

<?php
if (date('H') == 12 && date("Ymd") == 20121021) {
  echo 'This will show at noon on the Nov 21st, 2012';
}
?>

Interestingly, the next day, the time seems to be based on GMT instead (3 hours later) while yesterday it was displaying the server time (2 hours earlier). Just odd!

  • This reply was modified 4 years, 2 months ago by  cassel.
Posted: Sunday Oct 21st, 2012 at 5:07 pm #29218
cassel
Username: cassel

I got the code but i am not sure where i should put the function. You mention putting it in the /mu-plugins/ but do i add that to the s2-hacks.php file or create a new file? I am convinced i had to do something like that last year, but it is way to far back to remember.

Just a little pointer?

Posted: Sunday Oct 21st, 2012 at 10:42 am #29208
cassel
Username: cassel

Ok i got my syntax fixed. Next question: how do i know that the time that i set is for the correct time zone? If i make a tutorial to appear at 10am my time, will it appear at 10am YOUR time if you are somewhere else? Either way is fine, but i would like to know.

Posted: Saturday Oct 20th, 2012 at 6:33 pm #29182
cassel
Username: cassel

Protecting one page is totally possible. You would just have to require a Level 0 to view it, otherwise, the visitor would be sent to the Membership option page that you can configure as you wish. You can also use conditionals so if the user is not logged in (meaning not registered), you can post a little message like “If you already registered, please log in to access the content of this page. Otherwise, click here to register” and you can send them to the registration page.

There is no way the plugin can know if the not-logged-in visitor has already registered or not, so a message like that will let them know that they should visit your site logged in, to access those resources.

Hope it helps.

Posted: Saturday Oct 20th, 2012 at 4:29 pm #29177
cassel
Username: cassel

I am using s2Member and a hack i had coded by my programmer. You can read a little bit about the hack here:
http://krumch.com/2012/09/03/s2member-hack-custom-ccaps/
You can contact the programmer to see how it can be added to your installation.
As far as a cart, i am not using one so i would be of no help on that.

I hope it helps a little.

Posted: Saturday Oct 20th, 2012 at 10:59 am #29150
cassel
Username: cassel

Dont laugh at me, my php syntax is poor, and i DID forget the <?php part *shakes head* I knew i was missing something!

However, i get this error:
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 3

Posted: Saturday Oct 20th, 2012 at 9:59 am #29145
cassel
Username: cassel

Nope, it still displays the text of the code. :(

Posted: Saturday Oct 20th, 2012 at 6:55 am #29116
cassel
Username: cassel

Oh, that might be good. Better study now.
Thanks.

———–

Ok i tried this:
if (date(‘H’) > 7) && (date(‘H’) < 8) {
it is now between 7 and 8
}

and i only get the actual text of the code to appear and not what it is supposed to. What did i miss?

  • This reply was modified 4 years, 2 months ago by  cassel.
Posted: Friday Oct 19th, 2012 at 10:33 pm #29093
cassel
Username: cassel

So what specific information should i look at or what part should i post?

Another issue that has come up twice so far is that some members say they cannot upgrade as they get a message from Paypal that it is too close to the next payment. One even got the message that it was within 72 hours of her next payment. That seems kind of an annoyance if they have to upgrade more than 3 days before.

  • This reply was modified 4 years, 2 months ago by  cassel.
Viewing 25 replies - 326 through 350 (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.