Quantcast
Channel: bbPress.org » All Posts
Viewing all articles
Browse latest Browse all 3638

Reply To: Some startup help in designing my own theme?

$
0
0

Which one did you link me?

Robin’s plugin for just bbPress fields.

What I did, which seems to work fine for now…

Yeah I told you the WordPress code would work. If you want cleaner templates you may nee to use the hook.

bbp_theme_after_reply_author_details

I might be saying very stupid things here (gotta learn some way), but I tried changing bbp_theme_before_topic_title to bbp_topic_class which is what my inexperienced self thought would do the trick, but it didn’t.

Oh, you are trying to make a post class. You can try this to see if it adds a new-topic post class to any new topics. I haven’t tested this though.

add_filter( 'bbp_get_topic_class','rkk_unread_topic' );
function rkk_unread_topic($classes) {
	$offset = 60*60*1;
	if ( get_post_time() > date('U') - $offset ) {
			  $classes[] = 'new-topic';
		  return $classes;
	}
}

Viewing all articles
Browse latest Browse all 3638

Trending Articles