The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Activity Modification Details »» | |||||||||||||||||||||||||
For vB3.7, see The vB3.7 version
This is the plugin/vB3.5/vB3.6 version of this hack This mod was developed on vB3.6.4, and tested for compatibility with vB3.5.4 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). 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 activity above the configured threshold, they are promoted from Junior Member to Member. When they log in with the configured amount of time as Member, they are promoted to Senior Member. You can configure the mod to also add secondary usergroups when these promotions happen. Complexity This modification requires 1 XML import, modification to 3 templates, and the addition of some CSS, depending on what options you choose 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). 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. By configuration, 1 query may be added to each page load to find the logged in user's "activity today". By configuration, 1 query may be added to each member profile view to find that member's "activity today". Upgradability This modification will import your settings and data from the 3.0/hack version Frequently Asked Questions
Note: To upgrade, with the old version still installed, go to the Add/Import Product link on the Manage Products page, select the XML file for the new version, choose Yes for overwrite, then click Import. 2.80 release update
Please click the install link if you install this hack I will support this hack in this thread on about a weekly basis. Show Your Support
|
Comments |
#192
|
||||
|
||||
Quote:
Code:
if(isset($WWU002activityPoints)){ $user['activity']=intval($WWU002activityPoints/$WWU002maxPoints*100).'%'; }else if($vbulletin->userinfo['userid']){ $user['activity']=intval($vbulletin->userinfo['wwu002activity']/$WWU002maxPoints*100).'%'; }else{//(isset($WWU002activityPoints)) $user['activity']='N/A'; }//endif(isset($WWU002activityPoints)) |
#193
|
|||
|
|||
Well, I got the activity to show up on my Welcome block thanks to everyone's help here....
Would it be possible to integrate this with usergroup promotions? I am trying to find a way to only allow active users the ability to post in the free classifieds (photopost classifieds) which is integrated with vbulletin usergroups... For example.... only people who maintain a 20% activity level would be included in a custom usergroup, and if their activity falls below this, they drop out of the usergroup until their activity increases to the set level again....... I now require XX amounts of posts to be able to use the classifieds, but find people just post junk until they reach this level and then stop contributing... This feature would take care of that problem.... I know this might be asking a lot....but i am willing to hire someone to do this if it is possible within reason.... Anyone? I think this would be an awesome feature that coule be used in many ways. I also would not have to keep it to myself if someone wants to code it and share it on my dime. Thanks, Lance |
#194
|
||||
|
||||
At one point, I had started work on such a system, but I accidentally wiped it out. The biggest issue is with demotions. A user's activity only gets updated when they visit or when their posts or profile is viewed. This means that it's possible to come back after a month of inactivity and have the old usergroup untill the next time promotions are run. It is, of course, possible to just do activity for everyone at once, however the process would be very server intensive, which is why I do it the way it is now.
Glad to hear that you got it sorted out on your own; sorry I hadn't gotten the chance to look into it for you yet. |
#195
|
|||
|
|||
Quote:
If promotion/demotion can be added to this hack I?ll install it. In any case, excellent hack |
#196
|
|||
|
|||
Quote:
OOps.... reading it again, I guess it would be the activity you would want to run a scheduled update for? and then promotions? Thanks Again, Lance |
#197
|
|||
|
|||
in my post_legacy graphic... under longevity, it says this:
"User has been a member for 76114f the board's existence....etc.." Why does it say "76114f"???? shouldnt that be a variable of some kind, i followed the instructions, but it still says it... sometimes it says another large number, but basically it seems like i left a variable out or something, any ideas???? NEVERMIND, fixed! thanks! |
#198
|
|||
|
|||
Quote:
I set the code as a plugin in global_start hook and used the variable "$user[activity]" in my template but just only gives me 0% anyone know why it doesnt work? |
#199
|
|||
|
|||
Answered my own question.
|
#200
|
|||
|
|||
I installed the file as it said. It shows up as active and it shows up in the admin control panel also. but I dont see anything on the forum. Any help. Im very new at this.
|
#201
|
|||
|
|||
Quote:
help, this doesnt work when i use $user[activity] in my template.. it just spits out "0"...... i did everything requested above.. anyone help please! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|