Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Simple:Press Login Component Not Working
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jul 11, 2016 - 8:16 pm

Nope... afraid not currently possible without a lot of extra programming..  never had a request to use the WP login form but route the request through a different login processor than WP...

doable, but needs a little love hooking into the wp process...

Avatar
Jessica Lopez
Member
sp_UserOfflineSmall Offline
Jul 12, 2016 - 10:56 am

Thank you for taking the time to understand my goals and figure out the best available option.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jul 12, 2016 - 11:45 am

I plan to intro this in the next update all being well.

I recall (from a long, long time ago) that the thinking was that if someone had their own login system then they would also probably have their own login button/link - like in a menu or sidebar. But we can do this.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Jessica Lopez
Member
sp_UserOfflineSmall Offline
Jul 12, 2016 - 1:57 pm

Might it work if I try replacing the simple:press login form with our own? So the Login button would expand to display our login form in place. 

If this sounds like a good approach, could you please direct me to the appropriate place in the code? 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jul 12, 2016 - 3:43 pm

Personally wouldn't recommend it but it can be done if you really want to take a swing at it...

Our login form source code is at simple-press/forum/content/forms/sp-form-login.php

This could be replaced completely by using a standard WordPress filter named:

'sph_LoginForm'

This filter has two parameters. The first is the html already created which your code would replace. The second is the array of control values which you can find at the top of the template you have edited where it says: IN-LINE LOGIN FORM - OBJECT DEFINITION.

So - do you know how to code up WP style filters? If so that might be all you need.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Carol Johnson
Rookie
sp_UserOfflineSmall Offline
Aug 11, 2016 - 6:36 pm

Okay that worked. Now when they login instead of the code taking them to myurl.wp-login.php it now takes them to the member login already established before installing Simple-Press.  That is what I want. But - How do I get the person logging into the member area via the forum to be redirected to the forum url? Now, when they log in they go instead to the pre-existing member area.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 11, 2016 - 6:46 pm

If your login procedures no longer use the built in WP functions then redirecting is almost certainly going to need to be done by the member/login plugin. ask if they have a redirect option that can be applied.

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626