Notifications
Clear all

[Closed] Best forum plugin ever, How do I add this

5 Posts
2 Users
0 Reactions
1,026 Views
Posts: 4
Topic starter
(@epiphany)
Active Member
Joined: 5 years ago

I just installed Wpforo on my new website and I think it is the best forum plugin ever. 

But I need a code to show user's total topic views I.e sum of all the views he has in all his topics.  just like 

wpforo_print_number($stat['topics']

Shows user's total topics

Thank you guys for the wonderful plugin. We need a way to say thank you something like a donate button.

4 Replies
Alvina
Posts: 1862
Moderator
(@alvina)
Member
Joined: 5 years ago

Hi @epiphany, 

Please follow this support topic: https://wpforo.com/community/how-to-and-troubleshooting-2/show-number-of-views-below-subscribe-button/#post-39877

3 Replies
(@epiphany)
Joined: 5 years ago

Active Member
Posts: 4

@alvina

Thanks for your reply but that's not what I want. I tested  the code in local host in { profile-home.php } and it was showing 0.

This is what I need 

User A created 3 topic each of the topics has 2 views 

on his profile I want to show Total topic views 6

Alvina
Moderator
(@alvina)
Joined: 5 years ago

Member
Posts: 1862

@epiphany,

You should add the code in the post.php file to show the Number of views below the subscribe button. Save and check again.

Everything should work fine. See the screenshot below:

(@epiphany)
Joined: 5 years ago

Active Member
Posts: 4

@alvina

Thanks but you don't understand what I mean. 

I want to  show the total number of topic views a user has in all his topics. 

 

For instance 

 

User A created 5 topics and each of the topics has 10 views. 

 

In his profile below it will show "Total Topic Views 50"

Just a way to show users the sum of all the views that they have gotten in all their topics.