Notifications
Clear all

wpForo 1.x.x [Solved] Full Latest Post

3 Posts
2 Users
0 Likes
2,490 Views
Posts: 4
Topic starter
(@kaydev)
Active Member
Joined: 7 years ago

How can I get the full latest post to show and not be cut off. Please see my screenshot.

What file and code do I need to change?

2 Replies
Robert
Posts: 10503
Admin
(@robert)
Support Team
Joined: 8 years ago

You should customize wpForo Topic template file (update save way):

1. Create a /wpforo/ folder in your WordPress active theme folder. Create /layouts/ folder here, then /1/ folder in layouts folder. The end path should be: /wp-content/themes/your-theme/wpforo/layouts/1/

2. Copy topic.php file from plugin folder /wp-content/plugins/wpforo/wpf-themes/classic/layouts/1/ directory to the wpforo/layouts/1/ folder in WordPress active theme (created on 1st step).

3. Open just copied /wpforo/layouts/1/topic.php file.

4. Find this code:

<?php echo esc_html( wpforo_text($first_post['body'], 50, false)) ?>

5. Replace to this:

<?php echo $first_post['body'] ?>

6. Find this code:

<?php echo (( $post_body = esc_html(wpforo_text($post['body'], 50, FALSE)) ) ? $post_body : esc_html($post['title'])) ?>

7. Replace to this:

<?php echo $post['body'] ?>
Posts: 4
Topic starter
(@kaydev)
Active Member
Joined: 7 years ago

THANK YOU!

I also made a few other changes because member's names were also too short and being cut off.