Forum Replies Created
-
In reply to: Forum index not ordering topics by Freshness
Thank you. Any chance to fix this without plugin?
In reply to: Forum index not ordering topics by FreshnessI found an strange relation between sticky topics and this issue!
If I stick a topic to the front (make it sticky), the forum index will behave as decribed above. When there is no sticky topic, the forum index sorts topic by freshness time.In reply to: Forum index not ordering topics by FreshnessSorry to bring this ancient topic up! But this issue is stil present after 11 years! It’s not a theme issue, I changed theme to the wordpress default.
Topics are sorted by freshness in each individual forum, but not in the forum index page at example.com/forum
I also added this in my custom plugin, bt no success:
function freshness_topic_order( $args ) { $args['meta_key']='_bbp_last_active_time'; $args['orderby']='meta_value'; $args['order']='DESC'; //change to ASC to put oldest at top return $args; } add_filter('bbp_before_has_topics_parse_args','freshness_topic_order');
put it in your theme’s function.php file.
or if you have buddypress installed too, put it in bp-custom.php.Glad to hear that 🙂
It woked. Thank you so much 🙂 🙂
I wish I knew you as well…I would appreciate it if any developer can help.
In reply to: Allow HTML from usersI’m using this, and it works fine:
if ( !function_exists( 'ja_filter_bbpress_allowed_tags' ) ) { function ja_filter_bbpress_allowed_tags() { return array( // Links 'a' => array( 'href' => array(), 'title' => array(), 'rel' => array() ), // Quotes 'blockquote' => array( 'cite' => array() ), // Code 'code' => array(), 'pre' => array(), // Formatting 'em' => array(), 'strong' => array(), 'del' => array( 'datetime' => true, ), 'span' => array( 'lang' => array(), 'style' => array() ), 'p' => array( 'dir' => array(), 'style' => array() ), 'div' => array( 'class' => array() ), // Lists 'ul' => array(), 'ol' => array( 'start' => true, ), 'li' => array(), // Images 'img' => array( 'src' => true, 'border' => true, 'alt' => true, 'height' => true, 'width' => true, ) ); } } add_filter( 'bbp_kses_allowed_tags', 'ja_filter_bbpress_allowed_tags' );
In reply to: bbPress to BuddyPress site-wide?I tried many times, but i couldn’t successfully convert forums from bbpress1 to bbpress2 in a Buddypress installation. So I gave up! That was totally a mess.
I have +10,000 posts in bbpress1, and during migration I allways got timeout errors.
after a partly migration, all forums were empty in buddypress (but in bbpress URLs, they was ok). So nothing worked in buddypress.
Users avatars also changes to the default picture in bbpress2.
AT FIRST, BACKUP YOUR DATABASE.