AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
Notifications
Clear all

[Solved] Full Latest Post

3 Posts
2 Users
0 Reactions
3,544 Views
Posts: 4
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@kaydev)
Active Member
Joined: 9 years ago
[#5094]

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?

Latest Topic

2 Replies
Robert
Posts: 10736
Admin
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@robert)
Support Team
Joined: 2 months 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
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@kaydev)
Active Member
Joined: 9 years ago

THANK YOU!

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


Share: