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 |
#82
|
||||
|
||||
Quote:
Quote:
Code:
<table class="WWU002postbit" cellspacing="2" cellpadding="0"> <tr> <td><img src="$stylevar[imgdir_misc]/activity/textactivity.gif" /></td> <td><img src="$stylevar[imgdir_misc]/activity/textlongevity.gif" /></td> </tr> <tr> <td title="$WWU002_activityinfo"><img src="$stylevar[imgdir_misc]/activity/activity$WWU002_activitylevel.gif" class="i" /></td> <td title="$WWU002_longevityinfo"><img src="$stylevar[imgdir_misc]/activity/long$WWU002_longevitylevel.gif" class="i" /></td> </tr> <tr> <td><img src="$stylevar[imgdir_misc]/activity/texttoday.gif" /></td> <td><img src="$stylevar[imgdir_misc]/activity/textposts.gif" /></td> </tr> <tr> <td title="$WWU002_todayinfo"><img src="$stylevar[imgdir_misc]/activity/today{$WWU002_todaylevel}_$WWU002_maxtodaylevel.gif" class="i" /></td> <td dir="ltr"><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[1].gif" class="il" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[2].gif" class="im" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[3].gif" class="im" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[4].gif" class="im" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[5].gif" class="im" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[6].gif" class="im" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[7].gif" class="im" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[8].gif" class="im" /><img src="$stylevar[imgdir_misc]/activity/posts$WWU002_postsd[9].gif" class="ir" /></td> </tr> </table> Quote:
Regarding vBAdvanced, I don't use it, so I'll need your help in determining the source of the problem. First of all, enable debug mode on your forum, go to the page with the problem, and in the new drop down at the bottom of the page, tell me if you see any 'WWU002: Postbit for user X' messages and if the X is non-zero. |
#83
|
|||
|
|||
PHP Code:
|
#84
|
|||
|
|||
Wetwired:
This is a really great plugin. I was just thinking - it would be really cool if I could get all of my user statistics into the same graphical format as shown in the postbit_legacy layout for the Activity Mod. If it's not too much trouble, would you be able to tell me how to get other numerical values to show up in the graphical format as the Activity Mod does for the post count? Being able to grab a numerical value from the user table and change it to graphical format like this does for post count would actually make a cool standalone addon too. Thanks!! |
#85
|
||||
|
||||
What exactly does the Activity meter calculate? It looks like it goes up to 100%, but how does it work?
|
#86
|
||||
|
||||
Quote:
Code:
//Separate out postcount $WWU002postcount=$WWU002user['posts']; if($WWU002postcount<1){ $WWU002_postsd=array(1=>'s',2=>'s',3=>'s',4=>'s',5=>'s',6=>'s',7=>'s',8=>'s',9=>'0'); }else{//($WWU002postcount<1) for($i=9;$i>0;$i--){ $WWU002digit=$WWU002postcount%10; $WWU002postcount=floor($WWU002postcount/10); if(($WWU002digit==0)&&($WWU002postcount==0)){ $WWU002_postsd[$i]='s'; }else{//(($WWU002digit==0)&&($WWU002postcount==0)) $WWU002_postsd[$i]=$WWU002digit; }//endif(($WWU002digit==0)&&($WWU002postcount==0)) }//endfor($i=9;$i>0;$i++) }//endif($WWU002postcount<1) You should be able to use the same code to separate out the digits for any value, just change the second line to assign $WWU002postcount to the new value to break down, and replace occurrances of $WWU002_postsd with a different variable to hold the digits. Quote:
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. For an in-depth explaination (this file is included with the mod): https://vborg.vbsupport.ru/attachmen...chmentid=33478 |
#87
|
|||
|
|||
Quote:
Now all I need to do is try to get it to work with another variable I have. Unfortunately I don't know why a hook can't use a specific variable when it can be called when placed in the postbit. This isn't to do with the Activity Mod (at most it's an adaptation of a feature of the Activity Mod) so I made a post here instead: https://vborg.vbsupport.ru/showthread.php?t=99795 |
#88
|
|||
|
|||
First of all - great hack - looks really nice with the images and its pretty usefull. Secondly i have a problem - the titles dont seem to update. I installed the hack over 24 hours ago so theoretically ppl with the needed activity should have been updated today and moved in the higher category.
Code:
if($vbulletin->userinfo['userid']){ ..... everything till here seems to work fine, the visitlog table looks fine and so do the fields in the user table other than the "rank" $WWU002userid=$vbulletin->userinfo['userid']; $WWU002activityPoints=eval($WWU002activityUpdate); //memberlevel 1 to memberlevel 2 if(($vbulletin->userinfo['wwu002memberlevel']<2)&&($WWU002activityPoints>=($WWU002maxPoints*($vbulletin->options['WWU002level2THold']/100)))){ devdebug('WWU002: promoted user '.$vbulletin->userinfo['userid'].' to level 2'); $vbulletin->userinfo['wwu002memberlevel']=2; $db->query_write('UPDATE '.TABLE_PREFIX.'user SET wwu002memberlevel="2",wwu002fullmemberdate="'.$WWU002startOfDay.'" WHERE userid="'.$vbulletin->userinfo['userid'].'"'); $vbulletin->userinfo['wwu002fullmemberdate']=$WWU002startOfDay; }//endif(($vbulletin->userinfo['wwu002memberlevel']<2)&&($WWU002activityPoints>=($WWU002maxPoints*($vbulletin->options['WWU002level2THold']/100)))) If i see it correctly members who once got promoted keep their rank for the rest of the time? Is it possible to make that limited so you get dropped down a level again once ur activity drops below the point of where it had to be to get promoted?-again - I could do that with a cronjob but I'm just wondering if it's something other people would like to see.) Thanks again, Lor20 |
#89
|
|||
|
|||
I was just wondering what I would need to edit to move the 4 bars around in the postbit. I want them lined up underneath Rep Power, but instead they are over to the left. What template edits do I need to make to get them lined up?
|
#90
|
||||
|
||||
Quote:
Quote:
|
#91
|
|||
|
|||
I know it is supposed to update when the user visits, it is not doing that for me though. I have users who have an activity of over 60% and are still on level 1 (while the barriers are set at 25% and 65%). ALL my users are on level one even though about 100 or so of them were online in the last day and had enough activity to be "promoted".
Lor20 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|