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)

Sadie Frost 02-07-2004 07:26 PM

Is this interacting with total posts on the profile for anyone else? If I comment out this hack's code in member.php, it works fine, otherwise I get like post counts of 5 for members with thousands.

g-force2k2 02-07-2004 08:19 PM

Quote:

Originally Posted by Sadie Frost
Is this interacting with total posts on the profile for anyone else? If I comment out this hack's code in member.php, it works fine, otherwise I get like post counts of 5 for members with thousands.

Not quite sure of what the problem could be but try replacing:

PHP Code:

        $userinfo['posts'] = intval $userinfo['posts'] ) ;
        
$_activeperc round ( ( ( $_activeposts $userinfo['posts'] ) * 100 ), ) . "%" 

with:

PHP Code:

        $userinfo['rposts'] = intval $userinfo['posts'] ) ;
        
$_activeperc round ( ( ( $_activeposts $userinfo['rposts'] ) * 100 ), ) . "%" 

Regards,
g-force2k2

Sadie Frost 02-08-2004 12:37 AM

Great - thanks! That fixed the problem with post count. Still having a problem with the % though. (I get like 32600% even after the upgrades.)

Just another comment - would there be a way to exclude forums? :)

g-force2k2 02-08-2004 09:17 PM

Quote:

Originally Posted by Sadie Frost
Great - thanks! That fixed the problem with post count. Still having a problem with the % though. (I get like 32600% even after the upgrades.)

Just another comment - would there be a way to exclude forums? :)

As for forum exclusions they are already built in based upon forum permissions, but not user access masks, if you wanted to add certain forums you can add to the array list, if you're not sure how I would be happy to help.

As for the high percentage that's the only bug that I am unsure of, but I will try and seek a fix, for some odd reason I never have gotten that percentage issue, but a few others addressed it and Natch tried to explain it on page four I believe.

Cheers,
g-force2k2

Natch 02-08-2004 09:55 PM

Yeah - it's only happening to my Administrators ...

Natch 02-11-2004 02:35 PM

Quote:

Originally Posted by Natch
Yeah - it's only happening to my Administrators ...

G-force2k2: PM me for a sample account access if you wanna check in my forum for an example of this bug ...

The following links show three profiles ...

This one calculates ( (most active forum posts / 2 ) *100 ) and is an ex-moderator profile.

This is my profile, and is calculating ( (most active forum posts/1) * 100 ).

A regular user profile, calculating properly ( (most active forum posts/total user posts) * 100 ).

Sadie Frost 02-14-2004 04:19 AM

Quote:

Originally Posted by g-force2k2
As for forum exclusions they are already built in based upon forum permissions, but not user access masks, if you wanted to add certain forums you can add to the array list, if you're not sure how I would be happy to help.

Thanks! I've been trying to do this but I don't really know anything lol. The problem is that we have an archive forum, so a lot of users come up with that as their most active forum lol.

Would it be something like:

Code:

WHERE t.forumid NOT IN ( " . implode ( ",", get_noaccess_forumids (  ) ) . " OR 'forumid==16' )
?

FYI - some (but not all) regular users are coming up with the weird percentages as well as admins.

g-force2k2 02-14-2004 06:51 AM

Quote:

Originally Posted by Sadie Frost
Code:

WHERE t.forumid NOT IN ( " . implode ( ",", get_noaccess_forumids (  ) ) . " OR 'forumid==16' )
?

FYI - some (but not all) regular users are coming up with the weird percentages as well as admins.

Sadie Frost

PHP Code:

WHERE t.forumid NOT IN " . implode ( ",", get_noaccess_forumids (  ) ) . " )
      AND 
t.forumid != 16 

Thanks for the links Natch I will take a look.

Cheers,
g-force2k2

Sadie Frost 02-14-2004 07:57 AM

Ah that makes more sense lol - thanks hon! :)

ChuanSE 02-28-2004 08:13 AM

Great Hack m8 :D


All times are GMT. The time now is 01:06 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.01167 seconds
  • Memory Usage 1,749KB
  • 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
  • (2)bbcode_code_printable
  • (3)bbcode_php_printable
  • (5)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