Home › Forums › John Potter
About: John Potter
Sorry, I've not written a description yet. I'll get to it soon!
Topics I'm Subscribed To
| Topic | Count | Last Reply |
|---|---|---|
|
Automatic Login Based on IP
1
2
By: |
voices: 4 replies: 26 |
|
|
Automatic Login by IP range
By: |
voices: 3 replies: 6 |
|
|
Authentication by IP?
By: |
voices: 4 replies: 8 |
|
|
Automatic Login Based on IP not working
By: |
voices: 3 replies: 10 |
|
|
Can I suppress single Java Script prompt?
By: |
voices: 4 replies: 6 |
|
|
custom fields not showing in Pro-Forms
By: |
voices: 4 replies: 7 |
|
|
How to edit JavaScript confirmation prompt?
By: |
voices: 3 replies: 7 |
Topics I've Started
| Topic | Count | Last Reply |
|---|---|---|
|
Automatic Login by IP range
By: |
voices: 3 replies: 6 |
|
|
Automatic Login Based on IP not working
By: |
voices: 3 replies: 10 |
|
|
Can I suppress single Java Script prompt?
By: |
voices: 4 replies: 6 |
|
|
How to edit JavaScript confirmation prompt?
By: |
voices: 3 replies: 7 |
My Latest Replies (From Various Topics)
| Author | Replies |
|---|---|
| Author | Replies |
| Posted: Tuesday May 28th, 2013 at 11:29 pm #50786 | |
|
|
|
|
We paid Ryan to write the plugin for us. I suggest if you offer to hire him for a few hours he is likely to respond very quickly, and be much more committed to solving your problem.
If they need access by IP, then completely manually (ie: by email and the WP admin “Add new user” screen).
We are only likely to have a few dozen customers in this category, but with thousands of potential users, all sharing the single username. The email address is meaningless for this ID. As far as I can see, there is no way for WordPress to distinguish these users from one another, so this is probably not going to work if social interaction is part of your site. Even a single IP address might have half a dozen users sharing a wi-fi network. Generally, each of our IP based clients has a librarian or similar who manages bulk access to publications, and this is the person we deal with. If a customer is prepared to pay many hundreds of dollars per year, a bit of inconvenient manual administration is worth accepting, in my view. |
|
| Posted: Tuesday May 28th, 2013 at 7:10 pm #50771 | |
|
|
|
Yes, that’s correct.
The script at the top of this page will only handle single IPs. You need Ryan’s plugin to use ranges.
You could use the theme file editor, but I wouldn’t recommend this. Better to edit functions.php locally with your normal text editor and upload via FTP, so you can quickly roll it back if a typo crashes the site. |
|
| Posted: Saturday May 25th, 2013 at 4:00 am #50621 | |
|
|
|
|
I think you might need to lower your expectations somewhat Chris. My client runs an academic journal; Universities, Government agencies and large corporates expect to be able to purchase a ‘site licence’, with unlimited access for their entire network. Our single “collective” ID is potentially used by hundreds or even thousands of users. It uses our only s2member level the same as the other paid members. We negotiate a fee for each organisation depending on how many users they might reasonably be expected to have, but there is no way I can see of actually limiting their use to numbers of seats or downloads, etc. Adding this kind of access by IP is not automatic; in fact there isn’t even a nice admin screen to update the data. If you (ie: anyone reading this) are not experienced with modifying the PHP in theme function files, this solution is probably not for you – crashing your site and locking yourself out of the admin is extremely easy if you make an error in this particular file. I’m just an s2member customer like you. I’m hoping that if enough people start asking for this feature, Jason (the lead developer of s2member) will get inspired to include it in the core, with a user friendly admin page. Then, what I really want, is that Quick Cache can be updated to ignore our list of IPs so I can turn it back on. |
|
| Posted: Tuesday May 21st, 2013 at 5:28 pm #50307 | |
|
|
|
|
I don’t think the plugin is available for download anywhere, so yes, you’ll have to email Ryan. You would use Ryan’s plugin instead of the hack on this page. The plugin allows for multiple:
|
|
| Posted: Tuesday May 21st, 2013 at 3:50 pm #50304 | |
|
|
|
|
The code above can only handle single IPs. Ryan Imel (ryan@aspiringindie.com) made us a plugin which can handle both multiple ranges and wildcards. |
|
| Posted: Tuesday May 21st, 2013 at 6:19 am #50283 | |
|
|
|
|
Hi Chris The array looks something like this when you have multiple IPs:
All users logged in this way will end up with a single ID, which you specify in the plugin code on line 8. You do need to create this ‘collective’ user and decide how much access they have to your site. Everything you need to make this work for single IPs is in Bruce’s instructions above. |
|
| Posted: Sunday Apr 7th, 2013 at 6:25 pm #46813 | |
|
|
|
|
My client badly needs this functionality, so I will follow up your suggestion above of getting a free-lance developer to quote on this if you guys aren’t interested. I’m thinking it would be so great to have a page in the s2member admin where allowed IPs, ranges of IPs and IPs with wildcards could be entered. If they could be labeled by institution as well, to make updating simple, that would be fantastic. And if Quick Cache could be then instructed to ignore those IPs all would be perfect. |
|
| Posted: Wednesday Apr 3rd, 2013 at 5:37 pm #46538 | |
|
|
|
|
My client might be prepared to contribute a small amount towards development costs. If anyone else reading this needs this function, please lobby s2member to get it moved up the priority list. I understand that both Joomla and Drupul have modules that allow auto-login by IP, but this not currently easy with WordPress. |
|
| Posted: Wednesday Apr 3rd, 2013 at 5:24 pm #46533 | |
|
|
|
|
Thanks for your quick response Bruce. Your suggestion confirms that this particular customization is beyond my abilities. If you guys offered this functionality as an add-on module or even a stand-alone plugin I’m sure many users would pay extra for it. |
|
| Posted: Wednesday Apr 3rd, 2013 at 2:35 am #46448 | |
|
|
|
|
NB: this hack does not work if you have Quick Cache activated. |
|
| Posted: Wednesday Nov 7th, 2012 at 11:54 pm #30995 | |
|
|
|
|
YES! It works now! Thank you very much for your help Bruce. It would be useful to others if you could update my original thread. |
|
| Posted: Wednesday Nov 7th, 2012 at 4:17 pm #30934 | |
|
|
|
|
Correction – “corporate” user does, in fact, get access to protected posts, but NOT to restricted downloads. My settings allow unlimited downloads for Level #2members. |
|
| Posted: Wednesday Nov 7th, 2012 at 4:05 pm #30933 | |
|
|
|
|
OK Raam, I’ve found the problem – when I turn off the Quick Cache plugin I am automatically logged in as “corporate” (using the id in the script). Unfortunately Quick Cache does not seem to have an option for configuring No-cache remote-address patterns. But even if I proceed without a cache I’m no further ahead – even though “corporate” is a s2Member Level #2 there is still no access to protected content – I am referred to the “Membership Options” page when I try. I also note there is no admin bar when logged in this way, and if I try to access wp-admin I am asked for a password. The login page has a message: FYI this login also does not by-pass the Maintenance Mode plugin (not an issue for me). Any further suggestions would be appreciated. |
|
| Posted: Monday Nov 5th, 2012 at 9:04 pm #30715 | |
|
|
|
|
I just checked now, and yes, $_SERVER[‘REMOTE_ADDR’] also reports my IP address correctly. |
|
| Posted: Sunday Nov 4th, 2012 at 11:31 pm #30616 | |
|
|
|
|
Hi Raam The complete line from the code that I tried at first was:
so you can see why I next tried the login: ‘corporate’. The traffic tracking service verifies that my reported IP is correct. |
|
| Posted: Friday Oct 5th, 2012 at 4:56 pm #27602 | |
|
|
|
|
I have a client who needs this feature as well. He runs a legal journal, and has found that big firms, institutions and libraries expect automatic login based on IP address. There is a plugin which claims to be able to do this, but the support forum for User Access Manager , which does not seem to be monitored by the plugin author, suggests that it only works with old versions of PHP and may also be broken in recent versions of WordPress. Is it possible to incorporate this into s2member? |
|
| Posted: Sunday Jul 15th, 2012 at 5:46 pm #19312 | |
|
|
|
|
Thank you for this Jason. I actually figured out a similar solution on my own, and came back here to document it:
|
|
| Posted: Wednesday Jul 11th, 2012 at 2:35 am #18878 | |
|
|
|
|
I’ve just spent a wasted hour trying to solve this myself! So it’s reassuring to find this. Perhaps a line of advice added to the Registration/Profile Fields & Options edit box might be helpful? |
|
| Posted: Sunday Jul 8th, 2012 at 7:28 pm #18630 | |
|
|
|
|
Hi Raam My s2-hacks.php file with the code above does not stop the pop-up. However I have followed the advice in a post by Jason and this does indeed disable all JavaScript confirmations.
If anyone finds a way of stopping or altering this single, redundant message without loosing the entire file-counting feature, I’d be much appreciated. |
|
| Posted: Sunday Jul 1st, 2012 at 9:48 pm #18051 | |
|
|
|
|
I appreciate the assistance guys. I’ve now got this in the plug-in:
But still no change :-( |
|
| Posted: Sunday Jul 1st, 2012 at 1:35 am #18005 | |
|
|
|
|
Thanks for the suggestion. I’ve uploaded a plugin here: /wp-content/mu-plugins/s2-contextual-translation.php
but the message is still there in the javascript prompt. |
|
| Posted: Thursday Jun 28th, 2012 at 3:09 am #17727 | |
|
|
|
|
I’ve found and deleted the text from s2member.pot , but it still appears in the pop-up. There is no cacheing installed yet. |
|








Pre-Sale FAQs
Video Tutorials
Community Forum
Knowledge Base
News/Updates
s2 Codex / Docs
GPL v2 License
Contact A Human
About Us
Our Customers
Support Policy
Privacy Policy
