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] Display number of posts under the avatar of the person posting

7 Posts
3 Users
2 Reactions
2,496 Views
Posts: 100
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
(@jasontoth)
Estimable Member
Joined: 5 years ago
[#16442]

I see that on this forum there is a rank badge plus the number of posts under it. This is is the best layout with the little arrow that expands. How do you do this as I can't figure out where this setting is in my wpForo settings. Thanks.


6 Replies
1 Reply
Robert
Admin
(@robert)
Joined: 2 months ago

Support Team
Posts: 10736
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

@jasontoth,

you should change the top parent forum (category) layout to threaded layout. Please read this documentation to see how wpForo handles all four layouts and how you can manage them: https://wpforo.com/docs/root/categories-and-forums/forum-layouts/


Posts: 100
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
(@jasontoth)
Estimable Member
Joined: 5 years ago

I really like the simplified layout, clean, elegant, etc. The only point I wanted to bring over was just the number of posts under the avatar of the person posting. I don't want any other feature. Is that possible without switching the extended layout?


1 Reply
Tutrix
(@tutrix)
Joined: 6 years ago

Noble Member
Posts: 1519
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

@jasontoth

why don't you make your own thread for it, instead of post under "forum rating"?

but to your question

you can customize the post.php from layout 2

open the post.php from layout 2 with an Editor

search for

<div class="author-title">
<?php wpforo_member_title($member) ?>
</div>

add after

<div class="author-title"><?php wpforo_phrase('Posts') ?>: <?php echo intval($member['posts']) ?></div>

1. Create / wpforo / folder in your current active theme folder.

2. Create / layouts / folder in / wpforo / folder

3. Create / 2 / folder in / wpforo / layouts / folder

4. add the customize post.php in this folder

looks like this

wp-content / themes / your aktiv theme / wpforo / layouts / 2 / post.php

Theme Customization


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
Posted by: @tutrix

why don't you make your own thread for it, instead of post under "forum rating"?

I split this sub-discussion to a separate topic.


Posts: 100
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
(@jasontoth)
Estimable Member
Joined: 5 years ago

Okay, thank you for setting this up as a new topic.

I downloaded the post.php file from my /wp-content/plugins/wpforo/wpf-themes/classic folder.

I did the search for the item but could not find it. Am I using the right posts.php file?

<div class="author-title">
<?php wpforo_member_title($member) ?>
</div>

Posts: 100
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
(@jasontoth)
Estimable Member
Joined: 5 years ago

Sorry I just found it /wp-content/plugins/wpforo/wpf-themes/classic/layouts/2

Tested and that worked fine. Post number shows up. There are no commas separating the thousand, is that possible to add?

Also I added the recommended files to my Enfold child theme, but just wondering why I didn't replace the existing location. Is this so that updates don't overwrite this change?

Thanks again.


Share: