vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Top 'X' Stats (https://vborg.vbsupport.ru/showthread.php?t=93065)

xhybrid 10-24-2005 06:56 PM

hi,

your Extensions works fine @ www.r32-club.de

thank you :) :up:

Crow 10-24-2005 08:52 PM

I know this is a long shot but anyway to get this to show the newest photos from photopost (text Link)??? :nervous:

InfiniteWebby 10-25-2005 07:49 AM

Quote:

Originally Posted by blue6995
Is there anyway of preventing the Top Posters Block from being displayed?

Thanks

There is no easy way at the moment. I just got a new PC so am in the middle of sorting some stuff out, I might be back later with a solution.

Quote:

Originally Posted by Crow
I know this is a long shot but anyway to get this to show the newest photos from photopost (text Link)??? :nervous:

I am not familiar with photopost so wouldn't even know where to start.

GuaRRand 10-25-2005 09:25 AM

works great!!

Maybe an idea for next version (if its not mentioned before)
Show the avatar of the #1 poster on the list?

redlabour 10-25-2005 10:30 AM

Hi,

how can i use TopXStats in iFrames in a xternal Portal PHP or HTML Block for vBa, vBP or MKPortal ?

plateau 10-26-2005 09:59 AM

stillllllllllllllll waiting for more columns coming out..................

come on mate. ... ... ^_^

divided_by_fear 10-29-2005 05:11 AM

is there any way you could get this working for vBadvanced CMPS v2.0.0 and if so thank you very much...

caliman 11-02-2005 01:31 PM

It would be nice if this did not show redirects if you move a thread.

Also if I remove top posters, what code do I have to remove so that it runs faster (doesn't query the db about top posters).

thanks! cool mod.

outlaw621 11-05-2005 05:01 PM

Quote:

Originally Posted by jluerken
I found out how I can exclude users from the TOP Poster list.

In topXstats.php find:
PHP Code:

$getstats_posters $db->query_read("SELECT userid, usergroupid, IF(displaygroupid=0, usergroupid, displaygroupid) AS displaygroupid, username, posts FROM " TABLE_PREFIX "user ORDER BY posts DESC LIMIT 0, $displayrecords"); 

and change to
PHP Code:

$getstats_posters $db->query_read("SELECT userid, usergroupid, IF(displaygroupid=0, usergroupid, displaygroupid) AS displaygroupid, username, posts FROM " TABLE_PREFIX "user WHERE userid NOT IN (1282,1) ORDER BY posts DESC LIMIT 0, $displayrecords"); 

I added a WHERE userid NOT IN (1282,1) which is an array of userid's.

In this example I excluded userid 1282 which is my RSS Bot and userid 1 which is the main Admin account.

In product-topXstats.xml find:
PHP Code:

$getstats_posters $db->query_read("SELECT userid, usergroupid, IF(displaygroupid=0, usergroupid, displaygroupid) AS displaygroupid, username, posts FROM " TABLE_PREFIX "user ORDER BY posts DESC LIMIT 0, $displayrecords"); 

and change to:
PHP Code:

$getstats_posters $db->query_read("SELECT userid, usergroupid, IF(displaygroupid=0, usergroupid, displaygroupid) AS displaygroupid, username, posts FROM " TABLE_PREFIX "user WHERE userid NOT IN (1282,1) ORDER BY posts DESC LIMIT 0, $displayrecords"); 

Reupload the topXstats.php and
then go to your ADMINCP - PLUGIN SYSTEM - MANAGE PRODUCTS - ADD/IMPORT PRODUCT and upload the change .xml file.
Make sure that "Allow Overwrite" is set to YES

Thats it!

I did not find out how to exclude a whole group like the banned group.

@InfiniteWebby:
Could you please release a version 1.3 where we can also exclude single userids and whole groups?

Did you try changing userid to usergroupid? I have not tested this yet. It is just a thought.

In topXstats.php find:
PHP Code:

$getstats_posters $db->query_read("SELECT userid, usergroupid, IF(displaygroupid=0, usergroupid, displaygroupid) AS displaygroupid, username, posts FROM " TABLE_PREFIX "user ORDER BY posts DESC LIMIT 0, $displayrecords"); 

and change to

PHP Code:

$getstats_posters $db->query_read("SELECT userid, usergroupid, IF(displaygroupid=0, usergroupid, displaygroupid) AS displaygroupid, username, posts FROM " TABLE_PREFIX "user WHERE usergroupid NOT IN (8) ORDER BY posts DESC LIMIT 0, $displayrecords"); 


In product-topXstats.xml find:
PHP Code:

$getstats_posters $db->query_read("SELECT userid, usergroupid, IF(displaygroupid=0, usergroupid, displaygroupid) AS displaygroupid, username, posts FROM " TABLE_PREFIX "user ORDER BY posts DESC LIMIT 0, $displayrecords"); 

and change to:
PHP Code:

$getstats_posters $db->query_read("SELECT userid, usergroupid, IF(displaygroupid=0, usergroupid, displaygroupid) AS displaygroupid, username, posts FROM " TABLE_PREFIX "user WHERE usergroupid NOT IN (8) ORDER BY posts DESC LIMIT 0, $displayrecords"); 

The above code MAY let you exclude by group instead of user. In the above examples, it should exclude group 8 which is the default banned users group.

caliman 11-06-2005 01:40 PM

Thank you outlaw I will try that.
Do you know anything about the 'moved thread' bug? It shows the redirect and the thread.


All times are GMT. The time now is 09:14 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.01302 seconds
  • Memory Usage 1,763KB
  • 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
  • (8)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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