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

 Sort Search Results by:

Filter by custom fields

Topic prefix

AI Assistant
Notifications
Clear all

[Closed] Multiple Custom Badges/User Stats

13 Posts
3 Users
3 Reactions
8,930 Views
Robert
Posts: 10716
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

Hi thestephaniejns,

you can do any customization with wpForo and those will not be lost on future, please read this support topic: https://wpforo.com/community/general-discussions/wpforo-integrate-with-s2member/#post-479

 


Robert
Posts: 10716
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

If you need to add some information under users avatars on post list you should use posts.php file in according forum layout. For example if you use the first Extended layout you should copy /classic/layouts/1/posts.php and past in /wp-content/themes/your-theme/wpforo/layouts/1/ directory. Then do any customization you want.


Posts: 9
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
(@thestephaniejns)
Active Member
Joined: 10 years ago

Awesome, thanks Robert! Very helpful. I'll try those things.


Posts: 9
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
(@thestephaniejns)
Active Member
Joined: 10 years ago

I was able to get it to work by implementing the do_shortcode function from the link you sent on the post.php template (using the structure you describe for update-safe customizations). Here was the code I inserted (right under the author_title php blurb) if anyone else is interested in doing the same thing:

<?php echo do_shortcode('[broo_user_badges user_id="$member"]') ?>

Again, this is for integrating the Badgearoo plugin with wpForo, allowing it to show custom badges under the user's avatar/name in replies.


Posts: 9
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
(@thestephaniejns)
Active Member
Joined: 10 years ago

Okay, small problem... $member pulls the logged in user, not the post author. 🙁 any idea what php I can use to pull the post author? Thinking maybe it has something to do with the fact that it's within a shortcode but not sure how to get the badges to work otherwise...


Page 2 / 3
Share: