vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vb3 User Forum Activeness Hack v1.4 (https://vborg.vbsupport.ru/showthread.php?t=60100)

PET 04-15-2004 10:15 PM

well, it seems that ADMIN's and MOD's don't have the forum activeness displayed corectly. This is me on my forum :

PET is most active in the forum Generalităţi with a total of 1552 posts contributing to 25866.67% of their total posts.

buro9 04-16-2004 05:10 AM

Quote:

Originally Posted by PET
well, it seems that ADMIN's and MOD's don't have the forum activeness displayed corectly. This is me on my forum :

PET is most active in the forum Generalităţi with a total of 1552 posts contributing to 25866.67% of their total posts.

Incorrect diagnosis... it is that the user has 1,000+ posts that it miscalculates the percentage, not because of the usergroup of that user.

The solution is a few posts above this one:
https://vborg.vbsupport.ru/showpost....0&postcount=78

Natch 04-18-2004 09:28 PM

Quote:

Originally Posted by buro9
Incorrect diagnosis... it is that the user has 1,000+ posts that it miscalculates the percentage, not because of the usergroup of that user.

The solution is a few posts above this one:
https://vborg.vbsupport.ru/showpost....0&postcount=78

Well done buro9 for the fix !!! :)

vb.org site admins ? please add a link to buro's post with the fix for all as this author's (for the moment) gone awol ...

MeTaL_oRgY 05-18-2004 12:26 PM

In order to install "[vB 3.0.0] - vb3 User Forum Activeness Hack v1.4 " mod should i modify my boards with upgrade4 codes or should i first use number 1 then 2 until the 4? Would it work correctly on vb3.0.1

Thanks

subu1 06-18-2004 12:30 PM

Quote:

Originally Posted by Zelda-King
OK, new problem on RC4: Nothing shows in the table.

i have the same Problem in my vb3 Gold :rolleyes:

can you help me :squareeyed:

thx and greetz subu1

Bison 06-26-2004 02:22 AM

Love this guys work in vB2, but I won't touch this one right now!

Roody 09-01-2004 02:10 AM

I am trying to get the code needed to be added to the Member Info template. Can someone help me?

Phalynx 09-01-2004 10:33 AM

nice, one, installing!

reteep 09-01-2004 12:12 PM

I executed the installer now twice (uninstalled once) and followed every instruction carefully but the table with the hack just doesn't show up:

http://www.musiker-board.de/vb/member.php?u=3

What could be wrong?

father 09-02-2004 07:13 PM

yes, nice hack, when it works^^
I´ve same problem like stormblast, i can`t see the hack in profile...

reteep 09-07-2004 07:20 AM

Noone knows what to do? :/

Megareus Rex 09-09-2004 05:23 PM

Ok, here's my problem:

Not only does it incorrectly display the % of posts in a forum

Quote:

Lancet Jades is most active in the forum Role Playing Games with a total of 631 posts contributing to 10516.67% of their total posts.
But also, it messes up the post count of users! (Not the actual post count, just the post count shown in member.php)

Quote:

Total Posts: 6 (22.76 posts per day)
As you can see, the posts per day is still correct, but the actual number is messed up somehow. How can I fix these problems?

EDIT: Apparently, this only happens with some of my staff. Does this mean it's a usergroup thing? Or is it messing up because we have posts in private forums?

father 09-16-2004 07:14 PM

i think thats poor, no support it looks:/
we(my team members and me) are really fans of stats, but we dont lie, the hack doesnt work, why nobody can say us why?

Oblivion Knight 09-16-2004 07:37 PM

Everything seems to be working fine for me..

Thanks for a great hack :)

HarryBO 10-15-2004 10:27 PM

Hi!

I tried to install this Hack a few times, but there is one Problem! I have installed the "Users Threads in Profile" Hack, too. Now I become an error message (misc.php)

Can someone help me?

Sorry about my english (I came from Germany)

Greetz
BO

Lethal 11-02-2004 10:54 PM

yup same here

Fatal error: Cannot redeclare get_noaccess_forumids() (previously declared in /htdocs/www/forums/includes/functions_user.php:518) in /htdocs/www/forums/includes/functions_misc.php on line 18

Natch 11-04-2004 12:39 AM

try replacing your include() with include_once() and require() with require_once() ...

Psybadek 11-11-2004 01:58 PM

I have a problem with it...

The new stats work fine, but total posts have really messed up.

It only shows the first number e.g. a member with 8,345 posts shows as only 8.

Whats the problem? Thanks.

PheReFuLL 11-16-2004 06:18 PM

Code:

/* vb3 User Forum Activeness Hack -- Copyright g-force2k2 2004 */
        $show[useractiveness] = 0 ;
        if ( $userinfo[posts] ) :
                $tfarray = $DB_site->query_first ( "
                        SELECT COUNT(*) AS aposts,f.title AS aftitle,
                                t.forumid AS aforumid
                        FROM " . TABLE_PREFIX . "post p
                        LEFT JOIN " . TABLE_PREFIX . "thread t USING ( threadid )
                        LEFT JOIN " . TABLE_PREFIX . "forum f ON f.forumid = t.forumid
                        LEFT JOIN " . TABLE_PREFIX . "deletionlog AS deletionlog ON ( deletionlog.primaryid = t.threadid AND type = 'thread' )
                        WHERE t.forumid NOT IN ( " . implode ( ",", get_noaccess_forumids (  ) ) . " )
                                AND t.visible=1
                                AND deletionlog.primaryid IS NULL
                                AND p.userid = $userinfo[userid]
                        GROUP BY f.forumid ORDER BY aposts DESC LIMIT 1" ) ;
                $_activeposts = $tfarray['aposts'] ;
                $_activeurl = "<a href=\"forumdisplay.php?$session[sessionurl]f=" . $tfarray['aforumid'] . "\">" . $tfarray['aftitle'] . "</a>" ;
                $userinfo['posts'] = ( $userinfo['posts'] ) ;
                $_activeperc = round  ( ( ( $_activeposts / $userinfo['posts'] ) * 100 ), 2 ) . "%" ;
                $show[useractiveness] = 1 ;
        endif ;
/* vb3 User Forum Activeness Hack -- Copyright g-force2k2 2004 */

That should fix the problem.

Er... I realized that the percent is still screwed up if the post count is over 1,000. I only fixed the problem with the post count not displaying correctly when it reaches 1,001. <<;; I'll try and fix the percent thing later.

Lethal 11-26-2004 07:47 AM

I just put

require_once('./includes/functions_misc.php');

in member.php about the code you insert into member.php for this hack and it worked since the the code you have to put in function_user.php I already have in functions_misc.php.

Curzon564 12-11-2004 08:12 PM

I also had the % problem. It seems that this happens always if your board uses . instead of , (e.g. 1.500 posts instead of 1,500 posts).

To fix this problem do the following:

Replace the original code with this modified version of buro9's Code:

Code:

// HACK : START : USER ACTIVENESS
  $show[useractiveness] = 0 ;
  if ($userinfo[posts]) {
    $forumids = implode("', '", get_noaccess_forumids());
    $tfarray = $DB_site->query_first(
    "SELECT COUNT(*) AS aposts," . TABLE_PREFIX . "forum.title AS aftitle, " . TABLE_PREFIX . "thread.forumid AS aforumid
      FROM " . TABLE_PREFIX . "thread
      LEFT JOIN " . TABLE_PREFIX . "post ON " . TABLE_PREFIX . "post.threadid = " . TABLE_PREFIX . "thread.threadid
      LEFT JOIN " . TABLE_PREFIX . "forum ON " . TABLE_PREFIX . "forum.forumid = " . TABLE_PREFIX . "thread.forumid
      LEFT JOIN " . TABLE_PREFIX . "deletionlog ON ( " . TABLE_PREFIX . "deletionlog.primaryid = " . TABLE_PREFIX . "thread.threadid AND type = 'thread' )
      WHERE " . TABLE_PREFIX . "forum.forumid NOT IN ( '$forumids' )
        AND " . TABLE_PREFIX . "thread.visible=1
        AND " . TABLE_PREFIX . "deletionlog.primaryid IS NULL
        AND " . TABLE_PREFIX . "post.userid = $userinfo[userid]
      GROUP BY " . TABLE_PREFIX . "forum.forumid ORDER BY 1 DESC LIMIT 1");
    $_activeposts = $tfarray['aposts'];
    $_activeurl = "<a href=\"forumdisplay.php?$session[sessionurl]f=".$tfarray['aforumid']."\">".$tfarray['aftitle']."</a>";
    $_activeperc = round(((implode('',explode('.',$_activeposts)) / implode('',explode('.',$userinfo['posts'])) ) * 100), 2)."%" ;
    $show[useractiveness] = 1 ;
  }
// HACK : END : USER ACTIVENESS

The only thing replaced in this modified version are 2 . instead of , in the $_activeperc line.

As this isn't my code, credits belong to buro9 for his work.

@buro9
I hope you don't mind me modifying your code.

Zachariah 01-04-2005 11:31 PM

@buro9 - post 78 -

Great fix. But, last post changed to never vs. were the member posted (all users)


Quote:

PostsTotal Posts: 1,881 (1.43 posts per day)
Last Post:

Never

Find all posts by Zack
Find all threads started by Zack

Forum Activeness Statistics
Zack is most active in the forum General with a total of 813 posts contributing to 43.22% of their total posts.

Zachariah 01-05-2005 01:53 PM

I killed:

Code:

// reputation
fetch_reputation_image($userinfo);

From: buro9 - post 78 -

doing this got back Last Post
:rambo:

themovieinsider 01-07-2005 04:56 PM

works great

Impulse 01-11-2005 01:27 PM

Hmm, I've installed this hack and run into a problem. The hack works perfectly fine on IE, I think... but I myself use firefox and don't see the changes made by the hack.

I've deleted my cookies and such, but still nothing...

help?

MajorFm.com 01-15-2005 12:51 PM

Hack worked perfectly, i had to do the percentage fix aswell... might be a idea to change the original zip...

Thanks...!

MajorFm.com 01-15-2005 12:58 PM

Is there a problem somewhere, i have just noticed...

http://img138.exs.cx/img138/6041/activehack4ht.jpg

According to that, i got 4.1%

But explain this...

The total posts in the forum is 6608 and the total i have posted there according to your hack is 410

6608 Divide 410 = 16.12

Shouldn't it be 16.1%

Please advise...

MajorFm.com 01-15-2005 01:48 PM

Oh my bad, i get it, doh...

The percentage is not the contribution to the forum, its the percentage of the users total posts... am i right?

MajorFm.com 01-15-2005 01:57 PM

Im confused again... the percentages just don't seem right!

PostsTotal Posts: 856 (8.29 posts per day)
Find all posts by Martina
Find all threads started by Martina
Forum Activeness StatisticsMartina is most active in the forum You what... with a total of 543 posts contributing to 0.01% of their total posts.

MajorFm.com 01-29-2005 03:35 PM

I still get a unreal percentage...

ElecTriK ShocKs is most active in the forum You what... with a total of 784 posts contributing to 78400% of their total posts.

iceytdot 05-10-2005 07:07 AM

worked fine for me after applying the 2 updates, good job g force! *clicks install*

Allan 05-13-2005 10:54 AM

don't work with 3.0.7

MrMister 09-27-2005 07:09 PM

Crap, no wonder.

zylstra 10-17-2005 03:59 PM

Which versions does it work with? My board says version 3.0.3, but I installed it and didn't see the extra stats.

MThornback 10-19-2005 02:08 PM

Quote:

Originally Posted by Allan
don't work with 3.0.7


I run 3.0.7 and with Buro's fix it works fine now :)

Alphawolf83 11-03-2005 04:55 PM

*Clicks Install*

Thanks for this nice hack... :-)

poseidon88 03-10-2006 01:00 PM

Does it work in 3.5.4?

iblis 05-16-2006 02:50 AM

I got just about every error everyone here has described, but after i sat down and analyzed the code i found a few errors which i corrected.
The problem seems to be that deleted posts have not been substracted - just deleted threads!

Try this on for size, it works fine on my board
PHP Code:

// HACK : START : USER ACTIVENESS
  
$show[useractiveness] = ;
  if (
$userinfo[posts]) {
    
$forumids implode("', '"get_noaccess_forumids());
    
$tfarray $DB_site->query_first(
     
"SELECT COUNT(*) AS aposts," TABLE_PREFIX "forum.title AS aftitle, " TABLE_PREFIX "thread.forumid AS aforumid
      FROM " 
TABLE_PREFIX "thread
      LEFT JOIN " 
TABLE_PREFIX "post ON " TABLE_PREFIX "post.threadid = " TABLE_PREFIX "thread.threadid
      LEFT JOIN " 
TABLE_PREFIX "forum ON " TABLE_PREFIX "forum.forumid = " TABLE_PREFIX "thread.forumid
      LEFT JOIN " 
TABLE_PREFIX "deletionlog AS delpost ON(delpost.primaryid = post.postid AND delpost.type = 'post')                  
      LEFT JOIN " 
TABLE_PREFIX "deletionlog AS delthread ON(delthread.primaryid = thread.threadid AND delthread.type = 'thread')                  
      WHERE " 
TABLE_PREFIX "forum.forumid NOT IN ( '$forumids' ) 
        AND " 
TABLE_PREFIX "thread.visible=1 
        AND delpost.primaryid IS NULL                        
        AND delthread.primaryid IS NULL                        
        AND " 
TABLE_PREFIX "post.userid = $userinfo[userid]
      GROUP BY " 
TABLE_PREFIX "forum.forumid ORDER BY 1 DESC LIMIT 1");
    
$_activeposts $tfarray['aposts'];
    
$_activeurl "<a href=\"forumdisplay.php?$session[sessionurl]f=".$tfarray['aforumid']."\">".$tfarray['aftitle']."</a>";
    
$_activeperc round(((implode('',explode('.',$_activeposts)) / implode('',explode('.',$userinfo['posts'])) ) * 100), 2)."%" ;
    
$show[useractiveness] = 
  }
// HACK : END : USER ACTIVENESS 

Also, for those of you who experience that the hack installs but only show a blank box in the memberinfo: Go to the admincp and edit (and save) the phrase you created on install. That should fix the problem.

Alphawolf83 05-07-2007 05:23 PM

Anyone a link for an 3.6.5 version of this neat plugin? :)

Anyone?


All times are GMT. The time now is 09:53 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.01664 seconds
  • Memory Usage 1,849KB
  • 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
  • (1)bbcode_php_printable
  • (7)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
  • (39)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