PDA

View Full Version : Profile Enhancements - Downtime Scheduler (Have Post Per Day ignore downtimes)


Knippschild
08-24-2007, 10:00 PM
Downtime Scheduler
Current Version: 1.0.3

If you want help, please click install! (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=156247)

What's it do?
This is a mod for vBulletin that allows site administrators to add blocks of downtime that
occur during the usage of vBulletin. The mod will calculate total amount of downtime effected for each block, and will calculate a more accurate Post Per Day. Basically when you
view a member's profile, it will show you a Post Per Day that does not factor in downtime that happened while that user was registered.

Can you give me an example?
Jonathan Makes 320 posts during his stay of 140 days.
His "REAL" post per day is 2.29.
However the forums were completey inaccessible for 14 days
His PPD after adding this to the Downtime Sheduler system is now 2.53


But.. why?
Now, I know that this modification will (hopefully) not to be needed that often, but when it does happen (I'd say for downtime more than ~4 days) it's very nice to have. I did this because my site was down for about 5 months due to financial hardships, so when service was restored, the post per days were terrible, so I create this mod. I figure that someone else might want to use this if they are in the same situation I was in.

Installation Information
Use of vB Plugin/Hook System: No
Template Edits: No
File Edits: Yes (One simple file edit, sorry there wasn't a hook where this had to be)
File Uploads: 6
Database Modifications: 1 (table add)
AdminCP Menu Addition: Yes
Awesome: Yes
Total Install time: About or less than two minutes

Installation instructions are in readme.txt file.

This was something I had really needed for myself, and I originally made it for my use only. But I thought that someone else might need this too, so I decided to share it.

This is my first mod. Please be kind!

Knippschild
08-25-2007, 07:56 PM
/me reserves

Virtualshiner
08-25-2007, 08:36 PM
This is a very nice mod, Its very helpful. /me marked as installed. Its on my board right now.

johnrizz
08-26-2007, 12:15 AM
I'll give it a shot! **install** thanks.....

Knippschild
08-26-2007, 12:17 AM
Tell me what you think :)

yahoooh
08-26-2007, 02:05 PM
thank u , it is usefull mod

johnrizz
08-26-2007, 09:06 PM
Not sure if this is a problem but when I try to add a downtime I get an error no matter what I put... am I doing somethig wrong?
Errors have occurred during the operation:
End date is before Start Date

Knippschild
08-26-2007, 09:11 PM
Not sure if this is a problem but when I try to add a downtime I get an error no matter what I put... am I doing somethig wrong?
Errors have occurred during the operation:
End date is before Start Date

What start and end date are you entering?


Edit:
That's interesting. I'm getting a different error, and a bunch of PHP errors, let me hack around and see what's causing it.

Edit Edit:
Mod Updated. I hope this fixes it

johnrizz
08-26-2007, 10:51 PM
Ok, it's fine now. I was using a Start Date of lets say 8-1-07 /// End Date 8-26-07, I would still get error, but its fine now.. Thanks!

Knippschild
08-29-2007, 01:19 PM
Yeah, I forgot to do something to handle incoming POST information. On the version/configuration of PHP I had, it thought it was an integer.. but when I upgraded PHP, it thought it was a string and it just wasn't working properly.

Though now it gets the integer value.

Sorry about that.