Forum Replies Created
-
In reply to: Forums not showing correctly
WHat can i do?
you could post a link to a page that works 🙂 I just get ‘this page cannot be displayed’
But also have you read
In reply to: Change the name of the administratorTry adding this to your functions file, it may/should work – have never tried it in a different language !
//This function changes the text wherever it is quoted function change_translate_text( $translated_text ) { if ( $translated_text == 'super administrador' ) { $translated_text = 'administrador'; } return $translated_text; } add_filter( 'gettext', 'change_translate_text', 20 );
In reply to: Can I use my normal wordpress shortcodes in bbpress?Not quire sure what you are after – can you give a specific example?
In reply to: Lock/Assign Specific Forums to Specific Members OnlyIn reply to: Forum subscription subscribes to all forumsGreat, thanks I’ll take that version to live shortly
These are exactly the questions I was asking 6 months ago, so I sense your frustration !!
I was expecting to write some stuff on filtering, but having had a quick look at ‘bbp_new_topic_handler’ this doesn’t have any real filtering capability, although it does have some url filters.
Fuller than probably needed answer for the benefit of others !
Ok so you can usually
either filter a function either using bbp_parse_args where you want to change some paramters that are being passed to wp-queryor filter the whole function – if it ends with ‘return apply_filters(..)’ then you can easily copy the whole function and alter it within your child theme, just rename it slightly and then add a filter
so a fictional function called ‘add_name’ in bbpress ends with
Return apply_filters (‘add_name’, $name) ;you simply copy the whole function and change ‘add_name’ to say ‘my_add_name’ then add a line
add_filter (‘add_name’, ‘my_add_name’)and wordpress will use your function to replace the original.
But for your function, there is a url filter near the edn but otherwise this is a function that does, so no neat parameters that are replaceable at the end !
I searched bbpress for where this function is used, and in includes/core/actions.php it is added as an action to wherever bbp_post_request is used
Searching for that gets me a bit confused, as I’m not familiar with what this does, and have limited time to chase it down.
Now, having written all that as I was going along, if I were you I’d do one of two things
1. Go further back and find what is calling the function, and then change that. If it is a template, you can alter that in a bbpress folder within your theme to call your function instead, and neither will get overwritten by upgrades.
2. There is no problem in changing core bbpress files as long as a) you are happy you know what you’re doing and b) you make a note of the changed function.
Then on each upgrade, you’ll need to look at whether any code in the function has changed, and if not just overwrite it again. If it has changed, then you’ll need to redo your amendment taking into account the new code. But you sometimes need to do that anyway for a child theme function where bbpress is dealing differently with it.
Yes changing core is ‘frowned’ upon, but only because people do it and then get upset when it is overwritten and they can’t remember what they changed !! Do it with knowledge and you’ll be fine !
After all it just some code that someone’s written, and any ‘rules’ are just made up and have no authority !
In reply to: Forum subscription subscribes to all forumsOk I have fixed this issue – can you download version 1.9 from
and test it to ensure it also works for you.
if so, I’ll load it to wordpress plugins for general release
In reply to: Forum subscription subscribes to all forumsOk I am making progress, and have tracked down the function concerned. Now I just need to work out how ‘profile’ calls this and I should be able to fix !
In reply to: Latest 5 Topics?Thanks !
In reply to: Not seeing forum sidebarGreat – glad you’re fixed !
In reply to: bbPress – iThemes ExchangeOk, think that since you’ve paid a large amount of money for a membership product that it should work, and you should pursue them for a fix !
In reply to: Forum subscription subscribes to all forumsok, I’ve just installed bbpress, buddypress and private groups on a new test site, added a couple of forums, and set one to subscribe.
Without private groups it is fine, with private groups both forums show as subscribed, so I can replicate your problem 🙂
I’ll take a look tomorrow as to whether I can work a fix for it.
Great – really glad that is fixed, and yes I’ve also now learned a bit more, which is why I like coming on this forum.
And you’ve saved yourself a fortune in support fees, so worth treating yourself this evening !
In reply to: Not seeing forum sidebarGetting bbpress to work with the many very clever (too clever!) themes is not always easy
Ok, we could spend a lot of time getting a forum specific sidebar for your theme, but maybe easiest to get your sidebar working to display in bbpress
so install widget logic
https://wordpress.org/plugins/widget-logic/
Then set up whatever sidebar is being displayed on the bbpress page for all the widgets that you want it to display, both for the homepage and bbpress
Then you’ll see each widget now has a widget logic condition.
For items you want to display only on bbpress add the logic
is_bbpress()
For items say only on a home page add
is_home()
for items you want on all pages apart from bbpress use
!is_bbpress()
Come back if anything is not clear
It may well be that you’re search form is just including the forum posts.
bbpress uses custom post types of ‘topic’, ‘forum’ and ‘reply’. You site wide search may well need to exclude these types so that forums results do not get filtered into the search.
see https://codex.wordpress.org/Function_Reference/get_search_form
In particular
<input type=”hidden” value=”post” name=”post_type” id=”post_type” />
Here we submit the value post. The default value is any, meaning, posts, pages and custom post types.ie the default is any would include forum entries.
In reply to: Forum subscription subscribes to all forumsok, you say this is in your profile, can you send me a screenshot of what ‘looks wrong’ so I can see.
ok, sounds like you need a test site
https://codex.bbpress.org/creating-a-test-site/
so that you can test things like installing bbpress prior to going live !
Anyway, back to your immediate issue, it will be very theme dependant, and sounds like your theme is doing something with search after you’ve disabled it
you say ‘our site continues to use the search functions that we setup. ‘ have you some special search function, or how is your search working?
In reply to: Forum subscription subscribes to all forumsok, thanks for the info, V useful, as at least it’s only a display, rather than changing what is subscribed, although obviously I appreciate that if you think you are subscribed to a forum when you’re not, you may be equally annoyed !
I really have no experience of buddypress, so let me have a think and I’ll come back shortly !
In reply to: Full Width for bbpress forums root page@lumartist – Good to have someone who is an expert on css on the forum – my css is rubbish !
In reply to: Forum subscription subscribes to all forumsIt could be a bbpress + buddypress + private groups issue
Buddypress filters some bbpress code, so my plugin may be overwriting a filter that buddypress is using to control either subscriptions or the info it is displaying about bbpres subs.
Did you check if subscribing to one forums ACTUALLY subscribes to them all, or whether buddypress is just saying that they are?
You could check this by unsubscribing from forum b, then subscribing to forum a, checking that buddypress says you’re subscribed to forums a & b, and then posting in forum b to see if you get an email.
In reply to: Forum subscription subscribes to all forumsmy plugin private groups should do what you want
ok I looked and it would require a filter to re-write
bbp_get_reply_author_link
held in
bbpress/includes/replies/template.php
This is beyond the time I currently have available – sorry !
In reply to: Forum subscription subscribes to all forumsPresume this doesn’t happen when you switch to a default theme?
Also test whether it is actually subscribing to all forums, or just saying that it is.
In reply to: Topics and Replies Not Showing UpOk so sorry it looks like a theme issue.
I don’t thin k it will help, but just might, so try
In reply to: Not seeing forum sidebarok, with the code in, try the following
Deactivate bbpress tweaks
Dashboard>plugins>bbpress tweaks>deactivateGo into widgets
Dashboard>appearance>widgetsAnd look at the bottom of the left hand side. You’ll see an “inactive sidebar”, with your entries on
Below this is an “inactive widgets”
Drag all the entries from the inactive sidebar to the inactive widgets area.
This then allows wordpress to delete the sidebar
I normally log out and in again at this stage – probably not needed, but I’ve never bothered to check
Then basically reverse the above
Re-enable bbpress tweaks
You see the bbpress sidebar returns
Drag the entries back from the inactive widgets area to the sidebar