Skip to Content Skip to Menu

Want to show how many messages has been sent

  • Andrej
  • Andrej
  • OFFLINE
  • Posts: 20
  • Thanks: 0
  • Karma: 3
16 years 1 month ago #77813 by Andrej
I want to show my members:
How many messages has ben sent totally sice start and last 3 days.
Is that possible?

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
16 years 1 month ago #77816 by slabbi
Sure...

1. Calc the unixtime and subtract 3 days.
2. Execute
SELECT COUNT(*) FROM #__uddeim WHERE datum>=$timestamp

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in or Create an account to join the conversation.

  • Andrej
  • Andrej
  • OFFLINE
  • Posts: 20
  • Thanks: 0
  • Karma: 3
16 years 4 weeks ago #78234 by Andrej
I mean to show on the frontpage as statistcs and totally for all members
Like "Our members has sent 6000 mail last 3 days"
"Our members has sent 60 000 mail since start"

Post edited by: Andrej, at: 2008/10/25 22:29

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
16 years 4 weeks ago #78235 by slabbi
"Our members has sent 6000 mail last 3 days"

1. Calc the unixtime and subtract 3 days.
2. Execute
SELECT COUNT(id) FROM #__uddeim WHERE datum>=$timestamp

"Our members has sent 60 000 mail since start"

1. Execute
SELECT MAX(id) FROM #__uddeim

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in or Create an account to join the conversation.

  • Andrej
  • Andrej
  • OFFLINE
  • Posts: 20
  • Thanks: 0
  • Karma: 3
16 years 4 weeks ago #78272 by Andrej
In what map do i find this code?

Is there a possibility that you could do a module for it?

Please Log in or Create an account to join the conversation.

  • slabbi
  • slabbi
  • OFFLINE
  • Posts: 3709
  • Thanks: 250
  • Karma: 153
16 years 4 weeks ago #78283 by slabbi
Sure, how much do you want to pay for it?

Post edited by: slabbi, at: 2008/10/26 21:49

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in or Create an account to join the conversation.

Moderators: beatnantslabbikrileon
Powered by Kunena Forum