Forum Replies Created
-
In reply to: Buddypress notifications
probably a buddypress question, have you posted in their forum as well ?
In reply to: bbp_reply_url not working for large topicsps if it doesn’t, do you have phpmyadin access?
In reply to: bbp_reply_url not working for large topicsMuch of this is written so that I can come back to it in future, so bear with me!!
IF YOU JUST WANT THE ANSWER – IGNORE THIS SECTION
bbp_reply_url() calls bbp_get_reply_url.
This function does maths by dividing the reply position by the number of replies per page in /includes/replies/template on line 487
$reply_page = ceil( (int) bbp_get_reply_position( $reply_id, $topic_id ) / (int) bbp_get_replies_per_page() );
bbp_get_reply_position gets the menu order in line 1742
$reply_position = get_post_field( 'menu_order', $reply_id );
Now I’m not sure if this reply position is comma separated, or if it is blank, then the rest of this function is adding a comma. The remainder of then function calls bbp_get_reply_position_raw which is in /includes/replies/functions
this calls bbp_get_topic_reply_count, and in this function I think we have the issue.
The function is in /includes/topics/template but in includes/core/filters.php
we have a hook in line 177 which has
add_filter( 'bbp_get_topic_reply_count', 'bbp_number_format', 10 );
‘bbp_number_format’ by default pouts the 000’s comma separator in.
so if we remove this filter it should work.
END OF…..IF YOU JUST WANT THE ANSWER – IGNORE THIS SECTION
So try this in your functions file
add_action('plugins_loaded', 'rew_fix_reply_numbers'); function rew_fix_reply_numbers () { remove_filter( 'bbp_get_topic_reply_count', 'bbp_number_format', 10 ); add_filter( 'bbp_get_topic_reply_count', 'rew_number_format', 10 ); } function rew_number_format( $number = 0, $decimals = false, $dec_point = '.', $thousands_sep = '' ) { // If empty, set $number to (int) 0 if ( ! is_numeric( $number ) ) $number = 0; return apply_filters( 'rew_number_format', number_format( $number, $decimals, $dec_point, $thousands_sep ), $number, $decimals, $dec_point, $thousands_sep ); }
Let me know either way if this works !!
In reply to: loop-topics-1234.php not possible in BBPress?sorry – in a word – No. 🙂 I’m not a bbpress author, but the template hierarchy is optional not mandatory viz
‘With the exception of the basic index.php template file, you can choose whether you want to implement a particular template file or not.’
Conditional tags will provide a perfectly good solution, and are a recommended alternative viz
‘You can also use Conditional Tags to control which templates are loaded on a specific page.’, so yes that will be the root to go.
In reply to: Need help to add social login to bottom of BBpressthanks
Nice looking site – well done !
In reply to: Need help to add social login to bottom of BBpresswould be great to post the solution here to help others asking the question in future
In reply to: Disable Text Editor and use of HTMLin which part of the site (front end/backend) and for which users (all/keymaster etc.)
In reply to: Small template issuescombination of your theme and bbpress, sorry but nothing that bbpress can do directly about this, works fine on all default wordpress themes.
you can of course alter it with css for your theme.
In reply to: Remove rel=”nofollow” for admin only?may well be. you’ll need to post on the buddypress support site for help – I know little of buddypress !
In reply to: GDPR EU legislation@stagger-lee sorry I’d missed that line in @rimfaxe ‘s comments, but rise above it please.
@rimfaxe the last sentence to stagger-lee is across a boundary and on the personal side -please keep comments to the matter not about the people.Always hate it when I feel I hate to actually moderate, so please keep this friendly.
In reply to: GDPR EU legislation@stagger-lee please be more careful with your comments, people are entitled to opinions and you are entitled to disagree. You are not entitled to tell others that they may or may not say.
Up until the last two sentences it was fine, please consider re-wording or removing this last part
In reply to: Oh bother! No topics were found here!hmmm – that’s one I wrote, great that it works, but if it was working before then an update to theme or a plugin will be the cause, but as that fixes no further investigation needed !
In reply to: Oh bother! No topics were found here!ok, I think you should try 3 things
1. reset permalinks – I doubt it is this, but always an easy first thing
Dashboard>settings>permalinks and just click save – this resets them
2. try and run repair
Dashboard>tools>forums>repair forums and run one at a time
3. If those 2 fail, the it may well be an update problem, so I’m afraid you’ll need to try this
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 twentyfifteen, and see if this fixes.
Then come back
In reply to: Help! “newbie” bbpress login problemsno, as I use widgets, so haven’t delved into plugins
In reply to: Notification SystemsI haven’t used this one for a while, but probably still works
or this one
In reply to: Copy Link in Forum. WP logo insideI’ve done some more digging…
Wordpress uses an embed function to do this, which my simple css changes won’t alter
There are 3 ways to overcome this, as pre this blog
https://kinsta.com/knowledgebase/disable-embeds-wordpress/
The first is a plugin, but that is an old one.
I tested
and this worked fine.
In reply to: Deleting thousands of spam topicsdashbaoard>topics>all topics
top right of screen click ‘screen options’
change ‘number of items per page’ to 999 and you can delete 999 at a time, it will take while to refresh but only 4 times needed to get rid of 3400
Pascal (@casiepa) has been in touch with the bbpress topics for posts author, and Pascal is taking it over, so expect an updated version soon.
In reply to: Copy Link in Forum. WP logo insideyou have warning triangles next to each, so it doesn’t like something.
Try typing one rather than copy/paste and see if that makes a difference
In reply to: Copy Link in Forum. WP logo insideyou will also need to change the fonts as it is currently black, so also add these
.wp-embed { color: #fff !important; }
and
.wp-embed-heading a { color: #fff !important; }
In reply to: Copy Link in Forum. WP logo insideEasiest way is to change the display using css. Add these to your theme custom css
remove logo by
.wp-embed-footer { display: none !important; }
and change the background via
.wp-embed { background: #000 !important; }
In reply to: Oh bother! No topics were found here!new forum? old forum stopped working? converted forum? just started happening? been happening for ages ? what have you upgraded?
In reply to: Copy Link in Forum. WP logo insideyou’ll need to explain what exactly you are doing – ie what do you mean by ‘product’ and how are you copying it and pasting it
In reply to: bbpress topic problemthanks for the update