Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Top 'X' Stats Details »»
Top 'X' Stats
Version: 1.2.2, by InfiniteWebby InfiniteWebby is offline
Developer Last Online: Aug 2007 Show Printable Version Email this Page

Version: 3.5.0 RC1 Rating:
Released: 07-27-2005 Last Update: 09-03-2006 Installs: 538
Uses Plugins Template Edits
Additional Files  
No support by the author.

[high]Security Fix: The uploaded version fixes all issues concerned with the recent security vulnerabilities. Sorry I haven't been around I don't really do anything plugin wise anymore.[/high]

Oh this version also works with all current version of vB 3.6. So feel free to use it on that version.

- InfiniteWebby

The low down

Well this is the vB 3.5.0 version of my hack. It is much the same as the original except that for some added stuff that I never released

Basically what it does is show the Top 'X' (edited via the vBulletin options in the admincp) newest members, top posters and newest replies on the Forumhome.

So what's new in this version?

Well for one all settings, which include amount of stats to show on forumhome and the extended page, thread title and username truncation, excluded forums and 'new' and 'old' thread prefixes.

Secondly there is now an extra page where you are able to choose exactly how many stats to show.

And lastly and most importantly it only takes 3 simple steps to install =)

What's on the horizon?

- More "stat blocks" including top reputation and top thread based on views or replies. If you have a suggestion please let me know, prefferably via pm.
- Proper can view other users threads permissions. At the moment I cannot think of how to block other people threads while still showing your own without totally re-writing the hack =(.

Version 1.2.1 is a re-release with who's online additions as well as some template changes. So you are best to reinstall the whole thing all over again.

So anyway enjoy and click install.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #82  
Old 08-31-2005, 10:57 PM
volcan volcan is offline
 
Join Date: May 2005
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi
I cant find the Manage "Products link in the nav bar"
How do i get it please?\Thank you.
Reply With Quote
  #83  
Old 08-31-2005, 11:17 PM
Valter Valter is offline
 
Join Date: Aug 2005
Location: Sarajevo
Posts: 2,432
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by volcan
Hi
I cant find the Manage "Products link in the nav bar"
How do i get it please?\Thank you.
In Admin CP - left frame - at the bottom. Be sure menus are extended.
Reply With Quote
  #84  
Old 09-01-2005, 07:51 PM
wcbryant wcbryant is offline
 
Join Date: Dec 2003
Location: Florida
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi all,

I'd like to install Amykhar's Hideaways extention, this allows certain usergroups to essentially spawn their own private forums.

What this creates for me is a situation where those will appear (for those users) in the TopXStats area, and I'd like to avoid that.

Does anyone know how I might turn the 'excludes' field into an 'includes' instead. There are only a few forums I want showing up on that list, and would much prefer to approach it from that angle.
Reply With Quote
  #85  
Old 09-01-2005, 10:21 PM
InfiniteWebby InfiniteWebby is offline
 
Join Date: Nov 2001
Location: Downunda.
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by wcbryant
Hi all,

I'd like to install Amykhar's Hideaways extention, this allows certain usergroups to essentially spawn their own private forums.

What this creates for me is a situation where those will appear (for those users) in the TopXStats area, and I'd like to avoid that.

Does anyone know how I might turn the 'excludes' field into an 'includes' instead. There are only a few forums I want showing up on that list, and would much prefer to approach it from that angle.
In the plugin code:

Replace:

PHP Code:
if ($vbulletin->options['topXstats_excludedforums'] !== '') { 
    
$excludedforums ',' $vbulletin->options['topXstats_excludedforums']; 


$forumpermissions = array(); 
foreach(
$vbulletin->forumcache AS $forum) { 

    
$forumpermissions[$forum["forumid"]] = fetch_permissions($forum['forumid']); 

    
// ## HIDE FORUMS WITHOUT THE CANVIEW, CANVIEWOTHERS OR CANSEEDELNOTICE PERMISSION ## 
    
if (!($forumpermissions[$forum["forumid"]] & $vbulletin->bf_ugp_forumpermissions['canview']) AND !$vbulletin->options['showprivateforums'])  { 
        
$excludedforums $excludedforums ',' $forum['forumid']; 
    } 
    
// filter out deletion notices if can't be seen 
    
if ($forumpermissions[$forum["forumid"]] & $vbulletin->bf_ugp_forumpermissions['canseedelnotice'] OR can_moderate($forum['forumid'])){ 
        
$deljoin "LEFT JOIN " TABLE_PREFIX "deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND type = 'thread')"
    } else { 
        
$deljoin ''
    } 



unset(
$forum); 

// get rid of initial comma 
$excludedforums substr($excludedforums1); 

if (
$excludedforums != "") { 
    
$excludedforums "AND thread.forumid NOT IN ($excludedforums)"

With:

PHP Code:
if ($vbulletin->options['topXstats_excludedforums'] !== '') {
    
$includedforums ',' $vbulletin->options['topXstats_excludedforums'];
}

$forumpermissions = array();
foreach(
$vbulletin->forumcache AS $forum) {

    
$forumpermissions[$forum["forumid"]] = fetch_permissions($forum['forumid']);

    
// ## HIDE FORUMS WITHOUT THE CANVIEW, CANVIEWOTHERS OR CANSEEDELNOTICE PERMISSION ##
    
if (!($forumpermissions[$forum["forumid"]] & $vbulletin->bf_ugp_forumpermissions['canview']) AND !$vbulletin->options['showprivateforums'])  {
        
$excludedforums ',' $forum['forumid'];
    }
    
// filter out deletion notices if can't be seen
    
if ($forumpermissions[$forum["forumid"]] & $vbulletin->bf_ugp_forumpermissions['canseedelnotice'] OR can_moderate($forum['forumid'])){
        
$deljoin "LEFT JOIN " TABLE_PREFIX "deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND type = 'thread')";
    } else {
        
$deljoin '';
    }
}


unset(
$forum);

// get rid of initial comma
$excludedforums substr($excludedforums1);
$includedforums substr($includedforums1);

if (
$excludedforums != "") {
    
$excludedforums "AND thread.forumid IN ($includedforums) AND thread.forumid NOT IN ($excludedforums)";

This is untested so I am not sure if it will work properly. You also still need to use the setting "excluded forums" to set which forums you want to show. Cause messing with settings is alot harder than a simple code edit.
Reply With Quote
  #86  
Old 09-02-2005, 09:25 AM
wcbryant wcbryant is offline
 
Join Date: Dec 2003
Location: Florida
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks IW, that's a huge help. Will try it out first thing tomorrow. Appreciate the 'above and beyond' on top of making an already outstanding plug-in.
Reply With Quote
  #87  
Old 09-02-2005, 05:00 PM
Pain86 Pain86 is offline
 
Join Date: Mar 2005
Posts: 87
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

how do i stop private forums showin.. i dont want threads from the admin forum or mod forums showin as latest threads.

how do i stop this?

thanks.
Reply With Quote
  #88  
Old 09-02-2005, 09:49 PM
wcbryant wcbryant is offline
 
Join Date: Dec 2003
Location: Florida
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works perfectly Infinite, thank you for the help.
Reply With Quote
  #89  
Old 09-02-2005, 11:30 PM
InfiniteWebby InfiniteWebby is offline
 
Join Date: Nov 2001
Location: Downunda.
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Pain86
how do i stop private forums showin.. i dont want threads from the admin forum or mod forums showin as latest threads.

how do i stop this?

thanks.
It should do this automatically based on forum permissions. Just because you can see the thread in the stats doesn't mean your members and guests can.
Reply With Quote
  #90  
Old 09-03-2005, 07:48 PM
peterska2 peterska2 is offline
 
Join Date: Oct 2003
Location: Manchester, UK
Posts: 6,504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice one. thanks
Reply With Quote
  #91  
Old 09-04-2005, 02:40 AM
wcbryant wcbryant is offline
 
Join Date: Dec 2003
Location: Florida
Posts: 90
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by wcbryant
Works perfectly Infinite, thank you for the help.
Actually, it's showing posts from forums that are not listed in excluded, but only a few. Bizarre behavior. Been looking at it, I'm no coder, but you'd think it's more a logic puzzle than anything else. In the unlikely event I can figure out why it's doing what it is, I'll post something here.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:27 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04605 seconds
  • Memory Usage 2,337KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete