Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vB Weekly Stats Details »»
vB Weekly Stats
Version: 1.00, by Jd19 Jd19 is offline
Developer Last Online: May 2013 Show Printable Version Email this Page

Category: Statistics Modifications - Version: 3.6.3 Rating:
Released: 11-20-2006 Last Update: Never Installs: 194
 
No support by the author.

Title
vB Weekly Stats - Display and email weekly forum stats

Version: 1.7

Description
A plugin that will display and email weekly statistics for the vBulletin forum software. The project was spurred from a project that a fellow forum member was working on which got me thinking about a better way to monitor what was going on. This allows me to keep up with statistics very easily and monitor the progression my forum is making.

Language: PHP

Tested System: CodeCall.net

License
GNU although a link back to http://www.codecall.net would be nice for anyone using.

Todo List/Bugs
  • Make XHTML compliant

Change Log

Version 1.6 - 17
  • If the CRON script is executed after 12:00 you no longer get zero filled values.
  • You can now exclude forums from showing (Options)
  • Username has been clarified in options (bolded) so that no one is confused. The default username "Administrator" has been removed and set to blank.

Version 1.5 - 1.6 by skoenig - Thank you!
  • Fixed major bug in Email Plugin - All emails sent from forum now function correctly.
Version 1.4 - 1.5 by Bolas - Thank you!
  • Now Uses vB method to send email
  • Hooks change on-the-fly the Content-Type
Version 1.3 - 1.4
  • Corrected Link in newly registered members display
Version 1.2 - 1.3
  • Added Previous Week and 2 Weeks Ago to weekly display.
  • Removed User Requests, requests are removed after they are completed so the actual number is always 0 (unless you never complete them).
  • Modified cron job to run 15 minutes before 12:00 which will prevent the email being filled with 0 values.
  • Added post number to newly registered users this week (in brackets beside name).
  • Aligned newly registered users in a table to conserve space.
Version 1.1 - 1.2
-- Changes by TkTech
  • (None) tags instead of mis-drecting links when no threads found
Version 1.0 - 1.1
  • Added all registered users names for week using Javascript.
  • Changed Display, grouped common seciotns
  • Added Most Replied and viewed thread created this week.
  • Fixed Title - CodeCall isn't hard coded any longer
  • Changed wording of Activity Number

Notes
This software is in the version control system of CodeCall.net. If you would like to contribute, please join this forum and become a member. All suggests are greatly welcome!

Install (after you unzip)
1. Upload all files in the upload directory to the root of your forum directory (where index.php is).

2. Login to the admin control panel

3. Goto Plugins & Products and click on Manage Products

4. Click on Add/Import Product

5. Browse to the directory of Weekly Stats and Select Weekly-Stats.xml

6. Click Import

7. Setup the product in vBulletin Options

8. Thats it, your done! You can access the stats at http://www.youdomain.com/forum/weeklystats.php

The cron job is scheduled to run every Sunday at 11:59 which will deliever stats to your email
account.

Support
Support will be given at http://forum.codecall.net/community-...kly-stats.html only. New releases will appear there first before they are updated here. Create a post at this URL for installation problems, bugs or suggestions. I will not be checking this thread very often.

Demo
http://forum.codecall.net/weeklystats.php

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #72  
Old 01-18-2007, 05:56 AM
skoenig skoenig is offline
 
Join Date: Jun 2006
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great mod. Very very useful for our moderators and myself.

FYI The most recent version does seem to cause all vB emails sent to be treated as HTML emails or to have all their carriage returs remapped...resulting in :

Dear skoenig, You are subscribed to the thread "Bluetooth Pairing Problems" by ReneeRoberts, there have been 1 post(s) to this thread, the last poster was Jackskid. http://domainurl.com These following posts were made to the thread: ************ Treo headset pairing http://domainurl.com /1989-bluetooth-pairing-problems-post8488.html#post8488 Posted by: Jackskid On: 01-17-2007 10:07 AM I had pairing problems with my Treo Headset also. This worked for me. Go to prefs>hands-free> then check always route call to hands-free. ---Quote (Originally by ReneeRoberts)--- It seems my original Palm Treo Bluetooth Headset won't stay properly.


~ Steph
Reply With Quote
  #73  
Old 01-18-2007, 11:04 PM
FireFish's Avatar
FireFish FireFish is offline
 
Join Date: Jan 2006
Location: Yipppikayeh, Mofoh!!!
Posts: 106
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just needed to uninstall this mod because it seemed that it was affecting my vB automated e-mails. They were lacking line breaks; once I disabled this mod, all was back to normal.
Reply With Quote
  #74  
Old 01-19-2007, 09:18 PM
mack324's Avatar
mack324 mack324 is offline
 
Join Date: Nov 2006
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

AHHHHHHHHHHHHHHHHHHHHHHHHHH

uploaded, when i try to get to forum i get

Fatal error: Cannot use string offset as an array in /home/*******/public_html/global.php(356) : eval()'d code on line 321
Reply With Quote
  #75  
Old 01-19-2007, 09:51 PM
cupra cupra is offline
 
Join Date: Dec 2006
Location: the Holy Land
Posts: 43
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thx, good one - installd!
Reply With Quote
  #76  
Old 01-21-2007, 10:08 AM
criscokid criscokid is offline
 
Join Date: Nov 2003
Location: London, UK
Posts: 380
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by skoenig View Post
FYI The most recent version does seem to cause all vB emails sent to be treated as HTML emails or to have all their carriage returs remapped.
Read the thread for this mod I was looking forward to installing it... until I got to news that the latest version is causing problems with emails. Hopefully this'll get sorted soon... looking forward to installing.
Reply With Quote
  #77  
Old 01-22-2007, 04:09 AM
skoenig skoenig is offline
 
Join Date: Jun 2006
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's a great mod and well worth the effort. Just got a little buglet that I'm sure will get ironed out soon...

~ Steph
Reply With Quote
  #78  
Old 01-23-2007, 04:55 AM
TheWhite TheWhite is offline
 
Join Date: Nov 2006
Posts: 147
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Serious BUG found i'm using VB 364 and while having version 140 installed i had NO problems with my general forum emails, in the last few days since i updated to version 150 all my forum email was being crunched or parsed for some reason after days and nights of uninstalling every single hack and backstepping anything that i might of altered i found out that the 150 update is causing this so i put back the 140 verion and everything is working at 100% can the author please look into it and comment about this???

Regards
Reply With Quote
  #79  
Old 01-23-2007, 10:22 PM
stomph stomph is offline
 
Join Date: Dec 2006
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This hack also garbled my standard emails that vb sends.

I traced it down to the plugin called 'replace Content-Type with text/html in headers'. If I understand correctly, it simply replaces 'text/plain' in all email-headers with 'text/html'. However, the content of the standard emails from vb are not HTML and so there is no formatting to apply and everything is just one line!

I deactivated the plugin.. and badabing: Emails are formatted correctly again as plaintext.
I ran the weekly cronjob and the Statusmail displayed correctly as text/html in my mailclient (kmail)??
I don't quite understand why.. maybe kmail checks for html-tags. Although it does say 'text/html' in the header.. however, it seems to work!
Reply With Quote
  #80  
Old 01-24-2007, 07:43 PM
Exitilus Exitilus is offline
 
Join Date: Jul 2004
Location: Spokane, WA
Posts: 432
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The fix for this is to Disable the only plugin that this Mod creates.

Realize that the e-mail will come showing all HTML so it won't be parsed.
Reply With Quote
  #81  
Old 01-24-2007, 07:50 PM
skoenig skoenig is offline
 
Join Date: Jun 2006
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:13 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.10317 seconds
  • Memory Usage 2,316KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete