Notifications
Clear all

[Closed] Multiple Custom Badges/User Stats

13 Posts
3 Users
3 Reactions
6,740 Views
Robert
Posts: 10587
Admin
(@robert)
Support Team
Joined: 9 years 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: 10587
Admin
(@robert)
Support Team
Joined: 9 years 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
(@thestephaniejns)
Active Member
Joined: 8 years ago

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

Posts: 9
Topic starter
(@thestephaniejns)
Active Member
Joined: 8 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
(@thestephaniejns)
Active Member
Joined: 8 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