Home › Forums › David Welch
David Welch
My Latest Replies (From Various Topics)
Author | Replies |
---|---|
Author | Replies |
Posted: Sunday Dec 29th, 2013 at 4:21 pm #62238 | |
|
|
Meg, If you want, I can take a look at it and see if I can find why it’s not working. info {at} itelves.com Dave |
|
Posted: Sunday Dec 29th, 2013 at 4:21 pm #62237 | |
|
|
Mike, no problem, contact me via email and I can take a look at it. info {at} itelves.com Dave |
|
Posted: Saturday Dec 28th, 2013 at 6:04 pm #62216 | |
|
|
You would need to have some php function to handle this I think. I would use something like this: You may need to create this file / directory: wp-content/mu-plugins/s2-hacks.php
I just threw this together real fast without testing it, but that’s the basic idea. Then you would use this around your protected content:
Hope that helps, Dave |
|
Posted: Saturday Dec 28th, 2013 at 4:10 pm #62208 | |
|
|
Remove the “exit;” from the code and see if that works. It’s working for me that way. Dave |
|
Posted: Saturday Dec 28th, 2013 at 12:10 pm #62204 | |
|
|
Try changing the code I offered to use custom capabilities instead of member levels… something like this:
Dave |
|
Posted: Saturday Dec 28th, 2013 at 12:05 pm #62203 | |
|
|
If it’s loading information into your form, then you are not logged out. You need to be logged out completely to test registration forms. You could also pull up a different browser to test if you want to stay logged in during testing. Dave |
|
Posted: Saturday Dec 28th, 2013 at 12:04 pm #62202 | |
|
|
Maybe I’m just talking to myself in circles but it seems like this is functioning correctly… If open registration is turned off, then it should give you a message instead of the registration form. So, it sounds like it’s doing what it should. Can you explain how you expect / want it to work? It may just be an issue of s2member not working like you thought it would. You can probably make it work the way you want though, it’s very flexible if you know what you are doing. Dave |
|
Posted: Saturday Dec 28th, 2013 at 12:01 pm #62201 | |
|
|
I think this is the video that’s closest to what you are looking for: http://www.s2member.com/videos/716DC24E7E347DC2/ Dave |
|
Posted: Saturday Dec 28th, 2013 at 11:59 am #62200 | |
|
|
I think there is a video about this somewhere, but here is a link to a brief description: http://www.s2member.com/kb/customizing-your-lwp/#special-redirection-dynamics Dave |
|
Posted: Saturday Dec 28th, 2013 at 11:57 am #62199 | |
|
|
S2Member has 100’s of “hooks” all throughout their code. A Hook is basically a function that looks for “extra” code written by other plugins or hack files to run at certain points. For example:
So, by using the standard wordpress action hook process, you can add / change functionality of other plugins without messing with the source code, but rather by hooking into it where necessary (and allowed). This will get you started learning about hooks: http://codex.wordpress.org/Plugin_API/Action_Reference CCAPs was just an abbreviation of Custom Capabilities. Dave |
|
Posted: Wednesday Dec 25th, 2013 at 3:53 pm #62131 | |
|
|
Are those three access types using the s2member user levels or custom capabilities? You may need to set up a hook to parse more information about the user and redirect accordingly. You can do this by creating the following file/directory: wp-content/mu-plugins/s2-hacks.php
This *should* allow you to specify the redirections. Set the login url to yoursite.com/?dw_redirect=special Let me know if that doesn’t work. Dave |
|
Posted: Tuesday Dec 24th, 2013 at 10:34 am #62123 | |
|
|
How are you linking to it / integrating it? Dave |
|
Posted: Tuesday Dec 24th, 2013 at 10:33 am #62122 | |
|
|
Are you talking about the back end account profile form or a page that you’ve created with the s2member profile shortcode. If you are expecting to go to the back end, check the settings: General Options -> Member Profile Modifications -> Redirect Members away from the Default Profile Panel? That will allow or dissallow back end profile access. Hope that helps, Dave |
|
Posted: Tuesday Dec 24th, 2013 at 10:29 am #62121 | |
|
|
Without going into detail about how you have it all set up, I would suggest adding a custom capability that is auto generated when the button is loaded. You may have to create your own button shortcode to add it. Then, use one of the processing hooks or however you have it set up for downloading and check for the correct ccap. That’s very general but I hope it points you in the right direction. Dave |
|
Posted: Tuesday Dec 24th, 2013 at 10:25 am #62120 | |
|
|
The only other options would be to use the Pro version so you can use one of the other integrated payment options or have someone build one custom for you. (which will cost more than buying the pro version) Dave |
|
Posted: Tuesday Dec 24th, 2013 at 10:23 am #62119 | |
|
|
Basically, S2member is protecting you from changing your adminstrator to a lesser S2Member account type. This would prevent you from being able to access your administrative functions. :) So, either log out when testing or log in as another “lower” user to test. Hope that helps. Dave |
|
Posted: Tuesday Dec 24th, 2013 at 10:19 am #62118 | |
|
|
Does the paypal button work with the open registration turned off? What is the shorcode you are using on your “registration” page? Dave |
|
Posted: Tuesday Dec 24th, 2013 at 10:10 am #62117 | |
|
|
There will probably be some extra coding involved in this. However, S2member lets you add a “login url” instead of using a standard page. You can use _GET variables in the url to add a custom redirect hook. That’s very general so if you need more info just post. However, that’s probably the way you will need to go. Dave |
|
Posted: Wednesday Dec 11th, 2013 at 11:12 pm #61864 | |
|
|
Try including the sub directory like this:
Dave
|
|
Posted: Wednesday Dec 11th, 2013 at 8:56 pm #61857 | |
|
|
Awesome! |
|
Posted: Wednesday Dec 11th, 2013 at 8:56 pm #61856 | |
|
|
What is the direct url to those files? Where do you have them stored? |
|
Posted: Wednesday Dec 11th, 2013 at 8:38 pm #61853 | |
|
|
It doesn’t list any file or line number, just the error? Dave |
|
Posted: Wednesday Dec 11th, 2013 at 8:32 pm #61852 | |
|
|
Really, it’s just whatever you want it to be… So, if I want Bob to only have access to specific pages I might add the custom capability “bob” or if he likes popcorn I might use “popcorn”. It’s 100% your choice as long as the user’s capabilities match the page/post capability. Does that make sense? Do you see where to add it for users and where to add it for posts/pages? Dave |
|
Posted: Wednesday Dec 11th, 2013 at 8:30 pm #61850 | |
|
|
What does your code look like? |
|
Posted: Wednesday Dec 11th, 2013 at 8:28 pm #61849 | |
|
|
NOTE: if you are trying to play the file right there instead of downloading it, you might have to add inline=”yes” to get it to work like this:
I don’t use downloads much so I’m not 100% sure how this works. lol :) Dave |