Forum Replies Created
-
In reply to: Limit new posts per week per user?
This code should do it
add_filter ('bbp_current_user_can_access_create_topic_form' , 'rew_only_one_topic', 10 , 1) ; add_filter( 'gettext', 'rew_change_text', 20, 3 ); function rew_only_one_topic ($retval) { //first check if they have access, only amend if they have if ($retval==true) { $user_id = wp_get_current_user()->ID; $role = bbp_get_user_role( $user_id ); if ($role == 'bbp_participant') { $last_posted = bbp_get_user_last_posted( $user_id ); if (time() <($last_posted + (60*60*24*31))) $retval = false ; } } return $retval ; } function rew_change_text($translated_text, $text, $domain ) { if ( $text == 'You cannot create new topics.') { $user_id = wp_get_current_user()->ID; $role = bbp_get_user_role( $user_id ); if ($role == 'bbp_participant') { $last_posted = bbp_get_user_last_posted( $user_id ); if (time() <($last_posted + (60*60*24*31))) { $translated_text = 'You cannot post a new topic - you have already posted a topic in the last month'; } } } return $translated_text; }
The 60*60*24*31 is 60 seconds, 60 minutes, 24 hours, 31 days, so you can change this to whatever you want in both places.
and you can change $translated_text = ‘You cannot post a new topic – you have already posted a topic in the last month’ to whatever phrase in whatever language you want.
Put this in your child theme’s function file –
ie wp-content/themes/%your-theme-name%/functions.php
where %your-theme-name% is the name of your theme
or use
In reply to: Abusive posterdashboard>users>all users>edit user and set their role to ‘blocked’
In reply to: change redirect link after submituntested, but this should do it
add_filter( 'bbp_new_topic_redirect_to', 'rew_forum_redirect_topic' , 10 ,3 ) ; add_filter( 'bbp_new_reply_redirect_to', 'rew_forum_redirect_reply' , 10 ,3 ) ; function rew_forum_redirect_topic ($redirect_url, $redirect_to, $topic_id ){ $redirect_url = 'http://mysite.fr/newsfeed' ; return $redirect_url ; } function rew_forum_redirect_reply ($redirect_url, $redirect_to, $reply_id ){ $redirect_url = 'http://mysite.fr/newsfeed'; return $redirect_url ; }
In reply to: bbPress Topics for Posts commentdoubtful – formats must match and suspect they won’t.
In reply to: bbPress Topics for Posts commenthere is fine, I look at both !
nothing exists – it could be written, but beyond free help.
The first obvious question would be how you define/choose ‘selected BBPRESS forum topics’
In reply to: title area removesorry, I don’t understand – you send me a picture with something that the site does not have, and ask how to remove it, when it isn’t there 🙂
In reply to: title area removeok, but I am not seeing the title in your image in the link you sent, so what is your issue?
In reply to: Remove Subscribe / Favourites links@ollietubb1 – posting a question which includes a link to your site called ‘getting a small busines loan’ does make you look like a spammer.
favorites and subscriptions are in
dashboard>settings>forums
In reply to: Limit new posts per week per user?oh, and just participants? ie Keymaster and moderators can post as many as they like?
In reply to: Limit new posts per week per user?should be doable, so :
1 topic per week, and any no. replies?
1 topic and one reply per week?
I topic or reply per week?etc?
In reply to: title area removeok a paid theme, so I can’t load it to see.
Have you a link to a live example?
In reply to: Photo enlargementsnot tested, but possibly this
In reply to: title area removeThis looks theme related, what theme are you using?
In reply to: identify user with @it would but far too much work to create
In reply to: identify user with @no it adds the buddypress feature to bbpress
In reply to: identify user with @that will be why it doesn’t work
In reply to: identify user with @Are you running buddypress as well ?
In reply to: Blank topic pages while using TwentyTwentyTwo theme.I have updated my style pack to detect and let you use 2022.
once activated go to
dashboard>settings>bbp style pack>theme support.
There are lots of settings in this plugin to let you improve the look of bbpress.
In reply to: only one image per post?an image is a link, so look at
dashboard>settings>discussion>comment moderation>no. links and set this as required
In reply to: Blank topic pages while using TwentyTwentyTwo theme.I should start by saying I am just a bbpress user who helps out here, I am not a bbpress author.
Twenty Twenty two is one of probably less than 6 themes that use the new ‘block theme’ way of building a theme. Indeed this is so new that the editor built to support it is still a ‘beta’ version.
My Personal view is that block themes are a solution to a problem that no-one has, and WordPress has lost it’s way.
But given that people including you will use this theme, I am trying to get bbpress to work with it.
I expect to release a new version of my bbpress style pack that will make this work in the next couple of days. I have a working prototype, albeit a basic version.
In reply to: Add picture in Profile Field DESCRIPTIONok, ‘users>profile fields’ is not bbpress, it may be buddypress, your theme or another plugin.
If it is buddypress, then
https://buddypress.org/support/In reply to: Add picture in Profile Field DESCRIPTIONwhen I setup custom Profile Fields
ok, sorry to keep asking questions, but it will hopefully get me to the stage when I can give an answer 🙂
so this is bbpress profile – yes?
and how are you setting up custom profile fields? – code, plugin, template change etc.?
In reply to: change redirect link after submitI have noticed the feature that allows to redirect to the index of the forum after submit new topic or reply.
to save me looking through, where is this setting exactly
ie
dashboard>settings>bbp style pack> then where?
In reply to: combination buddypress/bbpressThese all sound like buddypress not bbpress issues – have you posted this in the buddypress support forum?
In reply to: Add picture in Profile Field DESCRIPTIONa single picture accross all profiles, or picture per user, and if so who selects the picture and from where?