vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Activity Modification (https://vborg.vbsupport.ru/showthread.php?t=93831)

Logikos 01-03-2006 06:10 PM

WetWired sent me the 'top ten activity script' he uses for vB3.0. I'm working on porting it for 3.5 now. :)

TheProphet 01-03-2006 06:30 PM

That would be nice m8....

docvader 01-05-2006 05:10 PM

How would I input the graphical activity data (that you see in the postbit), into the memberinfo template, so that all the bars show up? I tried adding the same postbit addition code into my memberinfo template, but, only the first row of images showed up, the rest failed. See here:
http://russbo.org/vb/member.php?find...595&styleid=53

I used this code:
Quote:

<td class="WWU002postbit">
<table 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.gi f" 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>
</td>
Thanks!
rich

docvader 01-06-2006 04:17 PM

Well, when you put this into template "memberinfo" to show it in the user's profiles, the images that are called are not calculated correctly.

For example, TODAy would call for: http://russbo.org/vb/styles/iSkin_Bl...vity/today.gif

When in fact it should call for:
http://russbo.org/vb/styles/iSkin_Bl...y/today0_0.gif

So, something is not getting calculated, somewhere, to change the images.

Does this have to be solely in the postbit for it to calculate correctly, or, could it be made to be put in other places, such as the welcome box or member profile? Just curious how one might do this.

Thanks!
rich

WetWired 01-09-2006 10:44 PM

Quote:

Originally Posted by The installation guide
template customization
This is information for creating your own template customizations different from the one provided above.

the following variables will become available in the 'postbit', 'postbit_legacy','postbit_deleted','postbit_ignore ',and 'postbit_ignore_global' templates:
$WWU002_activitypercent Activity value as a percent
$WWU002_activity Raw activity
$WWU002_maxpoints Max value for $WWU002_activity
$WWU002_activitylevel 0-20 rating for use in an image name
$WWU002_activityinfo Information to put in a title attribute for the activity line
$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
$WWU002_todayinfo Information to put in a title attribute for the today line

$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
$WWU002_longevityinfo As above, those cool details that on IE and NS should appear in a tooltip
$WWU002_postsd[] Used for images version of the templates. Nine digits of the postcount for
imagization. $postsd[1] is the most significant digit. Value for each will be
either 's' for a space or '0'-'9'. Must be enabled in admincp.
$WWU002_ranktext Output of advance rank system for this user
$WWU002_memberlevel Number 1-3. See rankinfo.php for more info

the following variables will become available in the 'memberinfo' template:
$WWU002_ranktext Output of advance rank system for this user
$WWU002_memberlevel Number 1-3. See rankinfo.php for more info
$WWU002_activitypercent Activity value as a percent
$WWU002_activity Raw activity (0-7700)
$WWU002_maxpoints Max value for $WWU002_activity
$WWU002_activitylevel 0-20 rating for use in an image name

As seen here, only a very small subset of the information available for the postbit is calculated for the memberinfo page.

docvader 01-10-2006 01:01 AM

OH.

I was actually supposed to read that?

LOL, thanks WW. Saw all THAT code in the hack, and just kind of "didn't look at it". I'm only a doctor man.

Great hack by the way.

rich

Logikos 01-10-2006 03:41 AM

Just released for this hack TopX Activity Modification

GamerJunk.net 01-12-2006 10:46 PM

I upgraded this last night and I'm not sure if this is causing my uploaded avatars to not show....

Lance Carbuncle 01-13-2006 12:29 AM

I have installed this on my site and can't believe the effect it has made... my posts have increased nearly 50% since I added this and a few other hacks...

I am not to skilled at this stuff, but would really like to figure out how to add the activity info to the "Welcome Block" on the vbadvanced CMPS .. would this be something that could easily be done... Can someone help me with this? I am sure there are quite a few with this CMPS that would like this... The more users see the stats in their face, the more they will increase their activity!



Here is my CMPS... the userblock is front and center.....

http://www.forums.repashy.com/cmps_index.php

I would also like to add location, total posts, and age to this block... but that is obviously unrelated to this.....

Any help would be appreciated!

Thanks in advance, Allen

Logikos 01-13-2006 01:40 AM

Add a new hook to global_start with this code:

PHP Code:

$user['activity'] = intval($vbulletin->userinfo['wwu002activity'] / $GLOBALS['WWU002maxPoints'] * 100) . '%'

Now that should make it so you can use $user[activity] in any template.


All times are GMT. The time now is 11:37 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.01559 seconds
  • Memory Usage 1,753KB
  • 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
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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