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)

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 12:45 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.01113 seconds
  • Memory Usage 1,750KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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