Search Results for 'code'
-
Search Results
-
Topic: Topic that user related to
are there any php code or shortcode for display topic that user had created or commented.
When using the shortcode [bbp-reply-form], how do I display a template notice in the place of the form, like “You must be logged in to reply to this topic.”, when the user is logged out?
Its only whitespace left instead of the form when the user is logged out, and I would like to have the template notice instead of the whitespace.
When using the shortcode [bbp-single-topic id=$topic_id], and clicking on the Subscribe link, I wouldn’t like any redirect, just back to the post where I embedded the topic. But there is a redirect to the separate topic page. How do I prevent this redirect? I would like to just reload the post where the shortcode is embedded, instead of a redirect. Or even better, even eliminate the reload, just like here on bbpress.org, there is no reload and no redirect when subscribing.
Thanks!
I have this shortcode to display the latest 5 topics [bbp-display-topic-index show=’5′], how can I include pager? Is there a shortcode for this?
Topic: Comment Blacklist
Not sure if this is a wordpress or bbpress issue so posting in both places. I run a writers community with buddypress and have set up forums where members can post pieces of work. We are experiencing some difficulty with the comment blacklist which prevents some words from being used even if within a word e.g. double breasted…. and one piece of work I can’t for the life of me find the word that is blocking the post… whilst I want to be able to stop spam comments, surely forum posts from members who have to be signed in to post is another thing? Any suggestions? I am useless with code :). Even if we had something which could identify the rogue word we could do something about it…
Thank you
Topic: HOW TO CHANGE “FORUM” NAME
Wordpress v. 5.2.1; bbpress v. 2.5.14
I would like to change my “bbpress forum” to another name so that it does not show up as “bbpress Forum” or Just “Forum” in my users profiles or elsewhere. I have seen several dated suggestions of how to do this but none have worked.
I did not find any help here using the search option. So if this is a repeat question, Please accept my apologies and kindly direct me to the codex or other potentially successful answer.
Thank you.
We noticed that in
topic.js, the Subscribe text is supposed to be changed to Unsubscribe after subscribing to a topic, but currently it is not.The problem is that the ajax call is wrong, the callback function not being called:
$.post( bbpTopicJS.bbp_ajaxurl, $data, function ( response ) { ... });In our case the callback function is not called at all, the text not being updated.
Perhaps adding a
success()call or something similar will fix the problem.Hi,
I’ve been reading other posts, and replies, but nothing seems to be working for me.
It seems like it’s an ongoing issue, so posting a new topic is my last resort.My website is:
http://www.mywebsite.com.auI have created a forum page within wordpress called “chat”:
http://www.mywebsite.com.au/chatI have added the bbpress shortcode to display the bbpress forums here. That works fine.
However when I click on anything that takes me 1 level deeper into the forums, the URL changes.
For example… If I click on a sub-forum (using this website it would be like clicking on “Development & Updates” over on the left menu)… the Url changes to:
http://www.mywebsite.com.au/forum/sub-forum-name/I want the …au/forum… to be be …au/chat/… so it remains consistent with the page I created in wordpress and where i added the shortcode. Otherwise what’s the point?? So is the shortcode just showing the forums, but not actually the forums? I want the ACTUAL forums to be placed using this shortcode – that’s what I thought it would do.
That’s my main gripe. Please tell me there’s a workaround so the URL stays the same?
In addition to that… when you click on a created post within a forum (like when you clicked to open my post), the URL is:
http://www.mywebsite.com.au/topic/created-post-name/That doesn’t seem to be consistent either?
I would think it should be:
http://www.mywebsite.com.au/chat/sub-forum/created-post-nameI hope I’m missing something and this can be resolved. Happy to listen to any advice. Thanks in advance.
Topic: Add class to last topic
I’m trying to add a specific class to the last topic in the forum because the class=”bbp-forum-freshness” it affects all the forum column entirely, so I just want to change the specific title of the topic.
I identified the loop in the file loop-single-forum with this code
<?php do_action( 'bbp_theme_before_forum_freshness_link' ); ?>How can I add a specific class to that code that loops the last topics?
I tried to use bbp style pack too, but in the section Forum Index styling, number 9
When I chose 9. Freshness Font BOLD, don’t work.
So…thanks for reading.
I am using below code for extra topic validation. Now if the validation fails, the page is reloaded but not scrolled down to the input form that shows that a validation error has occurred.
Is there a fix for this?
add_action('bbp_new_topic_pre_extras', 'my_extra_validation'); function my_extra_validation( $reply_id ) { if ( $failed ) { bbp_add_error( 'invalid', '<strong>ERROR:</strong> Invalid input. Try again.' ); } }
