Forum Replies Created
-
In reply to: how do I remove first two parts of breadcrumb?
could be various reasons why this is happening – you have also posted in my style pack support forum, so I’ll pick it up there.
In reply to: how do I remove first two parts of breadcrumb?my style pack plugin lets you amend breadcrumbs, including not showing the home breadcrumb.
after activation go to
dashboard>settings>bbp style pack>breadcrumbs
In reply to: Only social login membersbbpress just uses the worpress login.
On first login, users are given the default role on dashboard>settings>forums
so it should all be fine.
In reply to: Threading not workingok it works on bbpress with a twentyten theme – that’s all I can say.
Can you define down more what ‘not working’ means
Without a site to see, at the moment you are telling us that your car won’t work, but that’s all the information you give:-)
In reply to: bbp_reply_url not working for large topicsThat’s great, and the info on the site page helped greatly, particularly that bbp_get_topic_reply_count() has a number with the comma in it.
Replies are stored in the wp_posts table. The code creates an entry for the reply order in ‘menu_order’ where there is none, which is what I hoped my filter was fixing. But if the entry has already been created, then it just uses what is in the database. So when you look at a reply, if it has no entry it creates one and then uses that. So by merely looking at a reply you can alter the database! That may explain your funny but strange fact – just by examining an entry you may be changing what is stored !
Where the reply appears in the display is held in that table under ‘menu_order’
so I suspect that for instance reply id 119119 – which I looked at – has a bbp_get_topic_reply_count() value of 1,062.
Can you check the entry in phpmyadmin
SELECT
menu_orderFROM
wp_postsWHERE
ID= '119119'
and see if the entry reads 1,062 or 1062 or 0 !
That will get us further forward
In reply to: Copy Link in Forum. WP logo insidethis isn’t a bbpress thing – wordpress does this for comments, and bbpress just hooks to that.
A quick google found this which shows you how to change the files.
https://www.ostraining.com/blog/wordpress/embed-theming/
sorry – writing a specific solution for you is beyond free help.
In reply to: Remove Topic Tags / (bbPress) Statistics Widgetcreate a directory on your child theme called ‘bbpress’
ie wp-content/themes/%your-theme-name%/bbpresswhere %your-theme-name% is the name of your child theme
find
wp-content/plugins/bbpress/templates/default/bbpress/content-statistics.php
Make a copy of this file, and put in in the directory called bbpress that you created above, so you end up with
wp-content/themes/%your-theme-name%/bbpress/content-statistics.php
bbPress will now use this template instead of the original
and you can amend thisso copy this file to your PC and open it up.
then remove lines 37-40 which say
<dt><?php _e( 'Topic Tags', 'bbpress' ); ?></dt> <dd> <strong><?php echo esc_html( $stats['topic_tag_count'] ); ?></strong> </dd>
and save the file back to your website at wp-content/themes/%your-theme-name%/bbpress/content-statistics.php
and yes being a child theme change it won’t get overwritten.
In reply to: Remove Topic Tags / (bbPress) Statistics Widgetdo you know how to change a file and ftp this to your site?
If so I’ll give you instructions
In reply to: Maximum Number of Posts Per Thread Page?I’d suggest that something else is disrupting the setting
It could be a theme or plugin issue
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: Notification from bbpress to buddypresssuggest you also post in
In reply to: Buddypress notificationsprobably 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