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)

Kuimera 12-24-2005 09:21 PM

Btw, sense I install this hack, I dont know why but the regular User Titles for the members disapear, the strange is that the mods and admins group shows up but not the regular members... Any ideas?

Must be some code in the postbit or something...

Logikos 12-25-2005 01:21 PM

Quote:

Originally Posted by Kuimera
Btw, sense I install this hack, I dont know why but the regular User Titles for the members disapear, the strange is that the mods and admins group shows up but not the regular members... Any ideas?

Must be some code in the postbit or something...

During install procedure he has you take it out since WW added his own usertitle based system. Just add the $post['usertitle'] where you want it :)

Hellraider 12-25-2005 05:54 PM

One of our german users reports a "problem" with calculation of activity in his vB.

It seems to him (and of course also all his users), as if activity is set to 0 at 1 a.m. and not at 00:00.

Could you confirm, that this is no problem with the hack itself?

I think this is no problem with the hack, but a problem with the server/webspace/vB time.

Vierie 12-26-2005 08:40 AM

Is there some way to not count posts in certain forums for the calculation of activity?

Kuimera 12-26-2005 03:24 PM

Quote:

Originally Posted by Live Wire
During install procedure he has you take it out since WW added his own usertitle based system. Just add the $post['usertitle'] where you want it :)

I?m so sorry... I forgot to add that it?s the User title images... The text apears good.

Logikos 12-27-2005 01:31 AM

Quote:

Originally Posted by Vierie
Is there some way to not count posts in certain forums for the calculation of activity?

Calculation of activity only works in forums where post counts are counted for.

cdoyle 12-28-2005 09:39 PM

Does version 2.51 of this hack work with VB 3.5?

Or should I use my copy of 2.50?

djjeffa 12-28-2005 11:00 PM

Quote:

Originally Posted by WetWired

I did do a top ten activity script for vB3 to go with vBStat; when I get some time, I will look into converting this and making it work stand allone. If there is a coder interesting in doing this (now as opposed to waiting for me to find the time), they should PM me and I'll give them the existing script to modify.

cool I think it would be a cool addition


ps its not slowing my site down any lol

Logikos 12-29-2005 10:32 PM

Quote:

Originally Posted by WetWired
I did do a top ten activity script for vB3 to go with vBStat; when I get some time, I will look into converting this and making it work stand allone. If there is a coder interesting in doing this (now as opposed to waiting for me to find the time), they should PM me and I'll give them the existing script to modify.

I wouldn't mind converting. I'll shoot you a PM. :)

cdoyle 12-30-2005 03:45 AM

Just installed this on my 3.5 board, had a couple questions.

See the attached image

My first question is about the longevity, the screenshot is from my forum and my userid, I created the forum, so shouldn't my longevity be all the way maxed out? Instead I only have 1 green speck on the graph?

My next question is on the popup that appears when you move your mouse over that field.

See where it says User has been a member for '33f' board existance.

What does that 33f mean? How do I fix it? I'm guessing that is what's causing the graph to not appear right.

Logikos 12-30-2005 04:39 AM

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

cdoyle 12-30-2005 02:07 PM

Quote:

Originally Posted by Live Wire
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

Thanks, that fixed it. Didn't see that up top when I posted this.

I still have the question about the odd popups that appear when you move your mouse over the icons.

I also noticed it does it with the activity today too. Are they suppose to say things like 034f? Or did I do something wrong?

Logikos 12-30-2005 02:11 PM

You must have edit the templates wrong, try reediting your templates once more. A good way to test if its you or not is install this hack on a fresh install (Test Board) and then see if it still does that. If it does, then its a bug, if not then its you. :p

Kuimera 12-30-2005 05:03 PM

bump *

cdoyle 12-30-2005 05:47 PM

I'm glad you mentioned the test board, I originally installed this on there along time ago. just went back and checked, and it's doing the same thing there. If you move the mouse over the icons, you get the strange 343f type thing.

cdoyle 12-30-2005 06:52 PM

Quote:

Originally Posted by dastar
Any reason why the today meter only displays bars for that particular user when they are logged in and only for their postbit? For instance, when a user is logged in, they can see their today meter bars but no one else's (and you it's nothing but white for everyone who isn't logged in).

This is what mine is doing too, were you able to fix this on yours?

WetWired 01-01-2006 07:14 AM

To the guys with garbage instead of data in the tooltips
This is an issue with the phrases and vb 3.5.1. Before this version, %% is required in order to show a percent mark, and after, a single % is required. If you are having this issue, you must either update to the latest vB version, or go through the activity plugin templates (they all start with wwu002) and change the single %s to %%s.

cdoyle 01-02-2006 06:38 PM

Quote:

Originally Posted by WetWired
To the guys with garbage instead of data in the tooltips
This is an issue with the phrases and vb 3.5.2. Before this version, %% is required in order to show a percent mark, and after, a single % is required. If you are having this issue, you must either update to the latest vB version, or go through the activity plugin templates (they all start with wwu002) and change the single %s to %%s.

I'm unable to upgrade my VB at this time, so I'm going to try and update these templates, but I'm not really sure how to do this?

Are you saying that I need to go in and update the templates for this hack? So I go to the plugin manager and edit all the activity entries? I'm looking at these, and don't see any %'s to change?

Could you give me an example of one, and where to change it?

Nikke 01-02-2006 10:11 PM

Quote:

Originally Posted by WetWired

I did do a top ten activity script for vB3 to go with vBStat; when I get some time, I will look into converting this and making it work stand allone. If there is a coder interesting in doing this (now as opposed to waiting for me to find the time), they should PM me and I'll give them the existing script to modify.

PLEASE do this!

WetWired 01-03-2006 05:07 AM

Quote:

Originally Posted by cdoyle
I'm unable to upgrade my VB at this time, so I'm going to try and update these templates, but I'm not really sure how to do this?

Are you saying that I need to go in and update the templates for this hack? So I go to the plugin manager and edit all the activity entries? I'm looking at these, and don't see any %'s to change?

Could you give me an example of one, and where to change it?

No, the changes need to be made in the Phrase Manager. Follow the instructions in https://vborg.vbsupport.ru/showpost.php?p=815205 , except that you're replacing % with %% instead of the other way arround.

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.

WetWired 01-13-2006 02:21 PM

Quote:

Originally Posted by Live Wire
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.

Almost. Your code doesn't take into account the first visit of the day, where the data in userinfo may not be up to date yet. This code should handle that situation:
Code:

if(isset($WWU002activityPoints)){
  $user['activity']=intval($WWU002activityPoints/$WWU002maxPoints*100).'%'; 
}else if($vbulletin->userinfo['userid']){
  $user['activity']=intval($vbulletin->userinfo['wwu002activity']/$WWU002maxPoints*100).'%'; 
}else{//(isset($WWU002activityPoints))
  $user['activity']='N/A';
}//endif(isset($WWU002activityPoints))


Lance Carbuncle 01-27-2006 12:27 AM

Well, I got the activity to show up on my Welcome block thanks to everyone's help here....

Would it be possible to integrate this with usergroup promotions? I am trying to find a way to only allow active users the ability to post in the free classifieds (photopost classifieds) which is integrated with vbulletin usergroups...

For example.... only people who maintain a 20% activity level would be included in a custom usergroup, and if their activity falls below this, they drop out of the usergroup until their activity increases to the set level again....... I now require XX amounts of posts to be able to use the classifieds, but find people just post junk until they reach this level and then stop contributing... This feature would take care of that problem....

I know this might be asking a lot....but i am willing to hire someone to do this if it is possible within reason.... Anyone? I think this would be an awesome feature that coule be used in many ways. I also would not have to keep it to myself if someone wants to code it and share it on my dime.

Thanks, Lance

WetWired 01-27-2006 03:51 AM

At one point, I had started work on such a system, but I accidentally wiped it out. The biggest issue is with demotions. A user's activity only gets updated when they visit or when their posts or profile is viewed. This means that it's possible to come back after a month of inactivity and have the old usergroup untill the next time promotions are run. It is, of course, possible to just do activity for everyone at once, however the process would be very server intensive, which is why I do it the way it is now.

Glad to hear that you got it sorted out on your own; sorry I hadn't gotten the chance to look into it for you yet.

luroca 01-27-2006 11:47 AM

Quote:

Originally Posted by WetWired
A user's activity only gets updated when they visit or when their posts or profile is viewed. This means that it's possible to come back after a month of inactivity and have the old usergroup untill the next time promotions are run. It is, of course, possible to just do activity for everyone at once, however the process would be very server intensive

Perhaps with a diary cron this issue can be solved?
If promotion/demotion can be added to this hack I?ll install it.

In any case, excellent hack :)

Lance Carbuncle 01-27-2006 02:46 PM

Quote:

Originally Posted by WetWired
A user's activity only gets updated when they visit or when their posts or profile is viewed. This means that it's possible to come back after a month of inactivity and have the old usergroup untill the next time promotions are run. It is, of course, possible to just do activity for everyone at once, however the process would be very server intensive, which is why I do it the way it is now.

Thanks for the feedback WetWired... I am having a little trouble understanding what you are saying here, so maybe you can comment one more time........When are the promotions run now? Is this part of your script, or a vbulletin action.... Would it be possible to run a promotion check for a single user upon there visit, or is the problem that vbulletin would have to run all promotions to check one? (I am speaking al a layperson here and have no idea of coding or how things work, just a mechanic's view of the computer world LOL) Could vbulletin be set to run promotions once every evening for all users at a user set time (low visit period) if it uses a lot of resources?


OOps.... reading it again, I guess it would be the activity you would want to run a scheduled update for? and then promotions?

Thanks Again, Lance

nexus851 01-31-2006 07:30 AM

in my post_legacy graphic... under longevity, it says this:

"User has been a member for 76114f the board's existence....etc.."

Why does it say "76114f"???? shouldnt that be a variable of some kind, i followed the instructions, but it still says it... sometimes it says another large number, but basically it seems like i left a variable out or something, any ideas????

NEVERMIND, fixed! thanks!

nexus851 01-31-2006 08:12 AM

Quote:

Originally Posted by WetWired
Almost. Your code doesn't take into account the first visit of the day, where the data in userinfo may not be up to date yet. This code should handle that situation:
Code:

if(isset($WWU002activityPoints)){
  $user['activity']=intval($WWU002activityPoints/$WWU002maxPoints*100).'%'; 
}else if($vbulletin->userinfo['userid']){
  $user['activity']=intval($vbulletin->userinfo['wwu002activity']/$WWU002maxPoints*100).'%'; 
}else{//(isset($WWU002activityPoints))
  $user['activity']='N/A';
}//endif(isset($WWU002activityPoints))


i tried using the code above to add to my welcome block, but it doesnt seem to work. It gives me a "0%"....

I set the code as a plugin in global_start hook and used the variable "$user[activity]" in my template but just only gives me 0%


anyone know why it doesnt work?

username12 01-31-2006 10:03 PM

Answered my own question.

mrcrx 02-01-2006 12:00 PM

I installed the file as it said. It shows up as active and it shows up in the admin control panel also. but I dont see anything on the forum. Any help. Im very new at this.

nexus851 02-03-2006 12:54 AM

Quote:

Originally Posted by WetWired
Almost. Your code doesn't take into account the first visit of the day, where the data in userinfo may not be up to date yet. This code should handle that situation:
Code:

if(isset($WWU002activityPoints)){
  $user['activity']=intval($WWU002activityPoints/$WWU002maxPoints*100).'%'; 
}else if($vbulletin->userinfo['userid']){
  $user['activity']=intval($vbulletin->userinfo['wwu002activity']/$WWU002maxPoints*100).'%'; 
}else{//(isset($WWU002activityPoints))
  $user['activity']='N/A';
}//endif(isset($WWU002activityPoints))



help, this doesnt work when i use $user[activity] in my template.. it just spits out "0"...... i did everything requested above.. anyone help please!


All times are GMT. The time now is 02:33 PM.

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.01516 seconds
  • Memory Usage 1,870KB
  • 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
  • (3)bbcode_code_printable
  • (2)bbcode_php_printable
  • (17)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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