Search Results for 'bbpress'
-
Search Results
-
Hi there,
there is quite alot of spam/bot user registration since I setup a bbpress forum on my site. I would like you to provide me with some useful tips on how to mitigate this or ideally stop it completely.
What are best practices dealing with spam in bbrpess/wordpress?
Thank you for your tips.
best regards, peter
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!
This is the third time I’ve posted this as the first two have not shown up on the forums (I do apologise if they all show up at once now)
I need to edit css for the ‘Register here’ and ‘forgot password’ pages as they look terrible in responsive view when logged out, I can use CSS Hero for this..
However, I am unable to do this because being logged into wordpress (to enable me to edit css) means that I only see the ‘logged in’ view of the ‘register here’ and ‘forgot password’ pages. Whereas it’s actually the ‘logged out’ view I need to edit.
If you type https://findgyms.co.uk/forgot-password/ into:
you should hopefully see what my dilemma is, as the unlogged in view should come up.
I hope this makes sense?
Any help would be greatly appreciated,
Tim
WordPress V. 5.4.2
BBPress V.2.6.5
Theem: AstraHi,
I want to insert a form (with three questions, for example ‘How much free time do you have? How do you spend your free time? What games do you like?’) on one page of my website and have a plugin to create one page linking the let say 20 most recent answers, so that visitors can read the most recent answers given by every other visitor.
Do you have any suggestion on how to do it or plugins to suggest?
I tried with BBpress shortcodes, but for there are no shortcodes allowing to collect at once and publish answers to different questions. A solution could be to post all the questions together as the first post of a new topic, and ask visitors to annswer, but there is no a short code such as [bbp-reply-form id=223] allowing visitors to post replies to this, without them needing to see or visit the forum (see discussion at https://bbpress.org/forums/topic/using-shortcode-bbp-reply-form-to-specific-topic/)
My website https://www.orientamento.it/, I am using Twenty seventeen and BBpress 2.6.5.
Thanks in advance for your help
Topic: bbPress Forums subtitle
Hello,
New to bbPress and have been following the guides and have had a lot of success.
I do have one question that my searches have not been able to solve.
I create a page called Forums and added the short code [bbp-forum-index] and that works but it adds a subtitle bbPress Forums to the heading of the page.
How do I turn that off?
Example from page:
ForumsbbPress Forums
Seems duplicated to me.
Sorry if this has been discussed but my searches have come up empty.
Topic: Change css id’s
Let me first state I am doing this for security in light of all the wordpress sites being hacked. I want to change the #bbpress css ID’s to something like #forum.
I am not much of a coder so could I ask how I go about this ? or is there an easier way to go about this ?