![]() |
The Activity Hack v2.1
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 |
Great Hack and I love the template you're using, It's different.
Does this include the activity bar that you are using on the forum post profile? I like the Longevity bar too. Is there a hack for that as well? |
Why don't you use the datastore and save all of those queries? ;)
|
Quote:
|
Quote:
|
That's an extremely nice hack, and looks extra good on YOUR forums with that nice postbit.
|
Its a great hack, but it just wont work for busy forums. Those queries would kill my board.
/me would click install if the queries could be greatly reduced. |
I have much improved activity calculation. It now takes two queries to find the activity, and one to update it in the user table (so it doesn't get calced again during that day).
|
I love this hack but 32 queries seems too much. I'll test it on a test forum.
Thanks for your Chrismast gift. |
Quote:
|
what - this hack adds 32 queries when viewing posts - if so then it aint worth installing then.
|
look good ill wait abit and then install lol
|
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 |
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. |
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' . |
Thanks a lot , now its perfect!
|
Quote:
|
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= |
Thank you WW for releases this to the public, after a year of nagging you. :p
[high]* Logikos clicks install[/high] |
Quote:
|
Just want to thank WW once again, and to let everyone know that this hack works perfectly on 3.0.6 if anyone was wondering. Thanks again.
|
Thanks. I'll try it.
@WW It would be nice if you could modify the hack to optionaly merge this request: https://vborg.vbsupport.ru/showpost....6&postcount=11. I don't know if this is feasable. |
So basicly you want integration with promotion/demotion? I'll look into that.
|
Quote:
|
Quote:
|
does this support 3.07?
Quote:
|
I never got a reply from him, but I assume that the problem was just with the installer. I have uploaded a new version of the installer with the table prefixes as of the time of this post. If you don't use table prefixes, this is a non-issue; if you do, I encourage you to post any errors you encounter so that I can correct them.
|
hmm ok i am giving this a try then
i will post my experiences soon... |
Does anyone have some bar .gif's already?? Just trying to save some time.
WW is it possible to add the ones you have on your site?? Your site looks good, and so does this hack, especially since I'm having trouble with the "time spent" hack. :D Thanks! |
I suppose that I could post a cropped version of what I use for activity and longevity, but the today bar is setting-specific.
|
Quote:
Yeah, I would love the ones for the longevity and activity bar.. :D |
Got it to install.. Had to re-read the directions afew times, but I finally got it all to work.. :D
Thanks! This is a great hack, especially since the "Time Spent" hack is flaky for a lot of people, and doesn't work 95% of the time on my board.. Thanks again! |
I have updated the opening post with a zip with activity and longevity bar images.
|
Quote:
Thanks! The hack works GREAT!! *clicks install with ease* |
is there any demo or screen shot to view wat exactly it looks like ?
|
Quote:
http://zelaron.com/forum/showthread....6279&styleid=9 http://zelaron.com/forum/member.php?...2792&styleid=9 With activity and longevity bars: http://zelaron.com/forum/showthread....279&styleid=13 |
These may be dumb questions:
What is the default post per time period configuration for determining the Activity percentage? How do you change it? How does the hack determing the longevity percentage? Does it go by member number? Or find the oldest join date and compare everyone else to that? |
Quote:
All of the activity hack controls can be accessed from Admin CP->vBulletin Options->Activity Hack (If you change numbers, be sure to perform the Refresh User Activity operation from the Update Counters screen, otherwise users' activity will be displayed wrong for the rest of the day) Longevity is based off of the join date of the user with the oldest join date, the current date, and the join date of the user in question. If you have members with falsified join dates (before the start of the boards), this could be an issue. If the oldest user joined a year ago, and a member joined 6 months ago, then that member would be displayed as having longevity of 50%. |
We have our own user ranking system. Can this hack be used without having that part of it?
|
The today part is not showing up in everyone's postbit?
It shows up for my profile but not for everyone else?? http://www.powwows.com/gathering/sho...869#post558869 |
All times are GMT. The time now is 04:49 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|