Forum Replies Created
-
In reply to: Auto close topic after some time / days
I can only say try it – sorry I am limited in time I can give free to things 🙂
keep playing and you should be able to work it out.
Otherwise would be paid effort – contact me via http://www.rewweb.co.uk/contact-me/
In reply to: Auto close topic after some time / daysok, so delete the previous code and put this code instead
function bbpress_close_old_topics() { // Auto close old topics $topics_query = array( 'author' => 0, 'show_stickies' => false, 'parent_forum' => 'any', 'post_status' => 'publish', 'posts_per_page' => -1 ); if ( bbp_has_topics( $topics_query ) ) while( bbp_topics() ) { bbp_the_topic(); $topic_id = bbp_get_topic_id(); $topic_date = strtotime( get_post( $topic_id, 'post_date', true ) ); $forum_id = bbp_get_topic_forum_id($topic_id); if ($topic_date < strtotime( '-2 hours') ) // && $forum_id == 1276 ) bbp_close_topic( $topic_id ); } }
In other words we take out the cron scheduling functions from the code
then
Event type: PHP cron event
Hook name: bbpress_close_old_topics
arguments: none
next run: now
repeat: hourlyThat should do it, you should see it as an event.
If you have a topic already set to expire, it should do so immediately as you have schgeduled to run ‘now and then every hour’ in the above.
In reply to: Auto close topic after some time / daysyes try that
In reply to: Auto close topic after some time / daysIn reply to: Auto close topic after some time / daysa cron event only runs at the interval specified, so the check event runs once a day ie
wp_schedule_event(time(), 'daily', 'bbpress_daily_event');
so would only close topics older than 2 hours once a day.
suggest changing that line to
wp_schedule_event(time(), 'hourly', 'bbpress_daily_event');
so it would run every hour, so topics would be closed between 2 and 3 hours depending on when cron runs in relation to their creation.
In reply to: seeking for ability to print a whole thread@taliabarlev solution beyond free help, but contact me via
In reply to: bsp topic display block widget in sidebar🙂
In reply to: Topic / Reply Moderation BehaviorI have copied it and incorporated it into
once activated go to
dashboard>settings>bbp style pack>Moderation
In reply to: New installation — main landing pages not renderingmy initial thoughts would be
and
In reply to: bsp topic display block widget in sidebartried those, still cannot replicate.
Can you try changing the forums in
forum='6,8,14'
to see if it is one of those affecting?In reply to: bsp topic display block widget in sidebarthat seems to be ok in my test site.
it might be a conflict between certain widgets
can you tell me what widgets you are using?
In reply to: styling forum name besides each topicGreat – glad you are fixed 🙂
In reply to: styling forum name besides each topicnote tested but possibly
#bbpress-forums .bbp-parent-forum-12345 p.bbp-topic-meta .bbp-topic-started-in a { background-color: #328C00; } #bbpress-forums .bbp-parent-forum-12346 p.bbp-topic-meta .bbp-topic-started-in a { background-color: #ff4b33; }
In reply to: styling forum name besides each topic#bbpress-forums p.bbp-topic-meta .bbp-topic-started-in a { background-color: #328C00; }
put this in your themes custom css area
In reply to: Hide “topic type”do you have FTP capability?
In reply to: Hide “topic type”it is hidden for participants
In reply to: Version 6.1 et derniere version bbpressgreat – glad you are fixed
Thanks for posting – should help someone else coming along later.
I’ve posted a trac ticket
so just for clarity, what lines of what file did you comment out?
In reply to: Version 6.1 et derniere version bbpressit is installed as an additional plugin, so should be in the plugins and settings.
once activated, navigate to
dashboard>settings>bbp style pack, and you should see the first tab called ‘Theme Support’ – if you don’t see this, come back.
In that tab, select
Enable Theme Support
and save
The forums should then display
In reply to: Version 6.1 et derniere version bbpressyou are using twenty twenty two theme.
install
once activated go to
dashboard>settings>bbp style pack>
and you can set to allow forums to work
In reply to: Indicator ‘New post’ remains after readingno problem, glad that you are fixed 🙂
In reply to: topic type and status are not availablethis is only available to ‘moderators’ and ‘keymasters’.
In reply to: Indicator ‘New post’ remains after readingok, that’s not a bbpress function.
It might well be an additional bbpress related plugin, what related plugins do you have ?
In reply to: Indicator ‘New post’ remains after readingthe dot for ‘new thread/response’ remaained for one.
sorry, not sure what this means, can you post an image