#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
How-to and Troubles...
Reply button automa...
 
Share:
Share
Tweet
Share
Notifications
Clear all

Script Reply button automatically adds post author @nickname in editor

    Last Post
RSS

xfok
Posts: 67
 xfok
Beta Tester
Topic starter
November 4, 2021 8:38 pm
(@xfok)
Trusted Member
Joined: 3 years ago

how can disable Reply button automatically adds post author @nickname in editor?

Topic Tags
nickname mentioning
5 Replies
Chris
Posts: 1449
 Chris
Admin
November 5, 2021 9:46 am
(@chris)
Support Team
Joined: 12 months ago

Hi @xfok,

Disable Show Member Mention Nicknames option from Dashboard  >Forums > Settings > Features tab.

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.

Reply
4 Replies
xfok
 xfok
Beta Tester
(@xfok)
Joined: 3 years ago

Trusted Member
Posts: 67
November 5, 2021 10:12 am
Reply toChrisChris

@chrisI tried, but it disables all mention functions, for example it also removes the @nick under the username. I would just like to disable the mention when clicking the lot reply in the QeA layout

Reply
Chris
 Chris
Admin
(@chris)
Joined: 12 months ago

Support Team
Posts: 1449
November 5, 2021 1:32 pm
Reply toxfokxfok
Chris

@xfok,

1. Download and Install "Code Snippets" Plugin for WordPress

2. Open Dashboard > Snippets > Add New 

3. Write a Title

4. Add the Below Code, Check the "Only run on site front-end" Checkbox and press Save Changes and Activate

add_action( 'wp_footer', function () { ?>
<script>

jQuery(document).ready(function ($) {
    if (typeof wpforo_editor !== 'undefined') {
        $('#wpforo-wrap').on('click', '.wpforo-qa-comment, .wpforo-reply.wpf-action.wpforo_layout_4', function () {
			setTimeout(function(){
				wpforo_editor.set_content('', $('.wpforo-post-form').data('textareaid'));
			}, 100);
        });
		$('#wpforo-wrap').on('click', ".wpforo-reply:not(.wpforo_layout_4)", function(){
			setTimeout(function(){
           		 wpforo_editor.set_content('', wpforo_editor.get_main());
			}, 100);
        });
		
    }
});

</script>
<?php } );

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.

Reply
xfok
 xfok
Beta Tester
(@xfok)
Joined: 3 years ago

Trusted Member
Posts: 67
November 5, 2021 5:06 pm
Reply toChrisChris
xfok
Chris

@chris Thanks you. Work well but not work for first reply button. See attachments

 

 Schermata-2021-11-05-alle-18.04.44.png
Reply
Chris
 Chris
Admin
(@chris)
Joined: 12 months ago

Support Team
Posts: 1449
November 6, 2021 9:42 am
Reply toxfokxfok
Chris
xfok
Chris

@xfok,

Insert this one 

add_action( 'wp_footer', function () { ?>
<script>

jQuery(document).ready(function ($) {
    if (typeof wpforo_editor !== 'undefined') {
        $('#wpforo-wrap').on('click', '.wpforo-qa-comment, .wpforo-reply.wpf-action.wpforo_layout_4', function () {
			setTimeout(function(){
				wpforo_editor.set_content('', $('.wpforo-post-form').data('textareaid'));
			}, 100);
        });
		$('#wpforo-wrap').on('click', ".wpforo-reply:not(.wpforo_layout_4), .wpforo-answer", function(){
			setTimeout(function(){
           		 wpforo_editor.set_content('', wpforo_editor.get_main());
			}, 100);
        });
		
    }
});

</script>
<?php } );

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.

Reply
  All forum topics
  Previous Topic
Next Topic  
Related Topics
  • How to hide the Username in user posts
    3 months ago
  • Predict username when tagging
    5 months ago
  • Tagging with username in forum is not giving notification at bell icon
    5 months ago
  • Tagging Users in Post
    5 months ago
  • Display Name Issue
    6 months ago
Topic Tags:  nickname (13), mentioning (7),

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

  • Import users from IPBoard

    By jesusdlg, 11 hours ago

  • Intruder signing in to wpforo without approval

    By plaurits, 15 hours ago

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

    By Adhyansh21, 2 days ago

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

    By nylex, 2 days ago

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

    By st7878, 2 days ago

  • Editors assign users to groups

    By mike_netinfo, 2 days ago

Topic Tags

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

Recent Posts

  • RE: Intruder signing in to wpforo without approval

    @plaurits, My bad, try this:/p>

    By Chris, 7 mins ago

  • Import users from IPBoard

    Hello, Is it possible to import users from ipboard? (...

    By jesusdlg, 11 hours ago

  • RE: Description for each topic?

    Why is this such a hard question to answer? You have ...

    By Christine, 12 hours ago

  • RE: User banned for using icons?

    If you have security plugins that can ban users, try de...

    By Chris, 20 hours ago

  • RE: recover deleted forum categories

    @robert @chris could that upgrade message at the top of...

    By dimalifragis, 21 hours ago

  • RE: recover deleted forum categories

    Hi @asmadi1, Contact your hosting to get a backup.

    By Chris, 23 hours ago

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

    @nylex, Copy the post content or part of it, the go-t...

    By Chris, 1 day ago

Share:
Share
Tweet
Share
  Forum Statistics
21 Forums
9,936 Topics
50.3 K Posts
12 Online
48.2 K Members

Latest Post: Intruder signing in to wpforo without approval Our newest member: zulzeaglesspm0207 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