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)

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.


All times are GMT. The time now is 02:23 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.01275 seconds
  • Memory Usage 1,740KB
  • 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_code_printable
  • (2)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
  • (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