Search Results for 'code'
-
Search Results
-
Hi All
I’m still new to BBPress and to WordPress if I’m to be honest…
I am using the Woo Storefront Theme.
I have created a new page on my website and called it “forum” and then used the
[bbp-forum-index] shortcode on that page.1. I have installed a plugin that allows me to turn off my page title but for some reason BBPress seems to be overriding this feature which is working fine on all my other pages? How do I turn my page title off within BBPress?
2. I have also set up a few forums, one of them called “School Community Discussion”
Inside this “parent” forum I have created two child forums called “Michael Mount Waldorf School” and “Moore House Academy”When I click on one of the child forums to post a new topic, there is no “new post” window for me to add a new post. This window is only available at the parent forum level!? How do I resolve this?
3. I must say that I’m dumbfounded that BBPress doesn’t have a “Post new Topic” button that will allow you to click and then select whichever forum you want to post into from a dropdown menu. I there any way to create a button like this?
Thx
KbI’m a bit new and trying to get back into wordpress again. I have a wordpress website that needs to use the wordpress database that we first set up, and 2 external databases to obtain information and even at times to edit, and update information. Tried using external database but that is for one external database coming in. Want to use an external database to first set up login meaning when they enter username and password, it will find it through g h the external database. So my question is… What is the best way this situation? If it is coding, is there some tutorials that I can do this?
Did some research, and someone said that I can use this code in the functions.php to help access another database… Is it functions pho in main or themes?
$newdb = new wpdb($DB_USER, $DB_PASSWORD, $DB_NAME, $DB_HOST);
$newdb->show_errors();So I add this in the functions, but where do I put the second database’s info like host, username, password and etc? Where do I put the query code at?
Will this work to connect to an external databases?
Please Help!!!!
Topic: bbpress ignores custom CSS
I’m using a child theme and I’m trying to make CSS adjustments to the forum list. I need to get rid of float + width because the numbers are not aligned with the titles (topic, voices, replies, last post). Whatever I try, bbpress ignores my changes. I tried adding the new CSS to style.css in my child theme as well as adding it to Jetpack’s custom CSS. I did even add the extra code to functions.php in my child theme so that bbpress style could be overwritten without using !important. Using !important doesn’t work either. I really don’t know what else to try. My theme is not perfect for bbpress, so I need to tweak a few things.
Hey y’all. I’m trying to import a bbpress forum from one site to another and am experiencing troubles getting my replies to show up. I’ve imported .xml files for my forum, topics, and replies (I had to separate out my replies into batches bc it was so large). In my admin section it shows that there are 442 published replies however none show up on the table. I’ve tried “Recalculate the position of each reply” in Repair Forums but get a blank screen every time.
I tried increasing my execution time in .htacess by adding
php_value max_execution_time 900and still nothing.Any suggestions on how I can get this replies to show up? Thanks!
Hello,
I have found a code snippet somewhere, that does a fine job by including forum topics in the ordinary WP search. The only problem is that I have now added some private forums on the site where teachers can share assignments and problem statements for use in class.
So I would like to exclude private forum topics and replies from search results unless you are logged in as ‘contributor’ and up.
Does anybody know how to code that?
My code snippet is here:
/** * Include bbPress 'topic' custom post type in WordPress' search results */ function ntwb_bbp_topic_cpt_search( $topic_search ) { $topic_search['exclude_from_search'] = false; return $topic_search; } add_filter( 'bbp_register_topic_post_type', 'ntwb_bbp_topic_cpt_search' ); /** * Include bbPress 'forum' custom post type in WordPress' search results */ function ntwb_bbp_forum_cpt_search( $forum_search ) { $forum_search['exclude_from_search'] = false; return $forum_search; } add_filter( 'bbp_register_forum_post_type', 'ntwb_bbp_forum_cpt_search' ); /** * Include bbPress 'reply' custom post type in WordPress' search results */ function ntwb_bbp_reply_cpt_search( $reply_search ) { $reply_search['exclude_from_search'] = false; return $reply_search; } add_filter( 'bbp_register_reply_post_type', 'ntwb_bbp_reply_cpt_search' );Thanks.
Current WordPress and bbPress