Search Results for 'code'
-
Search Results
-
I’m trying to format the background and the border for the lead topic, just as you’ve done here in the bbPress forum. I used Firebug to see your code, which is
#bbpress-forums ul.bbp-lead-topic li.bbp-body { border: 1px solid #dd6; } #bbpress-forums ul.bbp-lead-topic li.bbp-body div.topic { background-color: #0099FF; }But when I add this to my child theme’s CSS (where I’ve successfully made other bbPress changes), nothing changes.
I don’t know if something else I’ve changed is preventing this from changing or maybe if you have something in the setup that I don’t have, something that allows you to style this in CSS when I can’t.
Any suggestions? The forum is private, but I can get you in temporarily, if that would help. Or I could paste into a comment all the changes to bbPress I made in my CSS.
(Note: I changed your color for testing purposes)
Thanks for any help you can give me.
Beth
Topic: Search by user
I managed to implement a custom function to search by $forum_id and it’s all working and great, and it was done using the instructions from this page.
What I need is a way to search by user. Here’s what the search by forum function looks like:
function my_bbp_filter_search_results( $r ){ //Get the submitted forum ID (from the hidden field added in step 2) $forum_id = sanitize_title_for_query( $_GET['bbp_search_forum_id'] ); //If the forum ID exits, filter the query if( $forum_id && is_numeric( $forum_id ) ){ $r['meta_query'] = array( array( 'key' => '_bbp_forum_id', 'value' => $forum_id, 'compare' => '=', ) ); } return $r; } add_filter( 'bbp_after_has_search_results_parse_args' , 'my_bbp_filter_search_results' );I tried changing all instances of the word “forum” to the word “user”, but no dice. I tried doing searches like this:
http://mysite.com/search/?bbp_search=testword&bbp_search_user_id=123But nothing I does works and I’ve spent many hours tearing my hair out trying to get it working. I would hugely appreciate any assistance making it happen.
ThanksWordPress Version: 4.0
bbPress Version: 2.5.4
Theme: Lightly modified Skeleton (http://themes.simplethemes.com/skeleton/)I’m using this code: http://pastebin.com/7NQnubJP to add custom fields in a specific forum. Everything is working great except for when I try to edit an existing topic. When I try to edit an existing topic, the custom fields aren’t displayed on the page, and therefor aren’t editable. Only the normal Title and Content fields are displayed.
The issue still happens while using an unmodified Twenty Fourteen theme (besides adding the relevant code to the functions.php file, of course).
I haven’t had any luck finding out what the problem is, but I’m hoping it’s something simple.
I appreciate any help!