[REQ] The Activity Hack v2.1 and a few other mods

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
------------------------------------------------------------------------------------------------------------------------

Automatic Welcome PM
This Hack will automatically send welcome PMs to new members.
Message Title and Body are Phrases (Varname welcomepm in Phrasegroups EMail Subject Text and eMail Body Text), so you can have Messages in different languages.
You can also specify which User should appear as Sender in vBulletin Options / User Registration Options).

Details
1 Product XML

ContributionsGerman Language Pack by Metro Man

History
1.0.0
Initial Version

1.0.1
Updated for RC1

1.0.2
Added direct links to the Phrases in vBulletion Options / User Registration Options to make it easier to change the Text.

1.0.3
Fixed a slight Problem that caused PMs not being send under certain conditions

1.0.4
Fixed a Bug that caused PMs not being send on upgraded vBulletin installations.

FAQ


1. Q: How to I set/change the sender?
A: Go to ACP / vBulletin Options / vBulletin Options / User Registration Options.
On the bottom, you will find an input box for the userid that should appear as the sender.
2. Q: How to I change the message title/body?
A: Go to ACP / vBulletin Options / vBulletin Options / User Registration Options.
On the bottom, you will find an input box for the userid that should appear as the sender.
In the description text for this input box, there are links for changing the text.
3. Q: When I try to install this, I get "Warning: Invalid argument supplied for foreach() in /includes/functions.php on line xxx".
What am I doing wrong?
A: You are trying to import the XML as a Plugin which is wrong. It must be imported as a Product (ACP / Plugin System / Manage Products).
4. Q: Why does this Hack not work?
A: Although it is possible that you have discovered a new Bug that causes it not to work, it is more likely that you have made an installation/configuration/customization mistake.
Before asking for support, please check:
- Did you enter the Userid of the Sender?
- Does the sender have permission to use PMs?
- Does Usergroup registered have permission to use PMs?
- Are you using the original Phrases?


Please only click Install if you actually have installed/are using this Hack, and click Uninstall whan you don't use it any longer!

Important Notice
This Hack is not designed nor necessary for vBulletin 3.6.
Do not install it on vBulletin 3.6 if you don't want to run into problems.
You should uninstall this Hack before upgrading to vBulletin 3.6
 
Thank you -Hammad-!

I just have a few problems though :(

I am using Vbulletin v3.7.1

I have installed The Activity Hack and when I try to run the installer. I get a error:
-------------------
Fatal error: Call to a member function on a non-object in /homepages/**/**********/htdocs/******/forums/admincp/acthackinstall.php on line 14
-------------------

I also installed the Automatic Welcome PM and I can't edit the message. When I click to change the subject or the content in the message, I get this message:
-------------------
No Phrases Matched Your Query
-------------------

Please help me!
 
Back
Top