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

[Closed] Width of Latest Posts/Topics in Recent Posts & Extended Layout

9 Posts
4 Users
2 Reactions
6,503 Views
Posts: 30
 envi
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
(@envi)
Eminent Member
Joined: 8 years ago
Posted by: @robert
Posted by: @robert

I'm sorry but there is no way to do this. CSS is not enough. These usernames are cut in wpForo template files. We'll add a filter hook in future versions to allow you control the max number of chars.

Did you add this filter? If yes, how can I control the max number of chars now?

Ok, I see.

Do you still plan to add a filter hook about this in future versions?


Robert
Posts: 10754
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: 3 months ago
Posted by: @envi

Ok, I see.

Do you still plan to add a filter hook about this in future versions?

Hi @envi,

The hook is not needed. You can use the Extended Layout template file to customize.

1. Create /wpforo/ folder in your active WordPress theme, then create /layouts/ in that folder then /1/ folder. The end folders should be: /wpforo/layouts/1/

2. Copy wp-content/plugins/wpforo/wpf-themes/classic/layouts/1/forum.php file and paste in the /wpforo/layouts/1/ folder you created in #1 step.

3. Open forum.php file and find this code:

<?php wpforo_member_link($member, 'by', 9); ?>

4. Change the third "9" argument to whatever you want. It's the number of username chars.

 

This is the wpForo template file customization in upgrade-safe way. You can read more in wpForo Documentation:

 


1 Reply
Robert
Admin
(@robert)
Joined: 3 months ago

Support Team
Posts: 10754
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
Posted by: @nutritionchat

Hi @robert, thanks for your fix for this (and thanks for your great plugin!)

In the same way, I also wish to extend the width of field: .wpforo-last-post-user as part of 'First post and replies'.

I've looked through the forum.php file to try to make a similar edit, but I'm unable to find the relevant code.

Could you please provide a newbie with a clue? 🙂

Hi @nutritionchat,

Please show it on some screenshot.


Page 2 / 2
Share: