[3.3][RC] Stats On Index

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Scam Warning
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
User avatar
Stoker 4.0
Registered User
Posts: 1660
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen

[3.3][RC] Stats On Index

Post by Stoker 4.0 »

Extension Name: Stats On Index
Author: Stoker
Extension Version: Image
Requirements: Image

Extension Description:
A port of my old MOD Statistics on index

Features:
No ACP control. Just upload and enable the extension.
Topic views and downloads are cached for 24 hours
Board start date
How long board have been alive, displayed in years, months and days - thanks to 3Di onlinesince

See screenshots for features
Before:
stats.png
After:
indexstats.png

Demo:
at the bottom of my site


Download:
https://phpbb3bbcodes.com/viewtopic.php?t=2778
You do not have the required permissions to view the files attached to this post.
Last edited by Stoker 4.0 on Sun Feb 16, 2025 11:06 am, edited 3 times in total.
~ The greatest achievement in life is to inspire ~
Regards Stoker
User avatar
Sniper_E
Registered User
Posts: 1235
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey

Re: [3.3][DEV] Stats On Index

Post by Sniper_E »

Nice Stroker... I was thinking you had this years ago. Reading more, I see now it was your old mod.
Image . -.. / .... ..- -- .--. .... .-. . -.--
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!

:!: Sniper_E Styles | phpbbmodders :!:
User avatar
Stoker 4.0
Registered User
Posts: 1660
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen

Re: [3.3][DEV] Stats On Index

Post by Stoker 4.0 »

Sniper_E wrote: Wed Feb 05, 2025 7:04 pm Nice Stroker... I was thinking you had this years ago. Reading more, I see now it was your old mod.
Yeah, about 14 years old....
and on phpBB 3.0.11 :D
~ The greatest achievement in life is to inspire ~
Regards Stoker
User avatar
Stoker 4.0
Registered User
Posts: 1660
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen

Re: [3.3][DEV] Stats On Index

Post by Stoker 4.0 »

Shame on me. Forgot to add newest user.... (We see you now Daniel ;) )
Also forgot to TWIG the templates....
Last but not least, correcting the display place of the stats....


Disable previous version, delete data, delete the folder with your FTP.
Upload the new folder and enable the EXT.
Enjoy!
~ The greatest achievement in life is to inspire ~
Regards Stoker
User avatar
Sniper_E
Registered User
Posts: 1235
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey

Re: [3.3][DEV] Stats On Index

Post by Sniper_E »

I was playing around with the date format layout in another ext and came up with this little bit of code.
$start_date = $this->user->format_date(date($this->config['board_startdate']));
That will show the date format on start date to match whatever a user has selected in their ucp settings.
But you probably already know this. Just sharing...
Image . -.. / .... ..- -- .--. .... .-. . -.--
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!

:!: Sniper_E Styles | phpbbmodders :!:
User avatar
Stoker 4.0
Registered User
Posts: 1660
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen

Re: [3.3][DEV] Stats On Index

Post by Stoker 4.0 »

Sniper_E wrote: Wed Feb 12, 2025 8:36 pm I was playing around with the date format layout in another ext and came up with this little bit of code.
$start_date = $this->user->format_date(date($this->config['board_startdate']));
That will show the date format on start date to match whatever a user has selected in their ucp settings.
But you probably already know this. Just sharing...
You are absolutely right. Then timezone also will be considered. Its in next update.
Thanks.
nate888 wrote: Wed Feb 12, 2025 10:37 pm Great update to the extension, Stoker. Bringing back an old mod with some fresh improvements is always a win.
Thanks
~ The greatest achievement in life is to inspire ~
Regards Stoker
User avatar
Stoker 4.0
Registered User
Posts: 1660
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen

Re: [3.3][RC] Stats On Index

Post by Stoker 4.0 »

Updated to 1.0.2
Corrected time format for Board start date, thanks to Sniper_E
Added language support for number format.
~ The greatest achievement in life is to inspire ~
Regards Stoker
User avatar
Sniper_E
Registered User
Posts: 1235
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey

Re: [3.3][DEV] Stats On Index

Post by Sniper_E »

.
Image . -.. / .... ..- -- .--. .... .-. . -.--
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!

:!: Sniper_E Styles | phpbbmodders :!:
User avatar
Stoker 4.0
Registered User
Posts: 1660
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen

Re: [3.3][RC] Stats On Index

Post by Stoker 4.0 »

Updated to 1.0.3
This is the final version that is going to be submitted to the ext db.
Added how long board have been alive, displayed in years, months and days - thanks to 3Di onlinesince
Removed stylesheet. Display handled in the listener instead.

This is a DELETE previous version.
Disable ext in ACP -> Delete ext data in ACP -> delete the entire indexstats folder -> upload new files -> enable ext -> Purge cache and enjoy
~ The greatest achievement in life is to inspire ~
Regards Stoker
leschek
Registered User
Posts: 863
Joined: Tue Jul 18, 2006 12:49 pm

Re: [3.3][RC] Stats On Index

Post by leschek »

I'm trying to translate this extension for my board and would like to ask a few questions:
  1. Does per member mean posts made only by forum members or also by guests?
  2. Does Total users mean total registered users?
  3. Does Total files mean total attachments?
EDIT:
I already figured it out.

Another small thing:

Could line
'SOI_BOARD_START_DATE' => 'started:',
be changed to something like:
'SOI_BOARD_START_DATE' => 'Board %1d started:',?
it would sound much better in translation (I'm not sure if %1d is correct variable in this case).
User avatar
Stoker 4.0
Registered User
Posts: 1660
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen

Re: [3.3][RC] Stats On Index

Post by Stoker 4.0 »

1. Its calculated total posts/total members. Guest posts is included in total posts.
2. Yes
3. Actually only zip and rar files
~ The greatest achievement in life is to inspire ~
Regards Stoker
User avatar
Stoker 4.0
Registered User
Posts: 1660
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen

Re: [3.3][RC] Stats On Index

Post by Stoker 4.0 »

leschek wrote: Sun Feb 16, 2025 2:16 pm Another small thing:

Could line
'SOI_BOARD_START_DATE' => 'started:',
be changed to something like:
'SOI_BOARD_START_DATE' => 'Board %1d started:',?
it would sound much better in translation (I'm not sure if %1d is correct variable in this case).
No reason for that. In the template it is: {BOARD_NAME} the lang entry and then the start date.
~ The greatest achievement in life is to inspire ~
Regards Stoker
User avatar
Sniper_E
Registered User
Posts: 1235
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey

Re: [3.3][RC] Stats On Index

Post by Sniper_E »

We have been online for: 9 years, 9 months and 29 days Nice! You did a great job that.
I had some codes that showed online for 3,591 Days... What you have here is definitely an improvement. Image
Image . -.. / .... ..- -- .--. .... .-. . -.--
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!

:!: Sniper_E Styles | phpbbmodders :!:
User avatar
Stoker 4.0
Registered User
Posts: 1660
Joined: Sun Feb 13, 2011 1:33 pm
Location: Funen, Denmark
Name: Ulrik Christensen

Re: [3.3][RC] Stats On Index

Post by Stoker 4.0 »

Sniper_E wrote: Sun Feb 16, 2025 3:02 pm We have been online for: 9 years, 9 months and 29 days Nice! You did a great job that.
I had some codes that showed online for 3,591 Days... What you have here is definitely an improvement. Image
We need to thank 3Di for this. I only copied the code. And if i remember correct, only made 1 single edit to adapt it :D
~ The greatest achievement in life is to inspire ~
Regards Stoker
User avatar
Sniper_E
Registered User
Posts: 1235
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey

Re: [3.3][RC] Stats On Index

Post by Sniper_E »

You should look at Dmzx's newestmembers ext and use the codes for the five newest members also.
That would be an improvement also. It's looking good. If you don't I will... :lol:
Image . -.. / .... ..- -- .--. .... .-. . -.--
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!

:!: Sniper_E Styles | phpbbmodders :!:

Return to “Extensions in Development”