You can refer to the source code in http://camaushop.net/
only thing i can think of is changing this
<?php do_action( 'bbp_theme_before_topic_title' ); ?>
<a class="bbp-topic-permalink" href="<?php bbp_topic_permalink(); ?>"><?php bbp_topic_title(); ?></a>
<?php do_action( 'bbp_theme_after_topic_title' ); ?>
to this
<?php do_action( 'bbp_theme_before_topic_title' ); ?>
<a class="bbp-topic-permalink" title="<?php bbp_topic_excerpt?>" href="<?php bbp_topic_permalink(); ?>"><?php bbp_topic_title(); ?></a>
<?php do_action( 'bbp_theme_after_topic_title' ); ?>
1.
change the size to a 48
put this into your child themes functions.php file or a functionality plugin
function rkk_topic_av() {
echo bbp_get_topic_author_link( array( 'size' => '48' , 'type' => 'avatar'));
}
add_action('bbp_theme_before_topic_title','rkk_topic_av');
then use this CSS
put this into anywhere you can put custom CSS
a child themes style.css
jetpacks custom css module
any standalone custom css plugin.
li.bbp-topic-title .avatar-48 {
float: left;
margin-right: 5px;
}
2. i guess use the text-overflow property in CSS
here is an example.
http://www.w3schools.com/cssref/tryit.asp?filename=trycss3_text-overflow
functions.php:
/**
* webdeveloperswall.com/buddypress/check-if-a-user-is-online
**/
function is_user_online($user_id, $time=5){
global $wp, $wpdb;
$user_login = $wpdb->get_var( $wpdb->prepare( "
SELECT u.user_login FROM $wpdb->users u JOIN $wpdb->usermeta um ON um.user_id = u.ID
WHERE u.ID = $user_id
AND um.meta_key = 'last_activity'
AND DATE_ADD( um.meta_value, INTERVAL $time MINUTE ) >= UTC_TIMESTAMP()
" ,APP_POST_TYPE
));
if(isset($user_login) && $user_login !=""){
return true;
}
else {return false;}
}
pastebin.com/hEfRfKGe
members-loop-php (BuddyPress)
pastebin.com/9AyQJHBe
member-header.php (BuddyPress)
Probably the same process for bbPress alone. Cannot ruin now all to test it.
Font Awesome needs to be activated for frontend. Or more easy, activate Dashicons for frontend and use some other SVG icon.


Some CSS:
.bp-user #buddypress .online .fa-wifi {
color:green;
font-size:22px;
}
.bp-user #buddypress .offline .fa-wifi {
color:#cf4d35;
font-size:22px;
}
.bp-user #buddypress .online,
.bp-user #buddypress .offline {display:inline-block; text-align:right;float:right;}
.members #buddypress .online-list .fa-wifi {color:green; font-size:15px;}
.members #buddypress .offline-list .fa-wifi {color:#cf4d35; font-size:15px;}
#buddypress .online-list,
#buddypress .offline-list,
#buddypress .offline,
#buddypress .online {font-size:12px;}
1,i have several problems atm i am using bbpress and buddypress one i have a random yellow block on my forum page
http://lexmotoownersclub.com/forums/
2, my topics show up under all parents ie lexmoto adrenaline show stay under lexmoto adrenaline and not show up under all category
3, This forum contains 1 topic, and was last updated by Profile photo of ADMINB ADMINB 1 day, 16 hours ago. want this removed
i have tried changing themes and also pluging im no good at messing around in code noobie here
thanks 🙂
Great – thank you very much. Works fine and looks great.
A couple quick questions:
1. Any suggestions on how to get the “Started by” text and username to display right under the topic title, to the right of the avatar, just like the topic title? Right now it is under the avatar.
2. Long topic tiles are now wrapping under the avatar. Any suggestion on how to style the second line of title so it doesn’t wrap, but stays indented as the first line of the topic?
I’m looking at the code and css and can’t figure it out. Thanks!
you can use this PHP function
function rkk_topic_av() {
echo bbp_get_topic_author_link( array( 'size' => '32' , 'type' => 'avatar'));
}
add_action('bbp_theme_before_topic_title','rkk_topic_av');
here is some custom CSS you can use.
li.bbp-topic-title .avatar-32 {
margin-right: 5px;
}
then to remove the small one you can copy loop-single-topic.php into your child theme into a folder called bbpress.
look for
<span class="bbp-topic-started-by"><?php printf( __( 'Started by: %1$s', 'bbpress' ), bbp_get_topic_author_link( array( 'sie' => '14' ) ) ); ?></span>
change it to.
<span class="bbp-topic-started-by"><?php printf( __( 'Started by: %1$s', 'bbpress' ), bbp_get_topic_author_link( array( 'type' => 'name' ) ) ); ?></span>
I did end up creating a local test environment to find that solution
Having a test environment is something that every site should have !!
https://codex.bbpress.org/creating-a-test-site/
Not one I’ve heard of.
I can’t find the word ‘unable’ in this context within bbpress at all – can you get your user to get the EXACT wording including capitals, spaces and punctuation, so that I can track whereabouts in the code it appears.
Also what plugins are you running that could have this in them?
bbPress i think will have @mentions in a future release, but for now you can use BuddPress’s own scripts for bbPress using this function.
add it to your child theme functions.php or a functionality plugin
function custom_bbpress_maybe_load_mentions_scripts( $retval = false ) {
if ( function_exists( 'bbpress' ) && is_bbpress() ) {
$retval = true;
}
return $retval;
}
add_filter( 'bp_activity_maybe_load_mentions_scripts', 'custom_bbpress_maybe_load_mentions_scripts' );
ok, suggest you create a test site and try to fix there
https://codex.bbpress.org/creating-a-test-site/
I’ve been searching, and there seems to be no solution for creating a unique topic icon for each individual forum (i.e – to be displayed to the left of each forum title/description). There is a plugin which pulls the image from the first topic, but that want work for many such as myself.
I’m no coder by any means, but my idea was to insert some simple php (if statement) in the template file, maybe right after “bbp-forum-info” in loop-forums.php
Something such as this:
<?php
global $post;
if ( is_single('17', $post->ID) ) {
echo '<div class="forum_pic1"></div>';
} elseif ( is_single('19', $post->ID) ) {
echo '<div class="forum_pic2"></div>';
} elseif ( is_single('18', $post->ID) ) {
echo '<div class="forum_pic3"></div>';
} else {
echo '<div class="forum_pic_default"></div>';
}
?>
The topic numbers would equal the forum topics. This would allow a unique topic icon to be shown for each unique forum. The “forum_pic” divs could be used to display a background image or even a font-awesome font (using css background property).
Anyone have any suggestions for this? Will the idea (with proper code) work? Anybody with some php under their belt willing to take a shot?
Or, is there another completely different method to accomplish this, which is easier?
Thanks for any suggestions.
I’ve looked all through the theme and been unable to find it, but they do advertise it as being bb Press ready, so it may be something on the back end I can’t see.
The CSS is brilliant though! I don’t know why I didn’t think to try that! (Though I suppose I wouldn’t have known what the function causing it to display is without you identifying it).
I’ve already got custom CSS to get the forums to inherit my background color, so 3 little lines of code added there took care of my issue!
Thanks so much for the help and for bearing with me!
you could put the following at the bottom of your style.css
.bbps-post-count {
display: none !important;
}
That should hide it.
Functions files and child themes – explained !
There is a link at top of forums: Create New Topic
I am trying to add a div class to this link so I can either remove it all together, or at least hide it on mobile devices.
Anyone know where I can add this class (what template files, where in the code, etc). I’ve been digging through template files with no luck.
It’s weird, because every other link/element has a class in that area, except this one.
Anyways, thanks for any clarification.
put this in your functions file
add_filter('protected_title_format', 'ntwb_remove_protected_title');
function ntwb_remove_protected_title($title) {
return '%s';
}
add_filter('private_title_format', 'ntwb_remove_private_title');
function ntwb_remove_private_title($title) {
return '%s';
}
or use
https://wordpress.org/plugins/bbp-style-pack/
which has a setting for this
bbPress 2.5.6 have some changes with this. Filter bbp_notify_subscribers renamed to bbp_notify_topic_subscribers.
Does anyone have auto-unsubscribe code for Mandrill hard bounces? So eg if a user gets a topic subscription email and it has a hard bounce, you use the response to unsubscribe them from the topic?
This is really just a shot in the dark before looking into it myself. I’m feeling a bit lazy…
@t3_rrY — I think you’d use the mandrill_payload filter as explained here: http://blog.mandrill.com/own-your-wordpress-email-with-mandrill.html
You could add it into @korobochkin’s code. I haven’t tried it – I’m not sure how the template is handled (I don’t use them) but that’s where I start. You can also simply add html to the message in the functions above, although for anything the least bit complicated design-wise, a template would be the way to go.
I’ve just started using Mandrill; it’s great, isn’t it?
i say use <?php bbp_topic_reply_count() ?> and use math with it.
this code and where i think you want to modify it should be in loop-single-topic.php
make sure you copy it to your child theme into a folder called bbpress so an update doesnt lose your data.
Hi Robin,
I deactivated all plugins. Error still remains.
I switched the theme back to twentytwelve, it works fine!
Okey. Could be the template functions.php…and YES it was!
I still had the code inside
add_filter( ‘bbp_verify_nonce_request_url’, ‘my_bbp_verify_nonce_request_url’, 999, 1 );
function my_bbp_verify_nonce_request_url( $requested_url )
{
return ‘http://localhost:1337′ . $_SERVER[‘REQUEST_URI’];
}
Stupid mistake.
Sorry for dealing with that.
Thanks for your help!
use this CSS
#bbpress-forums ul.bbp-reply-revision-log img.avatar,
#bbpress-forums ul.bbp-topic-revision-log img.avatar,
#bbpress-forums div.bbp-template-notice img.avatar {
display: none!important;
}
Greetings,
I have tons of spam users registered on my forum that never posted anything (I guess that most didn’t even got the password that is sent by mail).
I would like to cleanup my messy list of users, but without risking loosing additional information.
I’ve found this post http://www.blogercise.com/delete-spam-users-from-bbpress-2/
DELETE *
FROM wp_users
WHERE ID NOT IN
(SELECT post_author FROM wp_posts
UNION SELECT user_id FROM wp_comments)
and metadata:
DELETE A FROM wp_usermeta A
LEFT JOIN wp_users ON user_id=ID
WHERE ID is NULL
Just wondering if this select is safe enough to cleanup all users who never started or replied a topic.
Any chances on deleting an active user?
btw:
Running wordpress 4 and bbpress 2.5.6 (this forum was imported from bbpress standalone, I guess that it was version 1.4)
Thanks