Hello everyone,
Could you tell me how to display the latest posts or topics with this API
Thank you for your help
Regards c3dric
Forum stats on external page.
- Peetra
- Supporter
- Posts: 26
- Joined: 29 Sep 2010, 04:12
- [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Forum stats on external page.
I would use the normal Atom feed buildt in phpBB itself for such a thing.
- RMcGirr83
- Past Contributor
- Posts: 6243
- Joined: 30 Nov 2006, 14:23
- Real name: Rich McGirr [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Forum stats on external page.
There is no config for guests or all users online.
That is retrieved from the sessions table and is returned via the page_header function within the includes/functions.php file.
That is retrieved from the sessions table and is returned via the page_header function within the includes/functions.php file.
- RMcGirr83
- Past Contributor
- Posts: 6243
- Joined: 30 Nov 2006, 14:23
- Real name: Rich McGirr [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Forum stats on external page.
Read this
http://blog.phpbb.com/2009/11/09/how-to ... nal-pages/
pay attention to the last code block.
http://blog.phpbb.com/2009/11/09/how-to ... nal-pages/
pay attention to the last code block.
- EY
- Supporter
- Posts: 204
- Joined: 05 Nov 2006, 23:13
- Real name: Elias
- Location: Montreal [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Forum stats on external page.
Never Say Never!
-
- New member
- Posts: 2
- Joined: 01 Jan 2013, 16:46
- [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Forum stats on external page.
Awesomely simple solution but I need just a *little* more.
Total posts
Total topics
Total members
Total visits today <---- is this stored in the database as well? It is over the past 5 mins but can be set to daily, no?
...and I need it from multiple forums, e.g. I have three different forums and I need this information posted on a 4th non-forum site.
Total posts
Total topics
Total members
Total visits today <---- is this stored in the database as well? It is over the past 5 mins but can be set to daily, no?
...and I need it from multiple forums, e.g. I have three different forums and I need this information posted on a 4th non-forum site.
- tumba25
- Past Contributor
- Posts: 1058
- Joined: 24 Oct 2007, 13:10
- Real name: Jari Kanerva
- Location: Kokkola, Finland.
- Contact:
Re: Forum stats on external page.
Todays visits is not stored in the DB. You would need to store it in the DB. It would take to much resources otherwise.
-
- New member
- Posts: 2
- Joined: 01 Jan 2013, 16:46
- [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Forum stats on external page.
That's fine, i can pull the total visits from piwik, but how about the other part of the question, how could I merge the stats from 3 different forums onto the homepage of a 4th site?
While I could probably hack it together I'm not sure about needing 3 different databases to respond, performance, etc.
While I could probably hack it together I'm not sure about needing 3 different databases to respond, performance, etc.
- tumba25
- Past Contributor
- Posts: 1058
- Joined: 24 Oct 2007, 13:10
- Real name: Jari Kanerva
- Location: Kokkola, Finland.
- Contact:
Re: Forum stats on external page.
You need to query each DB and put the result on your 4th site. You could have all 3 forums in the same DB to not have to connect to different DBs.
Who is online
Users browsing this forum: No registered users and 8 guests