The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Activity Modification Details »» | |||||||||||||||||||||||||
This is the vB3.7/vB3.8 version of this modification.
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, uploading of images, 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 This modification will import your settings and data from the 3.5/3.6 mod 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. Update 3.03 release
Update 3.01 release
Update 3.00 release No changes Update 3.00 beta 3
Update 3.00 beta 2
Version 3 (3.00 beta 1) vs Version 2 (2.80)
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 |
#292
|
|||
|
|||
Hello WetWired thanks for reply me.
I use VB3.8.2 and xcache and you have right!! I disabled the vB_Datastore_XCache and came back to vbulletin default vB_Datastore_Filecache and now is working ok. But if you know (neither no) a way to work with xcache too I will appreciated you, so much. With respect Robby |
#293
|
|||
|
|||
Hey -- GREAT mod -- it's become the lifeblood of a site I co-run. Two quick questions:
1. Is there a way to modify the "Top Activity" page to show last login instead of join date? 2. Is there a way to modify the "Top Activity" page to hide banned users (or users that are in a specific usergroup)? We have an activity-based site, and when people fall below a certain activity level they get put into an inactive group. I'd like to be able to hide those folks from the top activity page so we see only the actives. Thanks! |
#294
|
|||
|
|||
Is this compatible with v3.8 yet? I would love to use this mod.
|
#295
|
||||
|
||||
Quote:
in the plugin marked "Top Activity" (for forumhome), find Code:
//**************************************** // How old are we? how many users do we need to process? if(MAX_NUM==0){ $querylimit=1; }else{//(MAX_NUM==0) $daysold=($WWU002startOfDay-$statdata[0])/WWU002_ONE_DAY; if(($daysold>=($vbulletin->options['WWU002weeks']*3.5))||($_REQUEST['oldway'])){ //A complete reversal of activity is possible in this time period, we must check everyone $querylimit='1'; }else{//($daysold>=($vbulletin->options['WWU002weeks']*3.5)) //What is the lowest activity that could surpass the lowest activity on the old list? $acc=0; DEVDEBUG('Days old='.$daysold); for($i=1;$i<=$daysold;$i++){ $acc+=$WWU002maxDay*$WWU002weekWeights[floor($i/7)]; }//endfor($i=1;$i<$daysold;$i++) $temp=$statdata[1]; $temp=array_pop($temp); DEVDEBUG('Activity lower limit='.$temp[3].'-'.($acc*2).'='.($temp[3]-($acc*2))); $acc=$temp[3]-($acc*2); if($acc<=0){ //just use the simple where clause $querylimit='1'; }else{//($acc<=0) $querylimit='wwu002activity>='.$acc; }//endif($acc<=0) }//endif($daysold>=($vbulletin->options['WWU002weeks']*3.5)) }//endif(MAX_NUM==0) Code:
$querylimit='usergroupid<>100'; For the date thing, I think you should be able to find (in the same plugin) Code:
$longresult=$db->query_read('SELECT userid,username,joindate FROM '.TABLE_PREFIX.'user WHERE userid IN ('.$ids.')'); Code:
$longresult=$db->query_read('SELECT userid,username,lastvisit AS joindate FROM '.TABLE_PREFIX.'user WHERE userid IN ('.$ids.')'); |
#296
|
||||
|
||||
It's my understanding that it is.
|
#297
|
|||
|
|||
Hello WetWired can you drop me one line answer?
I use VB3.8.2 and xcache and you have right!! I disabled the vB_Datastore_XCache and came back to vbulletin default vB_Datastore_Filecache and now is working ok. But if you know (neither no) a way to work with xcache too I will appreciated you, so much. With respect Robby |
#298
|
||||
|
||||
I don't know anything about xcache or why it messes up the top activity caching. The error you gave was related to the datastore, so that was the prime suspect. TBH, if you're getting that error I'm not sure how anything can work on your forum, since everything uses the datastore. The top activity uses it in a non-standard way, though, since the usual way would require a separate file for the top activity page.
There are two relatively easy ways to solve the problem:
The third option would be to find out what xcache is doing, but as I said I know nothing about it. |
#299
|
|||
|
|||
Hello WetWired thanks for your answering me.
I understud these you wrote me. I dont have other problems using xcache, datastore is working ok. I will search and make some other combinations to find a way to work with xcache without this message on the top of page, I hope to find an answer I like your mod very much, is good clever and clean job. Thanks a lot. Robby |
#300
|
|||
|
|||
Quote:
|
#301
|
||||
|
||||
Quote:
Upload the attached file to your forum directory and access activitystat.php with xcache on. See if it works without giving an error message. If it doesn't give an error message, I will follow up with the template changes to integrate it propperly. |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|