|
|
|
|
|
I’ve been reading s2Member > API Scripting > Simple / Shortcode Conditionals and want to confirm my understanding.
If I want Levels 1-4 to have access to a restricted block of text or content, and also want myself as administrator to be able to see the content on the page when viewed through my administrator account, then the code I would use is:
[s2If current_user_is(s2member_level1) OR current_user_is(s2member_level2) OR current_user_is(s2member_level3) current_user_is(s2member_level4) OR OR current_user_is(administrator)]
Some text
[/s2If]
Or is there a simpler code to accomplish that?
|
|
|
|
|
|
That is helpful, thank you.
|
|
I was able to add
<a href="<?php bp_loggedinuser_link() ?>">Edit My Profile</a>
to the Additional XHTML/PHP Code area, and the link I added works fine, but I’d like to keep it a bit simpler than that if possible by just adding something into the Edit Profile field…
|
|
Okay, I installed a clean copy of WPMU, installed s2Member Pro, installed the Annotum Themes, tested both, they worked, then installed the Capability Manager Enhanced plugin, and it still worked.
s2Member is not the problem, it’s another plugin.
Thanks
|
|
Well, this is certainly frustrating.
After several attempts I was able to correct the problem on the domain that inspired this new trouble report, so because the problem was so regular I thought it might be more helpful if I begin setting up two domains I’m not currently using so that they could be used as a testing environment.
My intent was to do the WPMU install on one domain, get the problem, and then give you access to that cpanel and dashboard so you guys could take a look at it firsthand.
Then I would also give you a domain that only has the cpanel and no content at all, so you guys would be able to test the wpmu install first hand on the server….
But the problem is that I am now unable to duplicate the problem, again.
I performed two separate wpmu installs, one including the plugins the host provider includes in the installation (wp super cache), and a completely clean installation without any plugins.
Now, like the previous time I tried to duplicate the problem, I’m unable to duplicate it.
I was able to correct the problem on the domain that inspired this follow-up thread, so if you still think that providing you access to it would be helpful then I will on your request. Just reply saying to do so and I’ll provide details through the private contact form.
I wish to apologize for not being able to duplicate the problem. It seems to be happening randomly, which suggests it is more likely a problem with my server farting during the installation process of s2member.
|
|
This happens when I attempt to do a subdomain install.
When I make a subdirectory install, the formatting is fine.
When I attempt subdomain install, I lose the CSS formatting.
I have even done a clean s2member install, having first deleted all plugins from the server, installed WPMU with subdomains, installed s2member through the automatic WP Plugin installation, and I still lose the CSS formatting.
|
|
Since posting the above I have been unable to duplicate the problem. If it appears again, I will provide the requested information.
|
|
I can duplicate it with WPMU.
Using HostGator, when a domain is set to have subdomains using an asterisk (wildcard) before the .domainame.com and WPMU is installed for subdomains, then s2Member runs without the formatting.
When subdomains are removed and WPMU is installed for subdirectories, the formatting works fine and it appears as it should.
|
|
Well, for what it’s worth, I’ve made two clean installs of WP that only run s2Member. One install is on a basic domain and runs the normal WP, while the other allows for subdomains to be installed and runs WP MU. A wildcard is assigned to the subdomains.
The image in the original post is on the subdomain enabled WP MU.
The image below is the normal WP:

|
|
I can be considered a High Level user of WP and s2member, meaning I’m not a programmer, so please take my comment with a grain of salt… but I have found Courseware to be buggy. Last October or so I tried running Courseware and had numerous problems with CSS, and there were security problems as well. It seems that even with s2member installed, something that was supposed to be secured still got through the cracks. I don’t believe that the failure was on the part of s2member, but rather Courseware.
Courseware also seemed to open up the site to receive comments, even when those comments were completely deactivated. Deactivated through the individual pages and posts, and within Dashboard > Settings > Discussion.
Courseware proved to be too much maintenance for me, so I conceded and went with Moodle.
Moodle is overly complex, but it’s secure compared to Courseware. And Moodle is updated on a very regular basis.
|
|
When I experienced the problem it was on v130213 — it appeared in the Dashboard but not the Membership Options page. Since the original report, v130214 was released and applied, and now the badge appears everywhere I expect it to appear.
I am unable to duplicate the problem.
Thank you for looking into this matter.
|
|
Hi Jason. Thanks for the diligence and exceptional customer support in this matter.
> Please post a reference to this User (i.e. a Transaction ID, or something we can use to backtrace this particular case in your logs and we’ll report back on this for you).
I manually created a user account for this individual, so the website did not create any transaction numbers. The customer e-mailed me the notices they received from PayPal, which includes an Automatic Payment ID. Is that the number to provide? If so, I will e-mail it privately.
> Therefore, it is always possible (though unlikely) that a paying customer would either choose not to register after checkout
That may very well be the case… I’m afraid many of the members that this site attracts are “computer-impaired” (apologies if that’s offensive to any, but I’m having to make instructional videos that demonstrate how to create a gmail address….).
I have re-created buttons using PayPal Pro Buy Now and published them onto the Membership Options page.
I would like to keep Enable Logging Routines set to Yes until a few customers join under the new PayPal Pro buttons that I created.
Thanks,
Buck
|
|
Okay, I’ve enabled Logging. My site is extremely low traffic at this time, so it may be a couple weeks before any new transactions are made. Also, I did not use the PayPal Pro button creator. It was PayPal (Subscriptions) One Time (for one year, non-recurring).
Thanks
|
|
It seems this may have happened to my latest user… but with one additional twist. I created the button as non-recurring annual payment, but the registering user was processed as a recurring annual user. I know this because I received an e-mail from Paypal indicating the recurring annual subscription was cancelled.
And to support the original post, the paying subscriber does not appear in my database, at all. I’m running Multisite (not offering blogs) and have checked both User areas, and the user is not present.
This is the first time I have experienced this problem, and the only difference between the last user and this one was the recent upgrade.
|
|
Hi Duncan.
That’s the plugin I was leaning towards using, thank you very much for your feedback.
|
|
The latest version of s2member has corrected the problem.
Solved.
Thanks!
|
|
No, the user did not appear in the Dashboard, however I was able to correct the problem with the plugin:
User Activation Keys.
Thank you.
|
|
The customer sent me the registration e-mail. When I followed the Click Here to register link created by the system, I got a series of error messages like this:
Warning: Cannot modify header information- headers already sent by (output started at /path-to/index.php(l): eval()’d code:3) in
/path-to/wp-content/plugins/s2member/includes/classes/register-in.inc.php on line 64
And then more of the same only through line 69.
That series of error messages flashes for less than a moment (I had to be quick with my fingers to get a screen-print of it) and then lands on my site with a message stating “Registration Disabled”.
|
|
|
|
Hi Bruce, thank you. That lead works for me and is useful.
Thanks
|
|
I think you are right. I need to research the Custom Capabilities a bit more, too.
Thanks for your time, it’s appreciated.
Have a great day.
|