vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Miscellaneous Hacks - Activity Modification (https://vborg.vbsupport.ru/showthread.php?t=177366)

WetWired 04-27-2008 10:00 PM

Activity Modification
 
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
  • I don't see the Activity Settings section or Activity Maintenance link on the AdminCP navbar
    You're probably seeing a cached (old) copy of the navbar. Try pressing Ctrl-F5 in IE or FF, or whatever your browser requires to force it to load the current version of the page.
  • I installed this mod and nothing shows up
    First, go to AdminCP|Activity Settings|Display and make sure the dropdown settings are not set to None. If they aren't set to none, the most likely cause is using an old style which does not have template hooks; verify this by creating a new style without a parent and checking to see if the mod displays on it (the images probably won't load, though). If the mod displays on the default style but not your normal one, you need to add template hooks, otherwise post here for help.
  • I installed this mod using the Download/Upload Plugin page and there was an error/it doesn't seem to work
    To install this mod, you need to use the Add/Import Product link on the Manage Products page
  • I just installed and everyone's activity seems low
    1. Part of the activity calculation is what days users visited on. This information isn't collected before the mod is installed, so no user can have 100% activity untill you've been running the mod for the full period of time you have it set to monitor
    2. Please realize that there is no "roll over" for activity; if you have it set to look at 4 posts per day, your users must post 4 posts on each individual day to obtain 100%.
  • I founded this forum, but I don't have 100% longevity
    Somehow a user's join date has been set before yours. When you install, the mod looks for the earliest join date to use to find longevity, but you can change the baseline date. To change the "Start of board" time, go to Maintenance>Activity Maintenance>Set Start of Board, enter your user number in the text field, then click Set Start of Board
  • Why don't the images don't show up?/Why does the postcount have 's's in front of it?
    Be sure to upload one of the activity directories from activityimages.zip to the misc directory for each of your styles. To find a style's misc directory, goto the Style Manager, then from the dropdown next to the style, choose Stylevars. The setting Miscellaneous Images Folder contains the path to that style's misc directory, where you need to upload the activity directory
  • Can I use activity for promotions?
    The project to build a full-blown promotion hack for use with this mod has been cancelled, after losing all of my work, however a much simpler system that adds secondary groups based on two thresholds has been added to the main hack.
  • Can you make X number get split up into digits?
    I understand where you're coming from with this one, but I just can't figure out a way to work this that would be simple to use.
  • The tooltips don't wrap and get cut off with FireFox
    The same thing happens to other vB tooltips (the thumbnail ones, for example). If you know a way to add line breaks to FF tooltips without scripting, please let me know.
Change log

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
  • Fixed a PHP error that some people were having

Update 3.01 release
  • Fixed a PHP warning that did not break anything. It should no longer be added to your error logs.

Update 3.00 release
No changes

Update 3.00 beta 3
  • Fixed template to use correct forumhome location
  • Separated text-version stat block into its own template
  • Moved settings into their own navigation group on the left (refresh AdminCP page after upgrading)
  • Added new customization reference page to install zip

Update 3.00 beta 2
  • Fixed a bug which prevented the postbit display option from working
  • Fixed a bug where the Top Activity link could be in the navbar without the Top Activity page being enabled
  • Fixed a bug where certain users have postcount of 'n/a' in Top Activity
  • Added diagnostic screen
  • Set minimum forum version

Version 3 (3.00 beta 1) vs Version 2 (2.80)
  • Added template hook and DOM based styling; manual template modification no longer needed
  • Split the options page into four options pages
  • Added many options to control the style of the mod
  • Added "Countdown to 100%" feature in the Top Activity page
  • All new profile page display for vB3.7
Support

Please click the install link if you install this hack
I will support this hack in this thread on about a weekly basis.

shadowevil 04-28-2008 01:50 AM

great mod, i like it ..... installed

JWalker05 04-28-2008 02:14 AM

Very happy to see this mod ready for 3.7. :)

Jasem 04-28-2008 03:00 AM

Thank you very much, good work

DJ Matt4684 04-28-2008 04:02 AM

I already had this installed, but it was version 2.80. To upgrade, all I have to do is import the xml file? Do I select overwrite to yes or no? Also, I am using everything, but the posts with this hack. Not sure if that would matter or not. I just need some clarification on this for an upgrade.

WetWired 04-28-2008 04:12 AM

Yes, just import with overwrite set to yes. You can change the display options in the AdminCP|vBulletin Options panel to disable duplicate/undesired visual elements.

Playa82 04-28-2008 05:03 AM

i got vbadvanced installed. the stat page doesn't work. everytime i want to see it, i get back to the main page.

somebody know how to fix that ?

PaylaX 04-28-2008 05:33 AM

Perfect!

Thanks WetWired.

Installed

PixelFx 04-28-2008 05:39 AM

installed

Magnumutz 04-28-2008 06:14 AM

Whoa, it's nice to see an old modification brought back to life :D

Good job dude !

KURTZ 04-28-2008 09:56 AM

i think which this hack is pretty similar to vBexperience ... :)

Magnumutz 04-28-2008 10:24 AM

It's better looking ;)

Big Boss 04-28-2008 10:39 AM

Not bad at all. I'm gonna have this installed as soon as I've upgraded to 3.7.

gwerzal 04-28-2008 11:06 AM

Looks good.

What is the difference to the vbexperience mod.

Dont mean to put this down as it looks really good but are there anything this does that doesn't

Hornstar 04-28-2008 12:19 PM

I'm thinking of installing this again. my members used to love it.

WetWired 04-28-2008 12:23 PM

Quote:

Originally Posted by Playa82 (Post 1501219)
i got vbadvanced installed. the stat page doesn't work. everytime i want to see it, i get back to the main page.

somebody know how to fix that ?

Make sure you have the stat page enabled. There is a bug where the link can be disabled while the stat page is disabled.

Quote:

Originally Posted by Magnumutz (Post 1501255)
Whoa, it's nice to see an old modification brought back to life :D

Good job dude !

o_0 It never died

WetWired 04-28-2008 12:37 PM

This mod is to creates an absolute activity metric, whereas the one provided by vbexperience is relative. This mod has a curve on the value of contributions in previous weeks, whereas vbexperience's activity stat is linear. This mod caps valued activity per day, whereas it would appear that you can spam up vbexperience's activity stat in one day.

Basicly, this mod allows you to set up an activity metric where you can look at the value the user has and have a good feel for how active they are. The way mine is set up, I can look at it and know that 20% is lurkerish, 50% participates, and 100% participates a lot. In the activity mod, multiple people can reach 100%, because 100% is a fixed goal, not based on the comparison of you to others.

ShawneyJ 04-28-2008 01:06 PM

Excellent

book marked for tomorrow ;) thx

Magnumutz 04-28-2008 02:30 PM

Quote:

Originally Posted by WetWired (Post 1501424)
o_0 It never died

Well, it hasn't been updated for like an year, before this one.
So... you get my point :p

WetWired 04-28-2008 02:39 PM

That's because there really wasn't anything that needed to change, though I did add that "Countdown to 100%" feature on my own forum during 2.80.

Speaking of changes, I'm open to considering actions with new features of vB3.7 as posts, but I haven't really had the time to poke arround and figure them out, so if you'd like me to add the option to consider taking some action to be the same as posting, please post with:
  • The name of the action
  • Any steps needed to enable the action
  • Steps to perform the action
  • A brief explaination of the action
  • Any technical details you might have such as table names and field names involved
This will help me quickly come up to speed so I can consider the additions.

MetalORock 04-28-2008 03:39 PM

very great, thank you ! :) but wait for final version

logicuk 04-28-2008 03:50 PM

i cant get this to display in my postbit

ive tried selecting default location and alternative location and it still dont show

any ideas how i can get it to show in the postbit?

and how do i see the activity statistics page showing top 25 users?

thanks

WetWired 04-28-2008 05:10 PM

Make sure that your postbit has the template hooks in it. Custom styles, especially for older versions may not have them. This mod requires the following lines in your postbit or postbit_legacy template, depending on which you use:
$template_hook[postbit_userinfo_left]
$template_hook[postbit_userinfo_right]
$template_hook[postbit_end]
If your postbit template doesn't have these and you don't know where to put them, you can add
$WWU002_rankblock
under the username and
$WWU002_statblock
under the postcount to add the stuff for this mod manually. With the manual mods, none of the postbit controls in the options will work, however.

To see the activity statistics page, go to the Activity Top Activity Page section in the options and make sure the top two options are set to yes, then click the "Stats" link in the navbar. If your navbar doesn't have template hooks, the url will be like
http://zelaron.com/forum/index.php?do=activitystat
but with the path to your forum index. You'll need to manually put it somewhere.

I highly recommend that you update your style/get a style that has template hooks, as I suspect most vb3.7 mods will require them.

logicuk 04-28-2008 05:22 PM

i cant get it working id be greatful if you can come on the icq account listed on your profile

thanks

hubba 04-28-2008 05:36 PM

Installed but nothing happens... the activity folder is in the misc dir... using 3.7 Beta 4

WetWired 04-28-2008 06:31 PM

Did you check to see if it shows on the vBulletin default style?

hubba 04-28-2008 06:55 PM

Yes... also not showing.

Evolution06 04-28-2008 07:48 PM

Installed not showing read the install guide and asked questions does not work on default or any style for that matter please advise. Version vB 3.7 rc4

WetWired 04-28-2008 09:00 PM

I'm writing up a diagnostic routine that will be part of beta2 later tonight. Hopefully that will help me find the problem.

WetWired 04-28-2008 10:42 PM

beta2 posted. I think I found the bug that was causing most of you problems. If you're still having problems, visit the Activity Maintenance page (in the Maintenance group in the AdminCP -- you may need to force refresh), perform the Configuration diagnostic, and get the output to me.

DS MrSinister 04-29-2008 02:06 AM

thanks for updating your mod sir. works great.

Playa82 04-29-2008 04:32 AM

good work on that update, but i still can't get the stats page working. as is said, everytime i want to see it, i get back to my portal main page.

butch3r 04-29-2008 08:24 AM

Quote:

Originally Posted by Playa82 (Post 1502041)
good work on that update, but i still can't get the stats page working. as is said, everytime i want to see it, i get back to my portal main page.

Open template "activity_navbar" and replace it with

Code:

                <td class="vbmenu_control"><a href="forum.php?$session[sessionurl]do=activitystat">$vbphrase[WWU002_stats_short]</a></td>

Playa82 04-29-2008 09:12 AM

Quote:

Originally Posted by butch3r (Post 1502131)
Open template "activity_navbar" and replace it with

Code:

                <td class="vbmenu_control"><a href="forum.php?$session[sessionurl]do=activitystat">$vbphrase[WWU002_stats_short]</a></td>


now it works. thank you

WetWired 04-29-2008 11:59 AM

Quote:

Originally Posted by butch3r (Post 1502131)
Open template "activity_navbar" and replace it with

Code:

                <td class="vbmenu_control"><a href="forum.php?$session[sessionurl]do=activitystat">$vbphrase[WWU002_stats_short]</a></td>

Fixed for beta3...

butch3r 04-29-2008 12:21 PM

Quote:

Originally Posted by WetWired (Post 1502220)
Fixed for beta3...

How did you fix that in beta?
is that ->
Code:

<a href="$vboptions[forumhome].php$session[sessionurl]do=activitystat">

WetWired 04-29-2008 01:34 PM

Yes. As soon as I saw your fix I realized I forgot that the forumhome isn't always index.php

butch3r 04-29-2008 03:42 PM

Quote:

Originally Posted by WetWired (Post 1502301)
Yes. As soon as I saw your fix I realized I forgot that the forumhome isn't always index.php

Can i ask you one more question? I think its better to make Activity Settings not in "vBulletin Options" but "Activity" with 4 tabs in there.
>> Sry for my english

Magnumutz 04-30-2008 03:23 AM

How do i add this to my postbit, manually?

WetWired 04-30-2008 12:20 PM

All of the available variables are listed at the bottom of the installation instruction file, but the easiest way is to add
$WWU002_rankblock
$WWU002_statblock
where you want them. The first is the additional rank provided by the mod, while the second is the actual activity and longevity information. I suggest putting the rank under the usertitle and putting the statblock under (or instead of) the postcount. If you need search,add below type instructions, I can provide those, too.


All times are GMT. The time now is 06:19 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01691 seconds
  • Memory Usage 1,833KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete