Brian Wilson
Forum Replies Created
-
AuthorPosts
-
Awesome! Glad to know this will be resolved in a future release. Thanks for the great support.
Hmm… the only edit I made to the .htaccess file was redirecting http:// to https:// and simultaneously no www to www.
Here’s my htaccess.
SetEnv PHPRC /home/knowcoll/public_html/php.ini # Redirect to HTTPS RewriteCond %{SERVER_PORT} 80 RewriteCond %{HTTP_HOST} ^younglocal\.com$ [OR] RewriteCond %{HTTP_HOST} ^www\.younglocal\.com$ RewriteRule ^(.*)$ https://www.younglocal.com/$1 [R,L] # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress # Wordfence WAF # END Wordfence WAF
Yeah home page redirect definitely isn’t right behavior but I’m not sure what could be blocking it in this file. Thanks!
Edit: I am using the maintenance/coming soon page plugin, but even when disabled it still exhibits this behavior.
Thanks Patrik! That did the trick and resolved the issues with the Twitter social login. I contacted the host and they said that nothing else really needs to be done since you resolved it with the php.ini file. Thank you!
Additionally, one thing I just noticed is that the author pages in WordPress are not redirecting to the profile page within UsersWP. I vaguely remember reading that this plugin should do this, but I happened to notice it wasn’t along side the other wpDiscuz issue. Am I missing a setting for this one, or is this not currently possible? Maybe a .htaccess rewrite could make it happen or something.
This reply has been marked as private.Hey Guust,
You did not misunderstand, and actually I should have been more specific.
So it does this for the standard login process, but with the Social Login specifically it just takes me to the home page of my website, rather than redirecting to the last user page as set in the settings, and rather than respecting wpdiscuz redirect url.
I’m not sure how UsersWP would do it but here’s a couple examples from other plugin integrations.
BuddyPress compatibility (add in theme functions.php file)
//////////////////////////////////////////////////////////////////////// // BuddyPress Profile URL Integration ////////////////////////////////// //////////////////////////////////////////////////////////////////////// add_filter('wpdiscuz_profile_url', 'wpdiscuz_bp_profile_url', 10, 2); function wpdiscuz_bp_profile_url($profile_url, $user) { if ($user && class_exists('BuddyPress')) { $profile_url = bp_core_get_user_domain($user->ID); } return $profile_url; }
Ultimate Member (add in themes functions.php)
//////////////////////////////////////////////////////////////////////// // Ultimate Member Profile Display Name Integration //////////////////// //////////////////////////////////////////////////////////////////////// add_filter('wpdiscuz_comment_author', 'wpdiscuz_um_author', 10, 2); function wpdiscuz_um_author($author_name, $comment) { if ($comment->user_id) { $column = 'display_name'; // Other options: 'user_login', 'user_nicename', 'nickname', 'first_name', 'last_name' if (class_exists('UM_API') || class_exists('UM')) { um_fetch_user($comment->user_id); $author_name = um_user($column); um_reset_user(); } else { $author_name = get_the_author_meta($column, $comment->user_id); } } return $author_name; } //////////////////////////////////////////////////////////////////////// // Ultimate Member Profile URL Integration ///////////////////////////// //////////////////////////////////////////////////////////////////////// add_filter('wpdiscuz_profile_url', 'wpdiscuz_um_profile_url', 10, 2); function wpdiscuz_um_profile_url($profile_url, $user) { if ($user && (class_exists('UM_API') || class_exists('UM'))) { um_fetch_user($user->ID); $profile_url = um_user_profile_url(); } return $profile_url; }
This reply has been marked as private. -
AuthorPosts