Activity Modification, v3.00
for vBulletin 3.7.0
by WetWired the Unbound
This file contains reference information for people who want or need to change the default display of the activity mod. Users wishing to slightly alter the way the activity information by the postcount is displayed should edit the activity_statblock template. Users wishing to display the rank as an image should edit the activity_rankblock template. Users wishing to make more complicated postbit changes should study the Available variables section, which lists variables you can use directly in the postbit template.
Predefined templates
The following templates are added by the mod:
Template name | Description |
activity_headinclude | Contains the javascript used to do DOM modification of postbits. Appended to headinclude at runtime. |
activity_navbar | Contains the navbar link for the Top Activity page. |
activity_postbit_epilogue | Contains a JS call to the function in activity_headinclude for the current post. Gets added at the end of the visible postbit. |
activity_rankblock | Contains the ranktext output wrapped in a DIV. You might want to change it to use a custom image, instead. |
activity_statblock | Contains the image-version statblock, displaying activity, longevity, activity today, and postcount. |
activity_statblock_text | Contains the text-version statblock, displaying activity, longevity, and activity today. |
activity_topstatbit | Contains a row of the Top Activity page. |
activity_topstatpage | Contains the main Top Activity page. |
memberinfo_block_activityministat | Contains the Activity block optionally displayed in user profiles on the right side. |
memberinfo_block_statistics_activity | Contains the Activity section optionally added to the Statistics tab in the user profiles. |
Available variables
Where | Use this form |
postbit templates | $WWU002_XXXX |
userinfo templates | $userinfo[WWU002_XXXX] |
anywhere (logged in user) | $bbuserinfo[WWU002_XXXX] |
activity_rankblock, activity_statblock | $output[WWU002_XXXX] |
Base variable name | Description |
Pre-formatted |
WWU002_rankblock | Content of the template activity_rankblock |
WWU002_statblock | Content of the template activity_statblock |
Overall activity |
WWU002_activitypercent | Activity value as a percent |
WWU002_activitylevel | 0-20 rating for use in an image name |
WWU002_activity | Raw activity |
WWU002_maxpoints | Max value for WWU002_activity |
Overall activity breakdown |
WWU002_activityfromvisits | Activity from visits value as a percent, only available for registered users |
WWU002_activityfromposts | Activity from posts value as a percent, only available for registered users |
Today's activity |
WWU002_todaylevel | Today's activity 0=no visit today or invisible 1=visted today values over one indicate a visit and $todaylevel-1 posts up to maximum |
WWU002_maxtodaylevel | Maximum possible value for WWU002_todaylevel |
Longevity |
WWU002_longevitylevel | 0-20 rating on the amount of time user has been a member compared to the time the first undeleted user in the database registered (usually userid 1) |
WWU002_longevitypercent | Same information as a percentage |
Detailed info for tooltips |
WWU002_activityinfo | Information to put in a title attribute for the activity line |
WWU002_todayinfo | Information to put in a title attribute for the today line |
WWU002_longevityinfo | As above, those cool details that on IE and NS should appear in a tooltip |
Postcount |
WWU002_postsd1 - WWU002_postsd9 | Used for images version of the templates. Nine digits of the postcount for imagization. $postsd1 is the most significant digit. Value for each will be either 's' for a space or '0'-'9'. Must be enabled in admincp. |
Rank |
WWU002_ranktext | Output of advance rank system for this user |
WWU002_memberlevel | Number 1-3 indicating whether a member had reached the thresholds setup in the options |
The availability of 'today' variables and/or their normal information is dependant upon several settings in the options. Displaying activity today causes significant SQL load and is thus disabled by default.
Manual postbit modifications
To manually alter your postbits, select from these instructions. For lightly modified styles with template hooks, you shouldn't need to use this section
postbit (default location)
find
<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
below it, insert
$WWU002_rankblock
find
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
above it, insert
$WWU002_statblock
postbit (alternate location)
find
<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
below it, insert
$WWU002_rankblock
find
</tr>
</table>
<!-- / user info -->
above it, insert
<td class="WWU002postbit">$WWU002_statblock</td>
postbit_legacy (default location)
find
<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
below it, insert
$WWU002_rankblock
find
<div>$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon] $post[skypeicon]</div>
above it, insert
$WWU002_statblock
postbit_legacy (alternate location)
find
<if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if>
below it, insert
$WWU002_rankblock
find
<if condition="$show['avatar']">
<div class="smallfont">
<br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a>
</div>
</if>
below it, insert
$WWU002_statblock