форум vBSupport.ru > vBulletin > vBulletin 4.2.x > Хаки, моды и скрипты 4.2.x
  • »
VBsupport перешел с домена .ORG на родной .RU Ура! Пожалуйста, обновите свои закладки - VBsupport.ru
 
 
 
 
M.C.
Продвинутый
Default VSa - Top Posters of the Month/Year
1

Всем привет! Помогите поправить хак чтобы он считал не количество сообщений а количество тем?

Я так полагаю надо править вот тут запрос к базе?

PHP Code:
SELECT COUNT(post.dateline) AS vsapcountpost.useridpost.visiblepost.datelinethread.forumiduser.usergroupidthread.forumid
                FROM 
" . TABLE_PREFIX . "post AS post
                LEFT JOIN 
" . TABLE_PREFIX . "user AS user ON (post.userid user.userid)
                
LEFT JOIN " . TABLE_PREFIX . "thread AS thread ON (post.threadid thread.threadid)
                
WHERE user.username != '' AND post.visible '1' AND post.userid AND post.dateline $fromtime AND post.dateline $totime $vsattsomy_exclgroups $vsattsomy_exclusers $vsattsomy_exclforums
                GROUP BY userid 
и тут
PHP Code:
SELECT COUNT(post.dateline) AS vsapcountpost.useriduser.usernameuser.usergroupidpost.visibleuser.postsuser.joindatethread.forumid
                FROM 
" . TABLE_PREFIX . "post AS post
                LEFT JOIN 
" . TABLE_PREFIX . "user AS user ON (post.userid user.userid)
                
LEFT JOIN " . TABLE_PREFIX . "thread AS thread ON (post.threadid thread.threadid)
                
WHERE user.username != '' AND post.visible '1' AND post.userid AND post.dateline $fromtime AND post.dateline $totime $vsattsomy_exclgroups $vsattsomy_exclusers $vsattsomy_exclforums 
                GROUP BY userid
                ORDER BY vsapcount DESC
                LIMIT 
" . ($limitlower - 1) . "$perpage 
вот только знаний не хватает вписать сюда правильные строки. Я приложил оригинальный хак (VSa_TPIMX) и тот что я переделал, пожалуйста проверьте кто может?
Attached Files
File Type: xml VSa_TPIMX.xml (16.7 KB, 3 views)
File Type: xml VSa_TTSIMX.xml (17.2 KB, 2 views)

Last edited by M.C. : 05-13-2013 at 02:12 PM.
Bot
Yandex Bot Yandex Bot is online now
 
Join Date: 05.05.2005
Реклама на форуме А что у нас тут интересного? =)
 


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




All times are GMT +4. The time now is 06:47 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Loading...