vdugar
Forum Replies Created
-
Thanks Gabriel for looking into this. I especially like your plugin as it allows content restriction in the free version.
PS — Same result without ‘/home’ in the in the redirect_url.
No worries, we just got distracted here on the FL east coast by Isaias. Turned out to be a kitten, not a cat(1) here. Much worse up the coast.
So, yes, the login and redirect works from a /my-login/ page that has the shortcode
[wppb-login redirect_url="https://makephotomemories.com" logout_redirect_url="https://makephotomemories.com/logout-msg" lostpassword_url="/recover-password"]But only the login works from a Popup Maker popup with shortcode
[wppb-login redirect_url="https://makephotomemories.com/home" logout_redirect_url="https://makephotomemories.com/logout-msg"]— user gets logged in but stays on the page that is viewed when the menu item that calls the popup is used.
The logout redirect works with both login methods.
— Vince D
PS — The network trace shows a lot of . . ./wp-content/bower_components/. . . 404 errors. I don’t know what bower_components is. There is no bower_components dir in the wp-content dir (nor above it) on my server.
Partial success! Good call, Gabriel, on the quote marks. I am using the standard (“) double-quote marks but was **missing one** at the end of the redirect_url in the shortcode on the /my-login/ page! (see above) I’m a retired programmer (C, Java, JavaScript) and know you can stare at code all day and miss stuff. Sorry for the rabbit chase.
I’m not done, however, as the same shortcode in a popup form (Popup Maker plugin) logs-in but does not redirect. If I can’t get that to work, I can live with the page login.
TLDR. . .
My site is still not live (“Restrict site access to visitors who are logged in or allowed by IP address”) and I thought for sure that was the problem (the network trace in Chrome DevTools showed a 403 error when accessing the redirect (home) page). I was “sure” because as soon as I opened up access (“Discourage search engines from indexing this site”) it started working (oh, that was the missing quote — by why the 403?). BUT then it **continued** to work after going back to restricted access. Hmmm.I know that caching can fool the debug process (at the host, at CloudFlare, and at the browser) — so I clear all caches when it makes sense.
I’ll see what I can do to debug the popup approach. Thanks again. -V
- This reply was modified 5 years, 11 months ago by vdugar.
Been busy but back now. Let me see if I can figure out how to do the sub-dir install and give it a shot. In the meantime, I did another deactivate of all plugins except profile-builder (it’s quick to do with the WordPress CLI and lists) — and I enabled the twenty twenty theme. But no cigar — got same result.
please delete this post (I can’t figure out how).
Am learning markdown formatting (problem with backticks)!- This reply was modified 5 years, 11 months ago by vdugar.
- This reply was modified 5 years, 11 months ago by vdugar.
- This reply was modified 5 years, 11 months ago by vdugar.
- This reply was modified 5 years, 11 months ago by vdugar.
- This reply was modified 5 years, 11 months ago by vdugar.
- This reply was modified 5 years, 11 months ago by vdugar.
I just deactivated all plugins except profile-builder and got the same result (login redirect not going to redirect_url in the shortcode). Then I changed theme from GeneratePress to Astra and that did not help. I guess I can try the Twenty Twenty theme but haven’t yet.
Note that this is what appears in Chrome URL bar after login…
https://makephotomemories.com/my-login/?request_form_location=pageTo quickly disable plugins it’s cool to use the WordPress CLI (command line interface) which is pre-loaded on my SiteGround shared host via SSH.
Example:
Create a list of enabled plugins and write it to a file…
$ wp plugin list –status=active –format=csv –field=name >> wp_plugins_active.txt
Use the list to deactivate the plugins…
$ wp plugin deactivatecat wp_plugins_active.txtThen you can quickly re-enable plugins with the same list…
$ wp plugin activatecat wp_plugins_active.txt– Vince
Your question made me think a bit more, and I thought this might be the problem… I’m using the “WPS Hide Login” plugin which claims “The wp-admin directory and wp-login.php page become inaccessible”. You use it to create a custom login URL. However, I just disabled it (without removing it) and the problem remains. Back to the drawing board.
- This reply was modified 5 years, 11 months ago by vdugar.
Gabriel, I will get back to this (debug) soon, but to answer your question, the login stays on the front-end — on the same ‘/my-login’ page where the shortcode lives. I can give you access via the ‘Temporary Login Without Password’ plugin if you wish — I’d need your email address. Or can wait till I get back to this, hopefully tomorrow.
Turning off some plugins — no luck yet. So strange that the login works and the logout redirect — just not the login redirect.
Thank you, but why would a login form try to redirect to an outside URL? Of course it’s not. I’ve tried combinations of
http:// -- https:// -- https://www… and none of them redirect from my login page. If I get this to work, I’ll go back to trying it in a popup form. BUT the logout_redirect_url works! Again, here’s the login page shortcode[wppb-login redirect_url="https://makephotomemories.com logout_redirect_url="https://makephotomemories.com/logout-msg"]The site is not live yet so the links won’t work for you.
I also triedredirect_url="https://makephotomemories.com/home"which is valid.- This reply was modified 5 years, 11 months ago by vdugar.
Thanks. I tried the shortcode on a “my-login” page (no popup) and it doesn’t work there either. Theme is GeneratePress. Same result with Astra theme. Bummer.
Forum: Plugins
In reply to: [Accept Stripe Payments] CSS Changes not WorkingThank you mbrsolution, but that article addresses Customizing the Payment Popup — not the form produced by the shortcode. So my question remains.
[UPDATE] Ah, just figured it out! The HTML selectors are quite different (for the same apparent page element) depending on the view . . .For example, when viewing the product PREVIEW (“View Product” after an update), the Product Description selector is “.asp_post_description”
— but when viewing via the SHORTLINK the selector is “.asp_product_desctiption”Mystery solved!
Forum: Plugins
In reply to: [Accept Stripe Payments] Can’t change product download URLThank you Alexander. Indeed, indeed the caches are doing their thing and I guess there’s no way around that. I’ll be back looking at this probably tomorrow. Busy day!
– V