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 |
#142
|
||||
|
||||
Quote:
Code:
<!-- post #$post[postid] --> <if condition="$show['spacer']"> $spacer_open <div id="edit$post[postid]" style="padding:0px 0px $stylevar[cellpadding]px 0px"> <if condition="!$post['islastshown']"><!-- this is not the last post shown on the page --></if> </if> <br /> <!-- top category table setup --> <table width="100%" class="tcat" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="50" height="28" align="left" valign="top" class="pbitcat"><img src="$stylevar[imgdir_misc]/cat_back.gif" width="50" height="28" alt="" /></td> <td width="100%" valign="middle"><div class="smallfont" align="center">$post[icon] <strong>$post[title]</strong></div></td> <td width="28" height="28" align="right" valign="top"><img src="$stylevar[imgdir_misc]/cat_top_rs.gif" width="28" height="28" alt=" " border="0" /></td> </tr> </table> <!-- End top category table setup --> <table id="post$post[postid]" class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="1" border="0" width="100%" align="center"> <tr> <if condition="$show['announcement']"> <td class="thead" style="font-weight:normal" colspan="2"> <img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" /> <phrase 1="$post[startdate]" 2="$post[enddate]">$vbphrase[x_until_y]</phrase> </td> <else /> <td class="thead" style="font-weight:normal" $post[scrolltothis]> <!-- status icon and date --> <a name="post$post[postid]"><img class="inlineimg" src="$stylevar[imgdir_statusicon]/post_$post[statusicon].gif" alt="$post[statustitle]" border="0" /></a> $post[postdate]<if condition="!$show['detailedtime']">, $post[posttime]</if> $post[firstnewinsert] <!-- / status icon and date --> </td> <td class="thead" style="font-weight:normal" align="$stylevar[right]"> <if condition="$show['postcount']">#<a href="showpost.php?$session[sessionurl]p=$post[postid]&postcount=$post[postcount]" target="new" rel="nofollow" id="postcount$post[postid]" name="$post[postcount]"><strong>$post[postcount]</strong></a></if> <if condition="$show['inlinemod']"> <input type="checkbox" name="plist[$postid]" id="plist_$postid" style="vertical-align:middle; padding:0px; margin:0px 0px 0px 5px" value="$post[checkbox_value]" onclick="inlineMod.toggle(this)" /> </if> </td> </if> </tr> <tr valign="top"> <td class="alt2" width="175"> <div id="postmenu_$post[postid]"> <if condition="$show['profile']"> <a class="bigusername" href="member.php?$session[sessionurl]u=$post[userid]">$post[musername]</a> <script type="text/javascript"> vbmenu_register("postmenu_$post[postid]", true); </script> <else /> $post[musername] </if> </div> <if condition="$post['usertitle']"><div class="smallfont">$post[usertitle]</div></if> <div class="smallfont"><strong>$WWU002_ranktext</strong></div> <if condition="$post['rank']"><div class="smallfont">$post[rank]</div></if> <if condition="$show['avatar']"> <div class="smallfont"> <br /><a href="member.php?$session[sessionurl]u=$post[userid]"><img src="$post[avatarurl]" alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" /></a> </div> </if> <div class="smallfont"> <br /> <div class="info">$post[musername] is $post[onlinestatus] </div> <div class="smallfont"> <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> <if condition="$post['field2']"><div class="info">$vbphrase[location_perm]: $post[field2]</div></if> <if condition="$post['age']"><div class="info">$vbphrase[age]: $post[age]</div></if> <div class="info">$vbphrase[posts]: $post[posts] <!-- Start Post Thank You Hack --> <if condition="$post[userid]"> <br /> $vbphrase[post_thanks_thanks]: $post[post_thanks_user_amount] <br /> <if condition="$post[post_thanks_thanked_times] == 1"> $vbphrase[post_thanks_time_post] <else /> <if condition="$post[post_thanks_thanked_posts] == 1"> <phrase 1="$post[post_thanks_thanked_times]">$vbphrase[post_thanks_times_post]</phrase> <else /> <phrase 1="$post[post_thanks_thanked_times]" 2="$post[post_thanks_thanked_posts]">$vbphrase[post_thanks_times_posts]</phrase> </if> </if> </if> <!-- End Post Thank You Hack --> <strong>Time spent on board:</strong><br /> $post[timeonboard] </div> <if condition="$show['reputation']"><div class="info">Rep: $post[reputationdisplay]</div></if> <if condition="$show['reppower']"><div class="info">$vbphrase[reppower]: $post[reppower] </div></if> <if condition="$post[icqicon] or $post[aimicon] or $post[msnicon] or $post[yahooicon]"><div class="info">$post[icqicon] $post[aimicon] $post[msnicon] $post[yahooicon]</div> <!-- DONATIONS --> <if condition="$post['donor'] == '1'"><if condition="$post['showdonor'] == '1'"><div><a href="$vboptions[bburl]/donate.php"><img src="$stylevar[imgdir_button]/donate_donor.gif" border="0"></a></div></if></if> <!-- END DONATIONS --></if> </div> </td> <if condition="$show['moderated']"> <td class="alt2" id="td_post_$post[postid]"> <else /> <td class="alt1" id="td_post_$post[postid]"> </if> <if condition="$show['messageicon'] OR $post['title']"> <!-- icon and title --> <div class="smallfont"> <if condition="$show['messageicon']"><img class="inlineimg" src="$post[iconpath]" alt="$post[icontitle]" border="0" /></if> <if condition="$post['title']"><strong>$post[title]</strong></if> </div> <hr size="1" style="color:$stylevar[tborder_bgcolor]" /> <!-- / icon and title --> </if> <!-- message --> <div id="post_message_$post[postid]">$post[message]</div> <!-- / message --> <if condition="$show['attachments']"> <!-- attachments --> <div style="padding:$stylevar[cellpadding]px"> <if condition="$show['thumbnailattachment']"> <fieldset class="fieldset"> <legend>$vbphrase[attached_thumbnails]</legend> <div style="padding:$stylevar[formspacer]px"> $post[thumbnailattachments] </div> </fieldset> </if> <if condition="$show['imageattachment']"> <fieldset class="fieldset"> <legend>$vbphrase[attached_images]</legend> <div style="padding:$stylevar[formspacer]px"> $post[imageattachments] </div> </fieldset> </if> <if condition="$show['imageattachmentlink']"> <fieldset class="fieldset"> <legend>$vbphrase[attached_images]</legend> <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0"> $post[imageattachmentlinks] </table> </fieldset> </if> <if condition="$show['otherattachment']"> <fieldset class="fieldset"> <legend>$vbphrase[attached_files]</legend> <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0"> $post[otherattachments] </table> </fieldset> </if> <if condition="$show['moderatedattachment']"> <fieldset class="fieldset"> <legend>$vbphrase[attachments_pending_approval]</legend> <table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0"> $post[moderatedattachments] </table> </fieldset> </if> </div> <!-- / attachments --> </if> <if condition="$post['signature']"> <!-- sig --> <div> __________________<br /> $post[signature] </div> <!-- / sig --> </if> <if condition="$show['postedited']"> <!-- edit note --> <div class="smallfont"> <hr size="1" style="color:$stylevar[tborder_bgcolor]" /> <em> <phrase 1="$post[edit_username]" 2="$post[edit_date]" 3="$post[edit_time]">$vbphrase[last_edited_by_x_on_y_at_z]</phrase>. <if condition="$post['edit_reason']">$vbphrase[reason]: $post[edit_reason]</if> </em> </div> <!-- / edit note --> </if> </td> </tr> <tr> <td class="alt2"> <if condition="$show['reputationlink']"><a href="#" onclick="reputation($post[postid]); return false;"><img class="inlineimg" src="$stylevar[imgdir_button]/reputation.gif" border="0" alt="<phrase 1="$post[username]">$vbphrase[add_to_xs_reputation]</phrase>" /></a></if> <if condition="$show['reportlink']"><a href="report.php?$session[sessionurl]p=$post[postid]" rel="nofollow"><img class="inlineimg" src="$stylevar[imgdir_button]/report.gif" alt="$vbphrase[report_bad_post]" border="0" /></a></if> $post[iplogged] </td> <if condition="$show['moderated']"> <td class="alt2" align="$stylevar[right]"> <else /> <td class="alt1" align="$stylevar[right]"> </if> <!-- controls --> <!-- Start Post Thank You Hack --> $post_thanks_button <!-- End Post Thank You Hack --> <if condition="$post['editlink']"> <a href="$post[editlink]" name="vB::QuickEdit::$post[postid]"><img src="$stylevar[imgdir_button]/edit.gif" alt="$vbphrase[edit_delete_message]" border="0" /></a> </if> <if condition="$post['forwardlink']"> <a href="$post[forwardlink]"><img src="$stylevar[imgdir_button]/forward.gif" alt="$vbphrase[forward_message]" border="0" /></a> </if> <if condition="$post['replylink']"> <a href="$post[replylink]" rel="nofollow"><img src="$stylevar[imgdir_button]/<if condition="$post['forwardlink']">reply_small<else />quote</if>.gif" alt="$vbphrase[reply_with_quote]" border="0" /></a> </if> <if condition="$show['quickreply'] AND !$show['threadedmode']"> <a href="$post[replylink]" rel="nofollow" id="qr_$post[postid]" onclick="return false"><img src="$stylevar[imgdir_button]/quickreply.gif" alt="$vbphrase[quick_reply_to_this_message]" border="0" /></a> </if> <if condition="$show['moderated']"> <img src="$stylevar[imgdir_misc]/moderated.gif" alt="$vbphrase[moderated_post]" border="0" /> </if> <!-- / controls --> </td> </tr> </table> <!-- post $post[postid] popup menu --> <div class="vbmenu_popup" id="postmenu_$post[postid]_menu" style="display:none"> <table cellpadding="4" cellspacing="1" border="0"> <tr> <td class="thead">$post[username]</td> </tr> <if condition="$show['profile']"> <tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$post[userid]">$vbphrase[view_public_profile]</a></td></tr> </if> <if condition="$show['pmlink']"> <tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&u=$post[userid]"><phrase 1="$post[username]">$vbphrase[send_private_message_to_x]</phrase></a></td></tr> </if> <if condition="$show['emaillink']"> <tr><td class="vbmenu_option"><a href="sendmessage.php?$session[sessionurl]do=mailmember&u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[send_email_to_x]</phrase></a></td></tr> </if> <if condition="$show['homepage']"> <tr><td class="vbmenu_option"><a href="$post[homepage]"><phrase 1="$post[username]">$vbphrase[visit_xs_homepage]</phrase></a></td></tr> </if> <if condition="$show['search']"> <tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&u=$post[userid]" rel="nofollow"><phrase 1="$post[username]">$vbphrase[find_more_posts_by_x]</phrase></a></td></tr> </if> <if condition="$post['userid'] AND $show['member']"> <tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&userlist=buddy&u=$post[userid]"><phrase 1="$post[username]">$vbphrase[add_x_to_buddy_list]</phrase></a></td></tr> </if> </table> </div> <!-- / post $post[postid] popup menu --> <!-- bottom table setup --> <table width="100%" border="0" cellpadding="0" cellspacing="0" style="background-image:url($stylevar[imgdir_misc]/dist_btm_table.gif)"> <tr> <td width="100%" height="14" align="left" valign="top" class="btmcat"> </td> </tr> </table> <!-- End bottom table setup --> <if condition="$show['spacer']"> </div> $spacer_close </if> <!-- / post #$post[postid] --> <!-- Start Post Thank You Hack --> $post_thanks <!-- End Post Thank You Hack --> |
#143
|
||||
|
||||
If you're not sure what your problem is, I can't help you. If you're not sure how to put the activity stuff in a box, change
Code:
<div class="smallfont"> <table class="WWU002postbit" cellspacing="2" cellpadding="0"> Code:
<div class="info"> <table class="WWU002postbit" cellspacing="2" cellpadding="0"> |
#144
|
||||
|
||||
I've reposted the same version of the mod with an HTML template modification guide instead of the text version to resolve confusion some users were having.
|
#145
|
|||
|
|||
Will it always be in the postbit or can you take it out?
|
#146
|
||||
|
||||
it'd be great to have a way to turn this off for long threads....its murderously slow on long threads especially for users who are far from the server (I have a lot of Korean users).
is there any another solution beside just uninstalling it? I really like this. |
#147
|
||||
|
||||
Quote:
Quote:
|
#148
|
||||
|
||||
Great Scripted installed and everything, 3.5.2
Also, is there any way to get the images, in the postbit title kinda thing?? where it says the posts date (as same in this forum ) thank you! |
#149
|
||||
|
||||
Quote:
|
#150
|
||||
|
||||
Quote:
|
#151
|
||||
|
||||
Can this be added in profile page too?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|