vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Statistics Modifications - vB Weekly Stats (https://vborg.vbsupport.ru/showthread.php?t=132061)

TheWhite 01-25-2007 04:22 PM

ok guys thanks

Jd19 02-05-2007 12:23 PM

Sorry for not fixing this bug sooner or responding to this thread at all. As I said, I rarely check this forum.

Quote:

Originally Posted by skoenig (Post 1166616)
Fixed in v1.5
This is not an official fix and may not work for you. This is a general purpose fix for all HTML emails sent through Vb and has been tested on vB v3.6.2 with PHP 5xx

1. Go to the Plugin Manager
2. Search down to Product: Weekly Stats
3. Click: replace Content-Type with text/html in headers
4. Replace contents with:

PHP Code:

if (stristr($message,'<HTML>')){
$headers str_replace('text/plain','text/html',$headers);



Explanation
This patch searches the message body for <HTML>. If it finds it it then replaces the content type with the content type for HTML emails. It's not bullet proof and can be fooled but for most people it should work fine.

If you want a bullet proof solution specifically for Weekly Stats the following should work:

PHP Code:

if (stristr($subject,'SUBJECT OF YOUR WEEKLY STATS EMAIL HERE')){
$headers str_replace('text/plain','text/html',$headers);


This can be made more efficient using the stripos() function to return as soon as the fist occurrence of the string in etiher case is found.

I've also modded the original install with the primary general purpose fix above for those who want it.

This is not endorsed nor approved by the original authors but here for those who may need it. All the other usual disclaimers apply.

~ Steph
forum.treonauts.com


Thanks for the update. I'm going to rename this to version 1.6 and release it and credit the update to you. If you are interested you can join the official project on my forum and I'll add you as an modifier here.

kushal 02-05-2007 01:51 PM

Is there a way that it sends email to all the members of the forum board?

skoenig 02-06-2007 06:44 AM

@Jordan

Thanks for the offer. I'd love to help out but I got RealLife(tm) commitments that sadly get in the way of the fun stuff. I'll gladly help out when and if I can just can't guarantee anything... Put me as a mod here if you'd like and I'll check in every now and then at the very least increase coverage a bit.

I'll check your forum too...

~ Steph

rjmjr69 02-07-2007 04:13 AM

So all and all is this now running on 3.6.4 ok? No more buggie's? I've been watching this thread and it seems as though allot of the issues are worked out anyone care to chime in on it?

Nathan2006 02-14-2007 10:47 AM

One word Jd19

WOW! :D

Love this thank you

Install

PinkDaisy 02-14-2007 02:30 PM

Installed!! My members love this!

perfphysio 02-15-2007 04:55 PM

This is working OK on my board but when i run the scheduled task manually from within admin I get the following message, Warning: mail(): SMTP server response: 503 5.5.2 Need Rcpt command. in \includes\cron\weeklystats.php on line 320

Any ideas?

daddygrim 02-28-2007 12:21 PM

i installed it...it's working!!!

|Jordan| 03-20-2007 01:30 AM

When i enter my username in the "users to email" field and run the task, i get the following error:

Code:

Fatal error: Call to a member function on a non-object in /home/*******/public_html/includes/class_mail.php(261) : eval()'d code on line 7
When i leave the "users to emai" field blank or the default "Administrator" the task doesnt report any errors, but the email doesnt get sent to me.

daddygrim 03-20-2007 02:07 AM

mine isn't sending out anything.

Sjakie 04-06-2007 07:05 PM

Is it possible to exclude a forum from displaying on the stats page? Because moderator topics are shown on this page also, but obviously cannot be seen by registered user when the link is clicked.

4number8 04-06-2007 08:06 PM

It would be great to be able to send this to all registered users, instead of just the one's we have to add in the options.

adwade 04-14-2007 07:25 PM

Quote:

Originally Posted by |Jordan| (Post 1207768)
When i leave the "users to emai" field ... default "Administrator" the task doesnt report any errors, but the email doesnt get sent to me.

Ditto. :( I'd installed this sometime ago and forgot about it. Re-tripped acoss this thread and went back to look at it. Sure enough, the default 'Adminstrator' was in there. :mad: Not having a user named 'Adminstrator' it's been doing nothing all-this-time.

Revised 'Adminstrator' to my username, went into Scheduled Task Manager and did a run-now, and Wha-La! :D Sent a report out just fine!

Suggestion: Remove 'Adminstrator' from the field by default as you release the MOD.

My only question at first was, "Does it want a user number -or- a username?" Other than that, it was pretty straightforward. It's just having 'Adminstrator' in that blank makes people assume that it's OK.(ie.. ready to run)

LadyHoney 04-14-2007 09:10 PM

I love this .. i put the link under Quick Links and its accessible to me and members at any time. dont have to wait for emails ..

Jd19 04-17-2007 11:55 AM

Quote:

Originally Posted by Sjakie (Post 1221309)
Is it possible to exclude a forum from displaying on the stats page? Because moderator topics are shown on this page also, but obviously cannot be seen by registered user when the link is clicked.

I'll be implementing this in the next version. This is a large bug I think and an oversight by me. Thanks for pointing it out.

Quote:

Originally Posted by 4number8 (Post 1221354)
It would be great to be able to send this to all registered users, instead of just the one's we have to add in the options.

I don't know, this would be more like spam. If other people want to use this I'll add the feature though.

Quote:

Originally Posted by adwade (Post 1227710)
Ditto. :( I'd installed this sometime ago and forgot about it. Re-tripped acoss this thread and went back to look at it. Sure enough, the default 'Adminstrator' was in there. :mad: Not having a user named 'Adminstrator' it's been doing nothing all-this-time.

Revised 'Adminstrator' to my username, went into Scheduled Task Manager and did a run-now, and Wha-La! :D Sent a report out just fine!

Suggestion: Remove 'Adminstrator' from the field by default as you release the MOD.

My only question at first was, "Does it want a user number -or- a username?" Other than that, it was pretty straightforward. It's just having 'Adminstrator' in that blank makes people assume that it's OK.(ie.. ready to run)

I'll make it more clear what needs to be added and remove "Administrator" as the default.

Mrdby 04-17-2007 07:14 PM

Thanks!!!

Sjakie 04-17-2007 08:25 PM

How to upgrade? Overwrite all or just the xml file?

Mrdby 04-17-2007 09:10 PM

Quote:

Originally Posted by Sjakie (Post 1229971)
How to upgrade? Overwrite all or just the xml file?

yep:p :p

Sjakie 04-18-2007 08:59 PM

Witch one is it? All, or just the XML

itsblack 04-22-2007 02:39 AM

Hi, I got these errors, anyone can help?
PHP Code:

Warningmysql_num_rows(): supplied argument is not a valid MySQL result resource in \weeklystats.php on line 84

Warning
mysql_num_rows(): supplied argument is not a valid MySQL result resource in \weeklystats.php on line 95

Warning
mysql_num_rows(): supplied argument is not a valid MySQL result resource in \weeklystats.php on line 106

Warning
mysql_num_rows(): supplied argument is not a valid MySQL result resource in \weeklystats.php on line 146

Warning
mysql_num_rows(): supplied argument is not a valid MySQL result resource in \weeklystats.php on line 158

Warning
mysql_num_rows(): supplied argument is not a valid MySQL result resource in \weeklystats.php on line 169

Warning
mysql_num_rows(): supplied argument is not a valid MySQL result resource in \weeklystats.php on line 180

Warning
mysql_num_rows(): supplied argument is not a valid MySQL result resource in \weeklystats.php on line 189

Warning
mysql_num_rows(): supplied argument is not a valid MySQL result resource in \weeklystats.php on line 199

Warning
mysql_num_rows(): supplied argument is not a valid MySQL result resource in \weeklystats.php on line 208 

meanwhile there are also no results to display except "Most Viewed Thread" and "Most Replied To Thread".

z0diac 05-04-2007 01:40 PM

I've never upgraded a plugin/product before, just done fresh installs.

Do I need to remove the old one through the Product/Plugin menu in vB?
Or just re-install using the Product/Plug menu?
Or I just copy over the old script files with the new ones?

Sorry for the newbie question but I don't want to mess up my current config.

iorkara 05-04-2007 04:23 PM

Thank You This lookin awesome

z0diac 05-12-2007 12:04 PM

DOes anyone know how to do an upgrade??? I"ve never done one before. Do I re-install using the vB installer? Do I just copy over the files in the o/s ?? Do I uninstall and re-install?? Anyone???

Mrdby 05-12-2007 12:19 PM

Quote:

Originally Posted by z0diac (Post 1246167)
DOes anyone know how to do an upgrade??? I"ve never done one before. Do I re-install using the vB installer? Do I just copy over the files in the o/s ?? Do I uninstall and re-install?? Anyone???

this hack? just over write it.

Hornstar 05-31-2007 07:21 AM

This has come along nicely. finally installed it today. nice.

YabbaDabba 06-09-2007 11:25 PM

PROBLEMS

1 - Stats Table Title Bar

This Week: Current Week Stats - 5 Days Total
Last Week: Current Week Stats - 11 Days Total
2 Weeks Ago: Current Week Stats - 11 Days Total

:confused: Shouldn't it be something like:

This Week: Current Week - 5 Days Total
Last Week: Last Week - 7 Days Total
2 Weeks Ago: 2 Weeks Ago - 7 Days Total

I see the same issue on your own site. If a basic number is wrong, the confidence in the reported stats rapidly approaches zero.

2 - Bad Stats

I do not understand the numbers that are being reported at all.
We consistently have about 30K posts per week.

For example, in ACP > Statistics I see post counts for the last 3 weeks of:
Week 22 (June 2007) 27296 (partial)
Week 21 (June 2007) 28326
Week 20 (May 2007) 29352

However, your numbers for the same period are:
26835
25114
83889 (yeah, 83K. Is this a 3 week Cumulative Total?)

Similarly for threads, ACP reports:
Week 22 (June 2007) 1523
Week 21 (June 2007) 1516
Week 20 (May 2007) 1629

And your numbers are:
1442
1275
4417 (again, maybe a 3 week cumulative total?)

So there are really 2 issues here:
  1. Your numbers for "Two Weeks Ago" are just plain wrong
  2. Your numbers don't match vB reports

YabbaDabba 06-09-2007 11:28 PM

SUGGESTED CLEANUPS

1 - Stat Description Cleanup

Number of Threads This Week:
Number of Posts This Week:
Most Viewed Thread Created This Week:
Most Replied To Thread Created This Week:
Number of Registrations This Week:
Number of Bans This Week:
Number of Infractions This Week:
Number of User Promotions This Week:
Number of Active Users This Week: <== based on how I'm interpreting your query
Number of Attachments Uploaded This Week:
Number of Private Messages This Week:
Number of Poll Votes This Week:

Your descriptions and bolding are very inconsistent. The purpose of the report is to convey information, not confusion.


2 - Period
You use "Current Week" much too casually. Sometimes you mean last week, sometimes you mean this week.

It would be so much more useful if you actually spelled out the start/stop dates instead of saying "current week".

Weekly Stats - June 4 thru June 10
Weekly Stats - May 28 thru June 3

This should be done in BOTH the e-mail and the php display page.


3 - User Registrations Expansion Link

Need to add a mouseover effect so it doesn't look like a dead link.

Supporting a standard vB expand/contract graphic would help too.


4 - Phrase Lib Support

Desperately needed

YabbaDabba 06-09-2007 11:55 PM

SUGGESTED FEATURE

Let the admin define the reporting period in the admin control panel.
The current Monday thru Sunday period is not very standard.

thenewuser 06-20-2007 09:16 AM

Useful for marketing, thanks, installed!

Anne Lise 10-08-2007 08:43 PM

Is it possible to also see the users who have visited the forum?

sylar 10-17-2007 05:12 AM

Intalled. this will minimize having to obtain stats from the host.

Thanks,

MissKalunji 03-14-2008 05:10 AM

does it archive all the weekly stats? or only for 2-3 weeks?

Thanks

yinyang 03-14-2008 02:39 PM

anyone know if this works for 3.7?

MissKalunji 03-16-2008 02:15 AM

what would be nice (for it not to always ask the server whenever u run weeklystats) is whenever u run cron it puts all the info in a text file and whenever you run weeklystats.php it pulls hte value from that text

cause i think whenever u run weekly stats it seems to be running the queries (most viewed,banned etc) everytime am i wrong?

Artes_Marciales 03-24-2008 08:24 AM

Installed!
Thanks! :)

logicuk 04-15-2008 07:14 PM

any updates coming for this?

Hornstar 05-08-2008 06:52 AM

Yeah I am hoping some of the above stuff will be added in this for a 3.7 update release. Such a handy thing to have on the forums, would be a shame to uninstall it.

AmandaB 11-17-2008 10:28 PM

This works on 3.7 for me but only true week. The archived weeks show me a security token problem.

kylek 03-07-2009 06:50 PM

Works fine on 3.8.1.


All times are GMT. The time now is 11:04 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01653 seconds
  • Memory Usage 1,839KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (3)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete