Search Results for '+.+default+.+'
-
Search Results
-
Hi,
I’m using Buddypress together with BBpress. I’ve an issue and I’m hoping someone can help me with it.
When I (or someone else) create a new Buddypress-group on my website, I always choose to make a new group-forum. These forums have no ‘sub/child-forums’ by default. If you want there to be ‘sub/child-forums’ you should make them all by hand. I’ve around 60 groups (and counting), so you understand it’s a LOT of work if you want all the group-forums to have the same (same names, different private forums) sub-forums. Plus, I want my moderators to have the possibility to create groups (with a standard forum) and I can’t be there all the time to immidiatly make the sub-forums (including the right subtext and forum-image).
So, is there an option to make some ‘default sub forums’ (with image and subtext) that ALWAYS automatically ‘ll be created when you make a new group with forum? So for example: the default forums are ‘pregnancy’, ‘birthdays’ and ‘animals’. I make a new group called ‘Group 1’ and I choose ‘Yes, I want to create a forum for this group’. Then I open the brand new group-forum, and hooray! It has 3 brandnew subforums: ‘pregnancy’, ‘birthdays’ and ‘animals’. Only viewable for the group-members.
After that, I create a second group, called ‘Group 2’ and I choose ‘Yes, I want to create a forum for this group’. Then I open the brand new group-forum, and hooray again! It had 3 brandnew subforums (so, not the same forums you see in the group 1 forum), only viewable for group 2-members.
Can someone help me with this? 🙂
Hi
I have just installed bbPress on my site. I craeted a test user to see how it works. I was horrified to see that the email included a url for registration that is the admin url I use. I have changed this from the default for reasons of security and do not realy want to be sending out my wp admin login url to everyone who registers on the site. Is there a way around this or is it a wordpress thing?
Topic: customize breadcumbs
Hi,
I am using the Enfold theme which seems to disable the bbpress default breadcrumbs. I re-enabled them for better user navigation with the following code in child theme functions.php
//show bbpress forum breadcrumbs add_action('after_setup_theme', function() { remove_filter('bbp_get_breadcrumb','avia_fetch_bb_trail',10,3); }, 9999);
Breadcumbs are displayed as seen for example here: https://hatopia.de/community-forum/thema/ich-erstelle-auch-ein-thema-weil-ich-was-zu-sagen-habe/.
I want to change the default breadcumbs a bit in order to have better UX.
First, I want to change the text of ‘Startseite’ to ‘Home’. Second, I want to change the name of ‘Foren’ to ‘Community’ and change the link of ‘Foren’ to another link (‘…/community’).Can this be achieved and if so how?
Thank you for the support and best regards, Peter
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-user
needed 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
stats
array 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?