Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
The Activity Hack v2.1 Details »
The Activity Hack v2.1
Mod Version: 2.1, by WetWired (Member) WetWired is offline
Developer Last Online: Sep 2014 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.0.3 Rating: (0 vote - 0 average) Installs: 27
Released: 21 Dec 2004 Last Update: 16 May 2005 Downloads: 152
Not Supported DB Changes Is in Beta Stage  

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

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 21 Dec 2004, 07:42
jamesk jamesk is offline
 
Join Date: Jan 2004
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?
Reply With Quote
  #3  
Old 21 Dec 2004, 09:03
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Real name: Rob
Why don't you use the datastore and save all of those queries?
Reply With Quote
  #4  
Old 21 Dec 2004, 14:12
WetWired's Avatar
WetWired WetWired is offline
 
Join Date: Jun 2002
Originally Posted by Boofo
Why don't you use the datastore and save all of those queries?
How would you suggest that I do that? I already use two techniques to minimize queries to the minimum possible. Currently, I use a results cache to insure that activity is only ever computed once per user per page view; I also only compute activity once per day per user, and that only if the information needs to be displayed.

Last edited by WetWired; 21 Dec 2004 at 14:18.
Reply With Quote
  #5  
Old 21 Dec 2004, 14:14
WetWired's Avatar
WetWired WetWired is offline
 
Join Date: Jun 2002
Originally Posted by jamesk
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?
This hack includes support for image based activity and longevity bars, but you must supply the images yourself.
Reply With Quote
  #6  
Old 21 Dec 2004, 14:20
Gio~Logist's Avatar
Gio~Logist Gio~Logist is offline
 
Join Date: Jun 2004
Location: San Francisco
Real name: Giovanni Martinez
That's an extremely nice hack, and looks extra good on YOUR forums with that nice postbit.
__________________

ModernvB.com - vBulletin Mods & Services - ModernvB.com vBulletin 3 Mods - ModernvB.com vBulletin 4 Mods - Hire ModernvB
Full-Time vB Development - If you can think it, we can build it.
Reply With Quote
  #7  
Old 21 Dec 2004, 18:44
dndog dndog is offline
 
Join Date: Apr 2004
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.
Reply With Quote
  #8  
Old 22 Dec 2004, 03:09
WetWired's Avatar
WetWired WetWired is offline
 
Join Date: Jun 2002
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).
Reply With Quote
  #9  
Old 25 Dec 2004, 17:49
lange lange is offline
 
Join Date: Apr 2003
I love this hack but 32 queries seems too much. I'll test it on a test forum.

Thanks for your Chrismast gift.
Reply With Quote
  #10  
Old 26 Dec 2004, 01:35
WetWired's Avatar
WetWired WetWired is offline
 
Join Date: Jun 2002
Originally Posted by lange
I love this hack but 32 queries seems too much. I'll test it on a test forum.

Thanks for your Chrismast gift.
32 queries to install. It's done by a script, so it shouldn't even be mentioned in the description.
Reply With Quote
  #11  
Old 28 Dec 2004, 20:14
lasto lasto is offline
 
Join Date: Jan 2002
what - this hack adds 32 queries when viewing posts - if so then it aint worth installing then.
Reply With Quote
  #12  
Old 29 Dec 2004, 03:17
djjeffa's Avatar
djjeffa djjeffa is offline
 
Join Date: Aug 2004
Real name: jeff
look good ill wait abit and then install lol
__________________
www.djjeffa.com
Reply With Quote
  #13  
Old 29 Dec 2004, 19:45
Deaths Deaths is offline
 
Join Date: Oct 2004
Real name: Arnoud Kuipers
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
Reply With Quote
  #14  
Old 30 Dec 2004, 05:51
WetWired's Avatar
WetWired WetWired is offline
 
Join Date: Jun 2002
Originally Posted by lasto
what - this hack adds 32 queries when viewing posts - if so then it aint worth installing then.
As I said in the post immediately above yours, it's on install. At view, it's two queries plus 2 per user who hasn't had activity updated that day. The dynamic of this is a max of 32 queries per page, which will happen a bit after midnight when the old data is discarded, and 2 queries per page the rest of the day.

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.
Reply With Quote
  #15  
Old 30 Dec 2004, 05:59
WetWired's Avatar
WetWired WetWired is offline
 
Join Date: Jun 2002
Originally Posted by Deaths
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?
All you need to do is enable it in the settings, then use the array in the names of the images, for example, if you made the images
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' .
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 01:49.

Layout Options | Width: Wide Color: