PDA

View Full Version : Active level shall overcome post count.


Sunnz
07-19-2005, 11:44 AM
On my forum, I have replaced the Post Count with something I called, the Active Level, in postbit. It is a template edit, where I put the post per day variable in postbit and labelled it as the Active Level. And my members seem to like it, since it is feel better and fairer than the Post Count system when it comes to Moderator and stuff, and I think it is pretty cool too.

However, I think it is still not good enough, afterall it is just the Post Count divided by days since your joined. So I like to write a better hack now.

My idea is to add a field in the user's table, active_level that will contain post per day since X days ago, where X defaults to 30 days, and would probably be something configurable by the admin via ACP.

There are some problems though. Firstly, even I have a little PHP, I have never written a hack before, so I will need your help to get to know how vbulletin works.

Well, first of all, after the active_level field is added to the user table, how can I retrieve that info in a template? Say I have Active Level: $post_per_day now, how could I actually do it so it is something like Active Level: $active_level? (In postbit.)

Secondly, the script will have to be a cron job thing... so how does cron works in vb? Do I just upload a file and get cron to run it in the VB ACP? Will the ACP make sure it is only run when it is suppose to be?

Regards.
sunNZ.Net