Search Results for '+.+default+.+'
-
Search Results
-
Some users on my bbpress site are facing ” ERROR: Duplicate topic detected; it looks as though you’ve already said that.” when they are trying to create a new topic. Issue persistent even when different terms are used, and crosschecked that a topic with the same name doesn’t exist.
bbpress version: 2.6.5
Wordpress Version: 5.4.2
Website link: https://nalsar.ac.in/forumsI am using the default Twenty Twenty theme.
So the warning raised was:
> Undefined index: latest-user
The code flagged was:
"%LATEST_USER%" => $this->stats["latest-user"]I did a bit more research and stumbled upon:
`
if( $this->parent->option[‘last_user’] === “on” ) {
$HTMLOutput[“last_user”] = $this->section_latestuser();
}
`At first I thought that
latest-userneeded to be changed tolast_user, or vice-versa. But I continued the research of the code and arrived here:`
array(
‘id’ => ‘last_user’,
‘label’ => __( ‘Latest Registered user’, ‘bbpress-improved-statistics-users-online’ ),
‘description’ => __( ‘Display the latest user to register to the site?’, ‘bbpress-improved-statistics-users-online’ ),
‘type’ => ‘checkbox’,
‘default’ => $this->defaults[‘last_user’],
‘class’ => ”
),
`I decided to have a look at my bbPress Advanced Statistics settings and this was actually unset. I have now switched it on:
Now the warning does not display. Also, it then occured to me that the code has this line:
$this->stats = $this->stats_extra( $activity );That function does this:
`
private function stats_extra( $activity ) {if( $this->parent->option[“bbpress_statistics”] == “on” ) {
// Add the bbPress Statistics
$activity[“bbpress”] = $this->get_formatted_statistics();
}if( $this->parent->option[“last_user”] == “on” ) {
// Get the HTML latest usser
$activity[“latest-user”] = $this->get_latestuser( true );
}if( $this->parent->option[“most_users_online”] == “on” ) {
// Get/set the most users ever online, users the active online users
$activity[“most-users”] = $this->get_mostusers( $activity[“count”][“active”] );
}return $activity;
}
`Therein is the problem. This function is conditionally populating the
statsarray based on user options. Makes sense, but, this function, makes assumptions:`
private function allowed_tags() {
// Store all of the strings currently replace
$this->_tags = array(
“%MINS%” => $this->parent->option[‘user_inactivity_time’],
“%COUNT_ACTIVE_USERS%” => $this->stats[“count”][“active”],
“%HOURS%” => $this->parent->option[‘user_activity_time’],
“%COUNT_ALL_USERS%” => $this->stats[“count”][“inactive”] – $this->stats[“count”][“guests”],
“%COUNT_ALL_GUSERS%” => $this->stats[“count”][“guests”],
“%COUNT_ACTIVE_GUSERS%” => $this->stats[“count”][“guestsa”],
“%USER_USERS%” => _n(“user”, “users”, $this->stats[“count”][“active”], ‘bbpress-improved-statistics-users-online’),
“%GUEST_GUESTS%” => _n(“guest”, “guests”, $this->stats[“count”][“guestsa”], ‘bbpress-improved-statistics-users-online’),
“%ALL_USER_USERS%” => _n(“user”, “users”, $this->stats[“count”][“inactive”] – $this->stats[“count”][“guests”], ‘bbpress-improved-statistics-users-online’),
“%ALL_GUEST_GUESTS%” => _n(“guest”, “guests”, $this->stats[“count”][“guests”], ‘bbpress-improved-statistics-users-online’),
“%USER_RECORD%” => $this->most_users( “record” ),
“%USER_RECORD_DATE%” => $this->most_users( “date” ),
“%USER_RECORD_TIME%” => $this->most_users( “time” ),
“%LATEST_USER%” => $this->stats[“latest-user”]
);// Apply any filters that may have been applied to the list of existing tags
if( has_filter(‘bbpas_replacement_tags’) ) {
$this->_tags = apply_filters( ‘bbpas_replacement_tags’, $this->_tags );
}
}
`I will be upfront here – I don’t know how to adjust the code so that it will not raise a warning when the Last Registered User setting it not checked. As a result I switched it on.
I just thought i would throw my findings out here as someone might be able to provide the tweak to make it correct.
have a good day!
Topic: Layout of my bbPress pages
My theme has settings to change layout for certain page types.
For the “Blog / Archives” type I set it to show just the left side bar:
https://www.publictalksoftware.co.uk/support-forums/
But when you drill down to a forum, eg:
It has two side bars again (2 bars is the site default).
It does has a setting for “single page posts” but I was reluctant to tick that since we have the profile page, various login pages, search page etc.
So how can we identify that this is a “forum view” or a “topic view” page and only show the one bar?
I have wordpress member login enabled on my website, and I want to remove the default bbPress login. I looked at bbp Style plugin but I can’t find a way to remove the default login.
Here is the link to the problem: https://www.shabdaacademy.com/forums/forum/life-sciences-forum/
There are two login mechanisms – 1. my member login, and 2. bbPress default login. How do I remove 2?
Thanks
Topic: bbpress Feller at
Warning: Creating default object from empty value in /var/www/schlauti/wp-content/plugins/bbpress/.bbpress.php on line 1635
I am a newbie on BBPress and just installed it and I’m in the process of setting it up. The problem is that the body columns are not aligning with the topic headings.
I did some testing and this is the default layout which is not aligning.
However if I create a new Page and insert the shortcode the alignment is perfect, so I’m not sure what’s happening, but I don’t want to create several dozen pages and insert shortcodes, so I’d like to figure out why it’s not aligning.
I’ve tried messing with some of the css but I couldn’t figure it out. Any help would be greatly appreciated.
Topic: Confirmation email overwrite
Hello,
I use the Better Notifications for WP plugin to override the default WP emails.
However, the email change confirmation email cannot be overwritten by the BNFW plugin.
This is what they wrote:bbPress is overriding BNFW and has a higher priority when sending out notifications. This would be something that would have to be changed in bbPress in order to be compatible.
If I deactivate bbPress and change the password on the WP profile page, the BNFW confirmation email will be sent.
So the bug is in bbPress anyway, as it doesn’t allow to overwrite the confirmation email.
How can this error be fixed?
I appreciate any ideas!
I’m trying to clarify for myself the situation regarding “freshness” and I have several questions about that. There’s been a lot of discussion about this and there are a number of tickets, but I’m having trouble putting it all together. I apologize for rehashing old ground.
(1) Freshness vs Last Post
Sometime in the last few releases things changed so that (at least by default) the top level forum shows “Last Post” where it used to show “Freshness.” Is this (1) A temporary measure until freshness is fixed, (2) A change in philosophy, or (3) Simply a change in the “default” of something that can be configured?
(2) Freshness tickets
When I search on trac for open tickets which mention freshness, I come up with: 1925, 2659, 2876, 3310, 3356. I’ve seen it mentioned in the forums a number of times that freshness is a known problem, but I don’t see that any of these tickets is (I’m not sure how to say it but) the “main ticket” for the underlying problem. Can anyone help me out with this?
(3) bbp style pack
In many of the conversations about freshness (and other problems like threading and indentation) bbp style pack is the only thing mentioned as a solution. I’m almost getting the impression that this plugin is considered kind of a necessary part of bbPress, in order for things to work properly. Comments?
—
I’m still learning about bbPress and if anyone wants to point me to any “background” information or documentation that I *should* have already looked at, that would be appreciated.