Hamid
My Latest Replies (From Various Topics)
Author | Replies |
---|---|
Author | Replies |
Posted: Sunday Oct 14th, 2012 at 1:42 pm #28385 | |
|
|
OK I think this one did it :) The modified working code is
|
|
Posted: Sunday Oct 14th, 2012 at 1:28 pm #28384 | |
|
|
Well not quite. The displayed message “Sorry, this page is restricted. You need a Plus subscription to access it.” appears whether the page’s access level is set to level 1 or level 2. What am I doing wrong? |
|
Posted: Sunday Oct 14th, 2012 at 1:21 pm #28383 | |
|
|
OK I think I got it to work but I’m not 100% about the syntax.
|
|
Posted: Wednesday Oct 10th, 2012 at 5:37 am #27967 | |
|
|
Hello Support and other s2member users, After reading up on other coding examples and the s2member documentation, I ended up using an alternate solution which I think is much better, less coding and the user won’t have to go through two step process to get to Paypal’s payment page. It also resolves a formatting issue I was having with the Paypal button, but that may be related to my theme. PREREQUISITE: If you offer an annual Level 1 membership and you want to automatically calculate the amount a user would have to pay to upgrade to an annual Level 2 membership. WHAT IT DOES: Calculates a Level 1 user’s PAID REGISTRATION DAYS which is then subtracted from 365 and then multiplied with the daily rate of that subscription. This figure is the user’s credit amount toward Level 2 subscription. The prorated rate (for upgrading to Level 2) is calculated by subtracting this credit amount from the Level 2 subscription fee. It shows the prorated fee to only Level 1 members. For free subscribers it shows a link for each of the paid subscriptions. WHERE IT GOES: You can place the code below in your members options page or a separate page that you members can call up.
NOTE: output=”url” if you want to use text instead of the Paypal image. I’m now working on including my own “Buy Now!” image instead of the text. Just thought to share just in case someone else was looking to do the same :) |
|
Posted: Tuesday Oct 9th, 2012 at 11:54 am #27902 | |
|
|
Please disregard last question, I got it. |
|
Posted: Tuesday Oct 9th, 2012 at 9:03 am #27890 | |
|
|
Update: Everything seems to work well using the above example and I was able to upgrade via Paypal. Thanks for the help :) I have a separate question: How do I actually display the number of S2MEMBER_CURRENT_USER_PAID_REGISTRATION_DAYS. What code would I use to display the actual number of days in a subscription? |
|
Posted: Tuesday Oct 9th, 2012 at 7:13 am #27885 | |
|
|
OK it works now. I had to turn off “Enable Button Encryption?” under the Paypal Options >> Paypal Account Details |
|
Posted: Tuesday Oct 9th, 2012 at 6:56 am #27878 | |
|
|
Hey Raam, here is the actual code in the member profile page contain the elseif statements
And here is the Paypal button short code in the member options page
|
|
Posted: Monday Oct 8th, 2012 at 11:45 pm #27842 | |
|
|
It all seems to work up until I click on the Paypal button. When redirected to Paypal, I get the following error:
|
|
Posted: Monday Oct 8th, 2012 at 2:49 pm #27821 | |
|
|
OK, it worked after setting the EOT date and changing the >=1 to >=0 What did you mean about changing the elseif to else? |
|
Posted: Monday Oct 8th, 2012 at 2:42 pm #27820 | |
|
|
Nope, didn’t work :( If I created a user via the dashboard and assigned them level 1, does it automatically assign them expiration date? And based on the code above, I will need to wait at least one day, correct? |
|
Posted: Monday Oct 8th, 2012 at 2:09 pm #27815 | |
|
|
Eduan, I see what you mean now with the content dripping part. Thanks. Would this be proper syntax then?
|
|
Posted: Monday Oct 8th, 2012 at 1:35 pm #27810 | |
|
|
Thanks Eduan for the tips… I’m getting ready to read up on the content dripping link you provided. My understanding of content dripping was offering content on a timed basis. I didn’t know you could offer upgrades with it though. Thanks again. |
|
Posted: Monday Oct 8th, 2012 at 11:58 am #27804 | |
|
|
Hello Simeon, did you ever get an answer. I was wondering the exact same thing using ccaps. I don’t think it is something that can be changed based on the different memberships one may offer but rather set globally to the membership “level”. I’m hoping they changed this in the next major release :) hint hint |
|
Posted: Sunday Sep 30th, 2012 at 4:55 am #27002 | |
|
|
I have include the javascript part here for anyone else trying to do this. Please keep in mind it’s very generic at the moment and only a starting point (to proceed you will need to get the proper billing data field ids).
|
|
Posted: Sunday Sep 30th, 2012 at 4:45 am #27001 | |
|
|
Raam, I worked out the javascript part to fill out the billing and custom fields. But I will have to wait until the next major release of s2member as I currently have a Paypal Advanced account (not Pro). |
|
Posted: Thursday Sep 27th, 2012 at 6:43 am #26668 | |
|
|
Thanks Raam, I’m working on it now. Will let you know what happens. |
|
Posted: Friday Sep 7th, 2012 at 10:56 am #24530 | |
|
|
Thanks Eduan, OK I see that now. So I would have to do it for each user via the dashboard. Is there a way to do it with a SQL statement? Something like “update cc with private where user id=1, 2, 3”. Sorry about the syntax, I don’t know SQL very well but couldn’t I run a query that updates all the userids that I would like to give the “private” custom capability to? |
|
Posted: Thursday Aug 2nd, 2012 at 6:52 am #20989 | |
|
|
OK, I found it. Please disregard the last question. It’s in the s2member login widget :) |
|
Posted: Thursday Aug 2nd, 2012 at 6:05 am #20986 | |
|
|
Thanks Raam I was able to edit the profile template :) On another note, I remember seeing an option where you could set the “Edit my profile” link to automatic or to another page (if I remember correctly), but I cant seem to find where that is now, even though I have gone through all of s2member options. After a user logs in, they can either click on “My account”, “Edit My Profile” or “Logout”. I would like to redirect the “Edit My Profile” link to a custom wordpress page (that has the profile shortcode embedded in it). Currently when you click on the link it brings up a pop-up window to http://www.domain.com/?s2member_profile=1. I would like to change it to my wordpress page (http://www.domain.com/edit-profile/) Thanks |
|
Posted: Sunday Jul 15th, 2012 at 3:55 am #19283 | |
|
|
Oh I forgot to add this. I’m not sure if this was an issue but in any case… 5.) The crossdomain.xml in my bucket was empty so I re-uploaded it with the following data:
|
|
Posted: Sunday Jul 15th, 2012 at 3:38 am #19282 | |
|
|
OK, I admit it. I’m an idiot!!! I finally got it to work, hurray :) Here is what I did. 1.) I entered 999999 in ALL the fields for “Basic Download Restrictions” even though I’m only using member level 0 and 1 (at the moment) I have supplied my modified example code for other to see. Please note, that you may not be able to edit your page after publishing it the first time due to the (raw) tags. When I edited the page after publishing it, it would break again, I believe because of the (raw) tags redoing its thing on the already modified code. Please Note: I used parenthesis () instead of brackets [] around the raw tag due to the posting restriction of this forum. If you use the code below, make sure to change the raw tags to include brackets (and not parenthesis as displayed below).
Thanks everyone… now on to the next |
|
Posted: Saturday Jul 14th, 2012 at 10:47 am #19255 | |
|
|
Issue Resolved with Cloudfront :) I’m not quite sure which of the two resolved it but… 1.) I deleted all my Amazon key pairs and recreated new keys. Now back to JWPlayer… still shows “JW Player® appears here.” I can access the player.swf if I point my browser to http://www.domain.com/jwplayer/ so Im not sure why it cant find it thru s2member/wordpress. |
|
Posted: Saturday Jul 14th, 2012 at 8:27 am #19245 | |
|
|
Hey Raam, Yes I allowed s2member to auto configure the distributions and it said it was set up correctly. The distros were created and I could see them via my AWS console. I have deleted and recreated the download and streaming distros a few time now, all with the same results :( I have deleted them again for now as I’m not sure what the problem could be, although I am able to download via my s3 bucket (as long as cloudfront isnt configured). Has anyone else seen this before? |
|
Posted: Saturday Jul 14th, 2012 at 12:44 am #19203 | |
|
|
Hello Bob, thanks for the suggestion. I’ve been trying to resolve s3 and cloudfront since I’ve installed s2member. I’m going nuts… I ended up reinstalling WordPress and s2member with very few plugins activated. Here are my results: If I only use s3 (without cloudfront), I am able to download my files using example shortcode and links such as:
The moment I add cloudfront, the above links all fail with the following error (even after creating new keys):
Anyone have any ideas why? P.S. JWPlayer still doesn’t work for me but will get to that later after resolving my Cloudfront issue. |