manthano
Forum Replies Created
-
Forum: Plugins
In reply to: [Log in with Google] Redirect after login@artnijenboer Just a hunch, but you probably have another plugin or some custom code that also uses the login_redirect filter and is adding that
/1… maybe a pagination plugin?Forum: Plugins
In reply to: [Log in with Google] Redirect after loginSure. Here’s what I’m using
add_filter( 'rtcamp.google_default_redirect', 'a403_google_login_redirect' ); function a403_google_login_redirect ( $url ) { $user = wp_get_current_user(); if ( $user && is_object( $user ) && is_a( $user, 'WP_User' ) ) { if ( $user->has_cap( 'administrator' ) ) { $url = admin_url(); // redirect to wp-admin for admin users } else { $url = site_url(); // redirect to site homepage for everyone else } } return $url; }Forum: Plugins
In reply to: [Log in with Google] Redirect after loginDid some more digging and found the filter rtcamp.google_default_redirect which allowed me to redirect on login. It would be nice if this filter passed the user object like the wordpress login_redirect filter so I could potentially redirect to different locations like I can with login_redirect
Forum: Plugins
In reply to: [Log in with Google] Redirect after loginI am also having issues with the “login_redirect” filter when using this plugin. The filter works fine with using regular wordpress user/pass login. Please fix or direct where to look in your code to fix.
Figured it out. In the builder we had the following code:
<div class="gce-bethany-list-event"> [if-not-all-day][start-time] - [end-time][/if-not-all-day] [event-title] </div>However the linebreaks had been stripped out, resulting in this:
<div class="gce-bethany-list-event">[if-not-all-day][start-time] - [end-time][/if-not-all-day] [event-title]</div>This caused the invalid HTML, but I’m not sure why… probably an over-zealous regex with the shortcodes. Once the linebreaks were re-applied, everything displays fine.
Forum: Plugins
In reply to: [Simple Image Widget] Extending to support [playlist]That worked great. Thanks much.
The only little issue I still have is that if I click the “choose a playlist” button multiple times to update the selection, the instructions in the media manager (“Drag and drop to reorder tracks.”) occurs multiple times, and more each time the frame is opened, both at the top and the bottom of the frame. It goes from occurring once on first open to 3x on second open to 13x to 60x and at that point it overflows the frame.
Any ideas on how to correct that?
Also, there’s probably a better way to handle the update function, but I’m new to backbone and what I have is working.
Thanks. I actually tried it last night, but I still have an issue related to timing with the horizontal scrolling. I have 4 testimonials that are scrolling in the widget. It shows the first one correctly, then scrolls to the second one and immediately to the 4th, which displays for the right amount of time then scrolls through what looks like the 2nd and 3rd really fast and back to the 4th which again shows for the correct amount of time, then scrolls through what looks like the 2nd and 3rd really fast again and back to 4th, which again displays for the correct amount of time. Then it scrolls to the 1st which displays for the correct amount of time, then repeats the process of skipping very fast over the 2nd, then 2nd and 3rd twice.
So I see:
1 (wait 5sec)
2>4 (wait 5sec)
2>3>4 (wait 5sec)
2>3>4 (wait 5sec)
1 (wait 5sec)
…The fade transitions doesn’t have the issue. Any thoughts? Thanks!