#1 WordPress forum plugin created by gVectors Team

wpForo – WordPress Forum Plugin
  • Home
  • Forum
  • Migrate to wpForo
  • Addons
  • Addons Demo
  • Documentation

Forum

Home | Forum

wpDiscuz - WordPress Comment Plugin
  • Forums
  • Members
  • Recent Posts
Forums
Main Support Forums
General Discussions
Use WP login form ....
 
Share:
Share
Tweet
Share
Notifications
Clear all

[Solved] Use WP login form ... not wpforo's

    Last Post
RSS

fredclown
Posts: 6
 fredclown
Topic starter
September 9, 2020 11:36 pm
(@fredclown)
Active Member
Joined: 2 years ago

We use the below plugin to enable Active Directory login integration. Is it possible to have wpforo's login/logout feature use the default WP functions?

 

https://wordpress.org/plugins/next-active-directory-integration/

2 Replies
fredclown
Posts: 6
 fredclown
Topic starter
September 10, 2020 11:35 pm
(@fredclown)
Active Member
Joined: 2 years ago

So, I just used JavaScript to re-write the login/logout links. Maybe not the best way, but it works.

<?php
add_action( 'wp_head', function () { ?>
<script>
jQuery(document).ready(function(){
//Rewrite login links
jQuery('a[href*="?foro=signin"]').attr('href', '<?php echo wp_login_url( get_permalink() ); ?>');

//Rewrite logout links
jQuery('a[href*="?foro=logout"]').attr('href', '<?php echo wp_logout_url( get_permalink() ); ?>');

//Remove register links
jQuery('a[href*="?foro=signup"]').remove();
});
</script>
<?php } );
Alvina liked
1 Reply
Alvina
 Alvina
Moderator
(@alvina)
Joined: 3 years ago

Member
Posts: 1873
Alvina - Facebook Alvina - Twitter
September 12, 2020 12:21 pm
Reply tofredclownfredclown

@fredclown,

I'll suggest you check the following topic, it may help you: https://wpforo.com/community/how-to-and-troubleshooting-2/which-files-contain-log-in-register-modal-code/

Besides, please read this changelog: https://wpforo.com/community/how-to-and-troubleshooting-2/which-files-contain-log-in-register-modal-code/

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.

  All forum topics
  Previous Topic
Next Topic  

Forum Search

Join Us!

Download wpForo plugin
on WordPress.org

wpForo Addons

wpforo-private-messages wpforo-advanced-attachments-128x128 wpforo-embeds-128x128 wpForo User Custom Fields addon wpForo – Blog Cross Posting addon wpForo Ads Manager wpForo – WooCommerce Memberships Integration wpForo Emoticons wpForo – Tenor GIFs Integration
View all Addons »

Recent Topics

  • Suggestion How to make new user to get approve manually before creating post and profile.

    By Adhyansh21, 7 hours ago

  • Posts deleted in database still show up on front-end

    By nylex, 8 hours ago

  • Not all links are automatically added with the "nofollow" attribute

    By st7878, 12 hours ago

  • Editors assign users to groups

    By mike_netinfo, 13 hours ago

  • Set password link opens forum login page instead of set password page

    By JanJan, 14 hours ago

  • User banned for using icons?

    By JanJan, 14 hours ago

Topic Tags

  • css52
  • translation50
  • plugin conflict48
  • seo47
  • new features45
  • buddypress43
  • avatar41
  • moderation40
  • ultimate member40
  • login40
  • forum40
  • registration37
  • threaded layout35
  • cache34
  • editor33
  • menu33
  • spam32
  • shortcode32
  • forum accesses30
  • widget29
View all tags (2190)

Recent Posts

  • RE: Not all links are automatically added with the "nofollow" attribute

    I have no idea, i guess not.

    By dimalifragis, 9 mins ago

  • RE: How to make new user to get approve manually before creating post and profile.

    Thanks again

    By Adhyansh21, 4 hours ago

  • RE: Posts deleted in database still show up on front-end

    Ok then, wait until someone from wpForo support will he...

    By dimalifragis, 7 hours ago

  • RE: Set password link opens forum login page instead of set password page

    Hi @janjan, Go to Dashboard > Forums > Settings...

    By Chris, 11 hours ago

  • RE: Editors assign users to groups

    Hi @mike_netinfo, Only administrators can change user...

    By Chris, 12 hours ago

  • RE: Font Awesome Icons

    @seancallahan, It's better if you revert all your cha...

    By Chris, 12 hours ago

  • RE: Is there a way to add safety features?

    Hi @seancallahan, It's not recommended to install the...

    By Robert, 13 hours ago

Share:
Share
Tweet
Share
  Forum Statistics
21 Forums
9,931 Topics
50.2 K Posts
4 Online
47.9 K Members

Latest Post: Not all links are automatically added with the "nofollow" attribute Our newest member: kevina09237607 Recent Posts Unread Posts Tags

Forum Icons: Forum contains no unread posts Forum contains unread posts

Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Powered by wpForo | Copyright © 2016-2022 gVectors Team
Copyright Registration Service - Click here for more information or to register work
wpForo is Registered with the IP Rights Office
Copyright Registration Service

Ref: 4477265538
  • Home
  • Forum
  • Migrate to wpForo
  • Addons
  • Addons Demo
  • Documentation