The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
The Activity Hack v2.1 Details »» | |||||||||||||||||||||||||
vB3.5 and vB3.6 users click here
There will be no additional releases of the vB3/hack version; this mod has moved on to vB3.5 as a plugin (see here) I've been using a less-configurable version of this hack on my forum for over a year. After constant pestering from certain people, here is a version IMO fit for public consumption; consider it a Christmas gift. Description This hack adds an activity metric for users to your forum; this metric takes into account a variable number of weeks. Also provided is a Junior/Normal/Senior member system based on this metric, and a longevity metric (user registered time as a percent of the amount of time the first user has been registered). See zelaron.com for an example of what can be done with this. Visiting each day and posting the configured amount of times per day for the configured number of weeks will yeild 100% activity. Posts are checked individually for each day, so days cannot be skipped then spammed up afterwards. The weight of visiting for the day relative to posting is configurable. Weeks are weighted so the most recent has a bigger impact on the activity percent than the most distant. When a user logs in with 50% activity, they are promoted from Junior Member to Member. When they log in 3 months from that time, they are promoted to Senior Member. Complexity This hack edits 6 files and 3 templates. The hack adds one table, four fields to the user table, as well as its own settings and phrases. Technical This hack adds 1 query to showthread for each user who posts in that page (or only 1 for the logged in user by configuration). 1 query per thread is performed to find join date of first user (this will be changed to a setting in a future version). In addition, the first time a member's post or profile is accessed during a day (GMT), 3 queries are performed to find that user's activity depending on configuration. Notice When you first install this hack, no user will have 100% activity because whether or not a user visited on a day is not recorded untill after installation. You may want to set the number of weeks to two at first and increase it as time passes and the visit log fills. Support Please click the install link if you install this hack This hack is in beta because remaining bugs will only become evident over time due to the nature of this hack. I will support this hack in this thread. 3/30/2005 Added barsamples.zip, sample activity and longevity bar images. Update v2.1 I have fixed the activity calculation so that it adds a fixed 3 queries instead of 16 to 48. To update, simply upload the new activity.php Show Your Support
|
Comments |
#12
|
|||
|
|||
what - this hack adds 32 queries when viewing posts - if so then it aint worth installing then.
|
#13
|
||||
|
||||
look good ill wait abit and then install lol
|
#14
|
|||
|
|||
Heh , I got a little problem (again) :
I want to use the $acthack_postsd[] thing , but I can't find much instructions about that one , any help on how to use it? Thanks |
#15
|
||||
|
||||
Quote:
I am open to suggestions as to how to further reduce the number of queries. Currently, to find the activity for a user, I need to query the visitlog for visitation data, query the post table to find out when they posted, and query the user table to store the activity information so that it won't be calculated again. The only possibility I can think of is if I can do all the activity for the whole page in two queries and hope that the cost of these two queries is little enough to make them every load instead of storing the results to avoid performing the process over and over; however, I am no SQL wizzard and figuring out how to reduce the process to a flat 2 queries was a stretch of my ability. |
#16
|
||||
|
||||
Quote:
postcleftcap.gif postcrightcap.gif postcs.gif postc0.gif postc1.gif postc2.gif postc3.gif postc4.gif postc5.gif postc6.gif postc7.gif postc8.gif postc9.gif then, you could use code like this: <img src="postcleftcap.gif" /><img src="postc$acthack_postsd[1].gif" /><img src="postc$acthack_postsd[2].gif" /><img src="postc$acthack_postsd[3].gif" /><img src="postc$acthack_postsd[4].gif" /><img src="postc$acthack_postsd[5].gif" /><img src="postc$acthack_postsd[6].gif" /><img src="postc$acthack_postsd[7].gif" /><img src="postc$acthack_postsd[8].gif" /><img src="postc$acthack_postsd[9].gif" /><img src="postcrightcap.gif" /> of course, you would want to include the path to the images and width and height attributes so your page loads cleanly. The hack generates 9 digits and represents left padded digits with an 's' . |
#17
|
|||
|
|||
Thanks a lot , now its perfect!
|
#18
|
||||
|
||||
Quote:
|
#19
|
||||
|
||||
Handy hack. *installs*. A word of warning for noobs: There is quite a few .TABLE_PREFIX.es missing from the code. These cause sql errors in case of a sqlprfix used and solving the mess might be quite a frustrating task without at least basic knowledge of php and sql. Aside of that - cool, as said.
=M= |
#20
|
|||
|
|||
Thank you WW for releases this to the public, after a year of nagging you.
[high]* Logikos clicks install[/high] |
#21
|
||||
|
||||
Quote:
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|