Show forum views on main page

For support and discussion related to templates, themes, and imagesets in phpBB 3.2.
Post Reply
cemorhon
Registered User
Posts: 8
Joined: Wed Mar 02, 2005 11:00 am

Show forum views on main page

Post by cemorhon » Thu Sep 21, 2017 11:58 am

Hello,

How can we show forum views on main page next to forum messages?

Thanks.

User avatar
RMcGirr83
Recognised Extension Developer
Posts: 20448
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: Show forum views on main page

Post by RMcGirr83 » Thu Sep 21, 2017 2:06 pm

Not understanding your question. Where exactly?
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 48000
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: Show forum views on main page

Post by stevemaury » Thu Sep 21, 2017 3:41 pm

Another column in viewforum, perhaps?
For REALLY good and VERY inexpensive hosting CLICK HERE

All unsolicited PMs will be ignored.

User avatar
RMcGirr83
Recognised Extension Developer
Posts: 20448
Joined: Wed Jun 22, 2005 4:33 pm
Location: Your display
Name: Rich McGirr
Contact:

Re: Show forum views on main page

Post by RMcGirr83 » Thu Sep 21, 2017 4:02 pm

I guess that depends on one's definition of "main page".
In times of change, learners inherit the earth, while the learned find themselves beautifully equipped to deal with a world that no longer exists - Eric Hoffer
Former Modifications/Extensions Team Member | My extensions
Appreciate the extensions/mods/support then buy me a beer
All requests for support via PM will be ignored

User avatar
Mick
Support Team Member
Support Team Member
Posts: 18129
Joined: Fri Aug 29, 2008 9:49 am
Location: Cardiff

Re: Show forum views on main page

Post by Mick » Thu Sep 21, 2017 5:30 pm

Have you got an example or a screen cap of what you mean?
"The more connected we get the more alone we become" - Kyle Broflovski

There are no ‘threads’ in phpBB, they are topics.
Forza Garibaldi

cemorhon
Registered User
Posts: 8
Joined: Wed Mar 02, 2005 11:00 am

Re: Show forum views on main page

Post by cemorhon » Fri Sep 22, 2017 7:06 am

Hello,

I am so sorry, I could not explained it well.

I have made a screenshot.

Best Regards,
Cem
Attachments
2017-09-22_095914.jpg

User avatar
_Vinny_
Style Customisations
Style Customisations
Posts: 7085
Joined: Tue Aug 11, 2009 12:45 am
Location: Brazil
Name: Marcus Vinicius
Contact:

Re: Show forum views on main page

Post by _Vinny_ » Fri Sep 22, 2017 7:51 am

phpBB has no counting for forum views.

User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 48000
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: Show forum views on main page

Post by stevemaury » Fri Sep 22, 2017 2:16 pm

Although it does track topic views and the forum_id of each topic, so you could get forum views with:

Code: Select all

SELECT SUM(topic_views) FROM phpbb_topics WHERE forum_id = X
Depending on how up-to-date you wanted that statistic, you would have to run a script to query all the forums periodically. No idea what kind of load that would be. But the Posts statistic on viewforum seems not to be too intensive.
For REALLY good and VERY inexpensive hosting CLICK HERE

All unsolicited PMs will be ignored.

Post Reply

Return to “[3.2.x] Styles Support & Discussion”

Who is online

Users browsing this forum: No registered users and 6 guests

cron