willpom
Forum Replies Created
-
Hi Marcus.
Yes I did. With just Login with Ajax activated it still displays the error.Yes I’m just adding a function for said functionality.
Login with Ajax gives the option to redirect by user not by specific URLs.
I wanted all logins by users from the pages with the LWA widget to refresh at the same URL.
But not when they were logging in, usually after a password reset, from …/wp-login.php where instead of them being redirected by LWA back to …/wp-login.php I wanted them to go to the home page.
Snippets is just a plugin where you can add bits PHP code and keep them organised. This is the method recommended by Marcus’ other project team – Events Manager to modify the functionality of that plugin. The function doesn’t have to rely on any LWA code.
Exactly as you note, if you added it to the LWA plugin code every time it updated you’d loose you custom code.I have just solved this for myself. I didn’t want a redirect from the plugin on event pages but did for password resets and logins from …/wp-login.php
Spent a good few hours trawling and cobbled this together and it works great. Added it to Snippets.function my_login_redirect( $redirect_to, $request, $user ) { if($host = "https://www.mysite.co.uk/wp-login.php") { $redirect_to = home_url(); return $redirect_to; } } add_filter( 'login_redirect', 'my_login_redirect', 10, 3 );
Forum: Plugins
In reply to: [Extensions for Leaflet Map] Help migrating from WP-GPX-MapsIt was the ComplianZ GDPR/Privacy plugin. Even though the wizard set up had OSM cookies listed, in integrations I had to disable a Cookie Blocker which had a placeholder acceptance enabled for OSM, yet the placeholder wasn’t called.
The other OSM plugin mentioned above though worked fine with this setting enabled.
Forum: Plugins
In reply to: [Extensions for Leaflet Map] Help migrating from WP-GPX-MapsPS the slope shading doesn’t make sense, it should be between the line and 0% or none at all.
Forum: Plugins
In reply to: [Extensions for Leaflet Map] Help migrating from WP-GPX-MapsA live event https://www.pedalution.co.uk/events/levels-lumps-lions-200/
Screenshot of a draft test event https://www.dropbox.com/t/enUsqB23UyeCJ1Ji
Forum: Plugins
In reply to: [Extensions for Leaflet Map] Help migrating from WP-GPX-MapsTest page… I was working on a non event draft page where it displays. If I publish it however, public, private or password it doesn’t display. Tried on Firefox, Edge & Chrome all the same. Deactivated the event leaflet plugin for event location pages, & WP-GPX-Map with no effect.
So I investigated with an event and flipped a test one to draft. It works and parses the #_ATT{Code} correctly.
fitbounds… no GPX track is displayed so there aren’t any bounds to fit; which is set to on in Leaflet Map settings anyway.
As the ‘map’ is in the event template this is all live at the mo so no routes displaying, just my default lat, long for Bristol.
Published test non event page https://www.pedalution.co.uk/leaflet-elevation-test
Forum: Plugins
In reply to: [Extensions for Leaflet Map] Help migrating from WP-GPX-MapsI’m not a coder so that is gobbledy gook to me.
The #_ATT{Code} passes eg. 600bcm which corresponds to a gpx in the correct folder (works fine with WP-GPX-maps).
But even if I put ”/wp-content/uploads/gpx/600bcm.gpx” or the corresponding full URL into the event template it will only show a leaflet map of the default coordinates.
If I test on a new page it will display.
Hi @angelo_nwl
This wasn’t a request but an easy solution for others just requiring manipulation of the publish date to 100 years before the event start date to utilise the inbuilt page navigation at the bottom of some themes. Or alternatively using the published date to order categories etc
Forum: Plugins
In reply to: [Events Manager - Calendar, Bookings, Tickets, and more!] Slider/carouselSee Stonehenge Creations plugin, it works a treat. https://www.stonehengecreations.nl/creations/stonehenge-em-slider/
…had to manually add the txt file.
Many thanks. I thought it may be as simple as that but didn’t want to break anything so thought best to ask. All working now.
Forum: Plugins
In reply to: [Events Manager - Move Bookings] Not workingI see there was a recent update and it’s fixed, thanks Patrick
Look for My-Bookings URL in the code given – it won’t be in the widget_in.php until you add it.
Login with Ajax >Widget >Default >widget_in.php
Look for My-Bookings URL. I seem to remember I fiddled with a bit of code around it. I’m a novice too.
<?php /* * This is the page users will see logged in. * You can edit this, but for upgrade safety you should copy and modify this file into your template folder. * The location from within your template folder is plugins/login-with-ajax/ (create these directories if they don't exist) */ ?> <div class="lwa"> <?php $user = wp_get_current_user(); ?> <span class="lwa-title-sub" style="display:none"><?php echo __( 'Hi', 'login-with-ajax' ) . " " . $user->display_name ?></span> <table> <tr> <td class="avatar lwa-avatar"> <?php echo get_avatar( $user->ID, $size = '50' ); ?> </td> <td class="lwa-info"> <?php //Admin URL if ( $lwa_data['profile_link'] == '1' ) { if( function_exists('bp_loggedin_user_link') ){ ?> <a href="<?php bp_loggedin_user_link(); ?>"><?php esc_html_e('Profile','login-with-ajax') ?></a><br/> <?php }else{ ?> <a href="<?php echo trailingslashit(get_admin_url()); ?>profile.php"><?php esc_html_e('Profile','login-with-ajax') ?></a><br/> <?php } } ?> <!--My-Bookings URL--> <a href="https://www.pedalution.co.uk/events/my-bookings/">My Bookings</a><br/> <!--Logout URL--> <a id="wp-logout" href="<?php echo wp_logout_url() ?>"><?php esc_html_e( 'Log Out' ,'login-with-ajax') ?></a><br/> <?php //Blog Admin if( current_user_can('list_users') ) { ?> <a href="<?php echo get_admin_url(); ?>"><?php esc_html_e("blog admin", 'login-with-ajax'); ?></a> <?php } ?> </td> </tr> </table> </div>