i have also updated in theme, we use style 2 forum.php
<p class="wpforo-last-post-author">
<?php wpforo_member_link($member, ''); ?><span class="wpforo-date wpforo-date-ago">, <?php
$last_post_date = date("Y-m-d", strtotime($forum['last_post_date'] . '+1 hour'));
$current_date = date_i18n('Y-m-d');
if ($last_post_date === $current_date) {
echo esc_html__( 'heute um ', 'text-domain' ) . date_i18n('H:i', strtotime($forum['last_post_date'] . '+1 hour'));
} elseif ($last_post_date === date_i18n('Y-m-d', strtotime("-1 day"))) {
echo esc_html__( 'gestern um ', 'text-domain' ) . date_i18n('H:i', strtotime($forum['last_post_date'] . '+1 hour'));
} else {
echo esc_html__( 'am ', 'text-domain' ) . date_i18n('d/m/Y H:i', strtotime($forum['last_post_date'] . '+1 hour'));
}
?></span>
</p>
and for style 2 topic.php
<div class="wpforo-last-post"><span class="wpforo-last-post-author"><?php wpforo_member_link($last_post_member, ''); ?><span class="wpforo-date wpforo-date-ago">, <?php
$last_post_date = date("Y-m-d", strtotime($last_post['created'] . '+1 hour'));
$current_date = date_i18n('Y-m-d');
if ($last_post_date === $current_date) {
echo esc_html__( 'heute um ', 'text-domain' ) . date_i18n('H:i', strtotime($last_post['created'] . '+1 hour'));
} elseif ($last_post_date === date_i18n('Y-m-d', strtotime("-1 day"))) {
echo esc_html__( 'gestern um ', 'text-domain' ) . date_i18n('H:i', strtotime($last_post['created'] . '+1 hour'));
} else {
echo esc_html__( 'am ', 'text-domain' ) . date_i18n('d/m/Y H:i', strtotime($last_post['created'] . '+1 hour'));
}
?></span>
</span>
</div>
by the way, i do not find any way at the moment how i safe the widgtes code outside the plugin that is still work after wpforo plugin have a update, with theme is no problem if you move too wp-theme folder.