How to stopping auto scrolling after submitting the form?

After submitting the form the pages get loaded and the scroll goes up automatically the user has to scroll down to see the message. Can we disable the scroll? Below is the url on which i facing the issue http://www.wavesstrategy.com/forums/topic/nifty-neo-wave-training-queries/ http://www.wavesstrategy.com/free-member-login/ After filling the form on the above page the scroll goes up
Category: Web

Add videos/images preview to bbPress attachment

In my blog I installed bbPress with few plugin such as GD bbPress Attachments, GD bbPress Tools and Image Upload for BBPress. When I create a new post, I can upload new images or videos and I can see a thumb for each of them. I like to show the attachment as a big image or a player if it is a video. How can I do that?
Category: Web

How can I combine Wordpress default Tags and bbPress tags into one archive page?

I'm trying to figure out how to combine two taxonomies? I've got three things going on: Tags from Buddyboss's Forums (Buddypress/bbpress) Tags from The Events Calendar Pro Tags from Wordpress's WP_TAGS The events calendar uses the standard WP_TAGS that Wordpress blog posts also use, but the forums have their own tag type. I'd like to combine the tags so that clicking the same word takes you to one page, with forum discussions, blog posts, and events related to that tag. …
Category: Web

Can i use 2 page content-forum & content-forum-slug on bbpress?

I currently have a bbpress folder in my theme which contains all the theme of my forum. I have a page archive-forum.php which displays the forum page and a page content-single-forum.php which displays the topics. I would like to know how to create a different display for a forum. I would like to display the first forum with a content-single-forum-slug.php and the other forums with content-single-forum.php. I have tried all : content-single-forum-slug.php, single-forum-slug.php, content-single-slug.php, single-slug.php. I didn't succeed so I …
Category: Web

BuddyBoss (BuddyPress / bbPress) moderation filters not doing anything

I'm trying to prevent moderation of forum posts for users with the 'moderate' capability OR an active 'premium' membership plan (WC Memberships). I want replies from such authors to not be subject to our moderation rules (number of links, blocklisted words, etc.). I've tried using the following filters with no luck: add_filter( 'bbp_bypass_check_for_moderation', 'bbp_bypass_if_user_can_moderate', 10, 4 ); function bbp_bypass_if_user_can_moderate( $anonymous_data, $author_id, $title, $content ){ if( user_can( $author_id, 'moderate' ) || wc_memberships_is_user_active_member( $author_id, 'premium' ) ){ return true; } else { …
Category: Web

How to exclude one parent id from post_parent' => 'any', in WordPress / bbPress?

The code below works well however I would like to exclude one parent id from he output. What I'm trying to accomplish is to have [ post_parent' => 'any'] to everything except parent id="5150". Is this possible? if ( bbp_has_topics( array( 'author' => 0, 'show_stickies' => false, 'order' => 'DESC', 'post_parent' => 'any', 'posts_per_page' => 5 ) ) ) { bbp_get_template_part( 'bbpress/loop', 'topics' ); }` Thank you
Category: Web

Scrolling on reply url

I have installed BBPress and anonymus subscription plugins for my forum. The problem is, if a user recived an email that notify him that he recived a reply to his topic/answer, after he press on the button from that email to go on his question/answer, the page scroll to the end of the post not at the beginning. Is somebody who can help me with this $reply_url = bbp_get_reply_url( $reply_id ); <a style="padding:10px; text-decoration:none; background:#66BB6A; font-family: Open Sans; font-style: normal; …
Category: Web

How to move bbPress reply form to bottom when clicking the cancel button

I have a bbPress forum in which I have the reply form at the top of the page instead of the default bottom. When a user wishes to reply to someone and then they cancel their reply, the reply form moves to the bottom of the screen again. How do I change this to move back to the top. The code that is responsible for this is in 'wp-content/plugins/bbpress/templates/default/js/reply.js'. Any ideas on how and where to alter this code to …
Category: Web

bbPress: modifying template for forum index

I'm reading up on the bbPress help pages to try and find out how to modify a template but with little success. I see that WP will look for the following theme files and use the top-most first: plugin-bbpress.php bbpress.php forums.php forum.php generic.php page.php single.php index.php However, when I look in the bbPress folder itself, I see no files in there of the those names... so I've no idea what sort of code to put in them. I assumed there …
Category: Web

How to keep plugin translations after updates?

bbPress' language folder (wp-content/plugins/bbpress/bbp-languages) has that warning: /** * Do not put custom translations here. They will be deleted on bbPress updates. * * Keep custom bbPress translations in /wp-content/languages/ */ Actually, this is not a new problem and yes, they are right. This is a big problem if you are using WordPress plugins with a non-English language. Basically, I translated bbPress and created .po and .mo files. Files are working if I put them in their normal wp-content/plugins/bbpress/bbp-languages folder. …
Category: Web

Responsive Author Style in BBpress?

I would like change responsive design author of forum section which I attached screenshots. I tried some of code but didn't worked. Here is the code #bbpress-forums li.bbp-body div.bbp-topic-author, #bbpress-forums li.bbp-body div.bbp-reply-author { -ms-flex-align: start; align-items: flex-start; width: 100%; margin: 0 0 16px; padding: 0 0 16px; border-bottom: 1px solid var(--color-divider); box-sizing: border-box; } .vikinger-forum-reply-author { -ms-flex-align: start; align-items: flex-start;
Category: Web

Arrange BBpress replies in reverse order

I want to Sort topic replies in descending order for all bbPress Topics to show the last reply in first postion. There is an old plugin that doesn't work anymore: https://wordpress.org/plugins/bbpress-sort-topic-replies Is there any code to add it in theme's function to do this?
Category: Web

Importing a Google Group to bbPress

I'm trying to migrate a google group to a bbPress forum on a wordpress site. I ran into this plugin https://wordpress.org/plugins/import-export-for-bbpress/ but it doesn't have a UI. This might be a dumb question from a complete newbie but how do I run a plugin without a UI? Update I put the wrong plugin link for the import. I meant this plugin: https://wordpress.org/plugins/bbp-import-google-group/ Is there a better way to import the content of a google group to a new forum in …
Category: Web

How to get the Role Name of the current user? (WordPress)

I currently have this snippet: $user = new WP_User(get_current_user_id()); echo $user->roles[1]; and the output the slug of the bbPress forum role. (roles[0] would be the general WP role but I don't need that.) What I need is the role name, not the slug. So, the expected output should be something like "Keymaster", "Participant", "Spectator" etc. So, how do I get the Role Name of the current user?
Category: Web

How do I find the bbpress forum ID for a forum in a buddypress group?

I am trying to modify this code https://www.daggerhart.com/bbpress-recent-replies-shortcode/ but I have specific questions and cannot find the answer. This code above generates a shortcode like [bbpress_recent_replies_by_topic show=10 forum=123] I have a buddypress site with groups, and each group has its own bbpress forum. I want to list the recent replies for the forum assigned to that group (only) when a user visits the group page. So basically I want to assign the forum ID based on whichever group the user …
Category: Web

Save meta box data from selected dropdown list in bbpress reply form

I hope to customize bbpress reply form area with dropdown selection list. I could not find any previous post reporting similar case in bbpress. Referring to post "Save meta box data from selected dropdown list" with link https://stackoverflow.com/questions/17755973/save-meta-box-data-from-selected-dropdown-list I prepared similar code for the bbpress reply post condition, but failed to achieve the goal. add_action( 'bbp_theme_before_reply_form_content', 'so_custom_meta_box' ); //add_action( 'add_meta_boxes', 'so_custom_meta_box' ); function so_custom_meta_box($post){ add_meta_box('so_meta_box', 'Custom Box', 'custom_element_grid_class_meta_box', $post->post_type, 'normal' , 'high'); } add_action('bbp_theme_before_reply_content', 'so_save_metabox'); function so_save_metabox(){ global $post; if(isset($_POST["custom_element_grid_class"])){ …
Category: Web

Adding custom fields to bbpress reply form

Referring to post "adding-custom-fields-bbpress-topic-form" with link https://wp-dreams.com/articles/2013/06/adding-custom-fields-bbpress-topic-form/, I want to add custom fields to bbpress reply form accordingly. I only altered several key words from "topic" to "reply". And I also tested more hooks to trigger the function. However, I could not show the related field after testing a test reply. Here is the code: add_action ( 'bbp_theme_before_reply_form_content', 'bbp_extra_fields'); function bbp_extra_fields() { $value = get_post_meta( bbp_get_reply_id(), 'bbp_extra_field1', true); echo '<label for="bbp_extra_field1">Extra Field 1</label><br>'; echo "<input type='text' name='bbp_extra_field1' value='".$value."'>"; $value = …
Category: Web

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.