Forum Replies Created
-
In reply to: 2.5.3 Easy change bbpress title font and color
so are you fixed, or do you still need help?
In reply to: Forum theme not working…Robin is busy showing pigs at an agricultural show.
As far as I can see you’re making good progress with Rob.
naa stil did not work.
What did not work, you’ve now lost the toolbar and got profile edit? But just in the footer as well?
Can we have a summary of what your remaining issue is?
In reply to: Topic Title lengthshould be something like
add_filter ('bbp_get_title_max_length','change_title') ; Function change_title ($default) { $default=60 ; Return $default ; }try this in your functions file – if not come back, but suppers ready and I haven’t time to test!
In reply to: Forum theme not working…Uh?? You’ve lost me !
If you have a child theme, your functions file should be in the child theme, and that is where you should put it. If there was a functions file in your main theme, then you should have left that alone. if there wasn’t then there shouldn’t be.
The error is saying that it is likely you have whitespace in line 1 of your awesome theme, which I think is your child theme.
In reply to: Forum theme not working…the error code is saying that you have whitespace in
wp-content/themes/awesome/functions.php:1
If this is a blank file, then delete it.
If not, then it has a problem on line 1
In reply to: Forum theme not working…suspect you have a whitespace in your functions file
Whitespace before <?php when “functions.php line 1” mentioned
If the message says the error is in line 1, then it is typically leading whitespace, text or HTML before the opening <?php marker.
eg
<?phpnot
<?phpIn reply to: Replacing "You cannot reply to this topic"great – glad you’re fixed !
In reply to: pagination problem in case of no repliesgreat – glad you’re fixed !
In reply to: bbP Signature – DevelopmentThanks for not just abandoning.
I’d be happy to take that plugin over and keep it updated as I use it on one of my forums.
so yes add me as commit access – name is Robin W
and I’ll happily take it over !
In reply to: How do I make forum page width fill entire page?In reply to: Replacing "You cannot reply to this topic"it is in
\bbpress\templates\default\bbpress\form-reply.php
However it would be easiest to change the text using a function which you put in your functions file
//This function changes the text wherever it is quoted function change_translate_text( $translated_text ) { if ( $translated_text == 'old text' ) { $translated_text = 'new text'; } return $translated_text; } add_filter( 'gettext', 'change_translate_text', 20 );In reply to: Forum theme not working…I also moved template-full-width.php, to my child theme, and called it bbpress.php. After doing this, nothing has changed except now the forum specific sidebar, that came with the theme, does not show up.
so what would you like to happen, all I can see on your site is your forum with a sidebar
In reply to: Forum theme not working…So basically on the forum, when someone clicks edit my profile at the top of the page, it goes to the backend. Even though, it would be preferable to go to the front end.
I would not let users see the toolbar, this is really just for admins.
You need to disable the toolbar – add this to your functions file
add_filter('show_admin_bar', '__return_false');then put the profile into your menu
No problem
In reply to: How to display X last topics from a specific forum ?great – pleased its doing the trick !
sorry if I wasn’t so busy, I’d have a crack at it 🙂
In reply to: filter topic on date baseYou explain me in detail with code?
Can you explain what you are trying to do and where on your site eg put a shortcode on the front page, add a widget that does this etc.
you’d do better to just steal the replies widget I wrote for private groups
download
https://wordpress.org/plugins/bbp-private-groups/
and then open up and edit
includes/pg_forum_widgets.php
line 464 onwards has the replies widget, I’m pretty sure that lines 539 to 542
//PRIVATE GROUPS Get an array of IDs which the current user has permissions to view $allowed_posts = private_groups_get_permitted_post_ids(new WP_Query($query_data)); // The default forum query with allowed forum ids array added $query_data['post__in'] = $allowed_posts;is all that’s added to the orginal code, so remove those lines.
and line 574 contains the size
you can just fork all that to the end of the file into your functions file
I’d suggest that you
1. create a test site (which everyone should have in nay case !)
and
2. Google sql tutorial video, and work out how to code my statements
3. go into phpmyadmin on your test site and play until you get it right
4. Come back and post the resultant code to help others
sorry, but almost all of the stuff I have learn’t has been by spending time googling to find some examples, and then hours getting it to work 🙂
In reply to: EDIT TOPIC in BBPRESSgreat – glad you’re fixed !
In reply to: filter topic on date baseyes it should be as bbpress just uses wp_query once args has been parsed.
see
https://codex.wordpress.org/Class_Reference/WP_Query dates are quite a way down
untested but something like
$week = date( 'W' ); $year = date( 'Y' ); bbp_has_topics( array( 'year' => $year, '&w' => $week ) );would do last 5 days
In reply to: Search input redirects to homepage with no resultsok, on the specific forum search, it is probably plugin or theme related
Plugins
Deactivate all but bbpress and see if this fixes. if it does, re-enable one at a time to see which is causing the error.
Themes
If plugins don’t pinpoint the problem, as a test switch to a default theme such as twentytwelve, and see if this fixes.
but since you say you don’t really want that, you could disable the forum search
and to add forum searches to the main search use
function filter_search($query) { if ($query->is_search) { $query->set('post_type', array('post', 'pages', 'forum', 'topic', reply')); }; return $query; }; add_filter('pre_get_posts', 'filter_search');This is untested code, I copied it from another forum, but should work, come back if it does or doesn’t to help future readers of this thread!
In reply to: BBpress forum stats plugin layoutThanks, Rob
In reply to: BBpress forum stats plugin layoutI’d say the issue was more with the widget not taking up the column space it could – rthe widget below is much wider. This is fixed usually with css rather than widget code.
Sorry but an training today or I’d take a look, perhaps rob will
you could do, but since you’re into code, I’d just amend line 1157 on bbpress/includes/common/widgets.php, and make a note to change it again on upgrades
Not the recommended way, but practical !