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)

InfiniteWebby 07-27-2005 10:00 PM

Top 'X' Stats
 
[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.

Azhrialilu 07-28-2005 11:32 AM

Just what I was waiting for, thanks!!! :D

Chris M 07-28-2005 12:44 PM

Permissions are pretty easy and I must say vital to the functionality of this hack :)

It's nice - Similar to my Latest threads hack but obviously with a few more sets of stats :)

I'm interested to know how many extra queries this adds, and whether any cached data could be used to prevent queries being used etc...

Satan

Barakat 07-28-2005 01:09 PM

its gives Invalid Argument suplied for foreach() in n function.php at line 771 while trying to upload the plugin file ???

Anfiniti.net 07-28-2005 02:43 PM

Sweeet.../me clicks install

mrgizmo 07-28-2005 03:04 PM

The XML file when uploaded doesn't have any code or a title name, there for it doesn't show up, just a blank plugin.

plateau 07-28-2005 03:42 PM

hi mate, u r great, it is what i was just waiting for!

prawn 07-28-2005 04:24 PM

Quote:

Originally Posted by mrgizmo
The XML file when uploaded doesn't have any code or a title name, there for it doesn't show up, just a blank plugin.

Same for me.

Barakat 07-28-2005 10:13 PM

Quote:

Originally Posted by mrgizmo
The XML file when uploaded doesn't have any code or a title name, there for it doesn't show up, just a blank plugin.

its true but before that it gives u an error which is invalid .......... online line 771

Neal-UK 07-28-2005 10:52 PM

Quote:

Originally Posted by Barakat
its true but before that it gives u an error which is invalid .......... online line 771

blank for me to and the error also

Neal-UK 07-28-2005 10:54 PM

Quote:

Originally Posted by nealparry
blank for me to and the error also

sorry, install it under products....mind you, i then got a db error and couldn't viw the forum and had to remove it.

My forum has db prefix FORUM so will that be a problem?

Zorck 07-28-2005 11:27 PM

Hello, I get this error :

Database error in vBulletin 3.5.0 Release Candidate 1:

Invalid SQL:

SELECT thread.threadid, thread.title, thread.lastpost, thread.forumid, thread.replycount, thread.lastposter, thread.dateline, IF(views<=replycount, replycount+1, views) AS views, thread.visible, user.username, user.userid
, NOT ISNULL(deletionlog.primaryid) AS isdeleted, deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason
FROM thread AS thread
LEFT JOIN user AS user ON (user.username = thread.lastposter)
LEFT JOIN deletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND type = 'thread')
WHERE thread.forumid NOT IN ()
AND deletionlog.primaryid IS NULL
ORDER BY thread.lastpost DESC LIMIT 0, 5;

MySQL Error : You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ')
AND deletionlog.primaryid IS NULL
ORDER BY thread.lastpost
Error Number : 1064
Date : Thursday, July 28th 2005 @ 09:26:18 PM
Script : http://www.pixsell.com.ar/forums/index.php
Referrer : http://www.pixsell.com.ar/forums/pri...=showpm&pmid=1
IP Address : 201.255.27.156
Username : admin
Classname : vb_database



any idea?

Neal-UK 07-28-2005 11:32 PM

I get that too:

Database error in vBulletin 3.5.0 Release Candidate 1:

Invalid SQL:

SELECT thread.threadid, thread.title, thread.lastpost, thread.forumid, thread.replycount, thread.lastposter, thread.dateline, IF(views<=replycount, replycount+1, views) AS views, thread.visible, user.username, user.userid
, NOT ISNULL(deletionlog.primaryid) AS isdeleted, deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason
FROM FORUMthread AS thread
LEFT JOIN FORUMuser AS user ON (user.username = thread.lastposter)
LEFT JOIN FORUMdeletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND type = 'thread')
WHERE thread.forumid NOT IN ()
AND deletionlog.primaryid IS NULL
ORDER BY thread.lastpost DESC LIMIT 0, 5;

MySQL Error : You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ')
AND deletionlog.primaryid IS NULL
ORDER BY thread.lastpost DE
Error Number : 1064
Date : Friday, July 29th 2005 @ 12:31:36 AM
Script : http://www.burnleyweb.com/community/index.php
Referrer : http://www.burnleyweb.com/community/online.php
IP Address : 212.***.***.***
Username : *******
Classname : vb_database

InfiniteWebby 07-28-2005 11:51 PM

Ok the database errors are because you left the excluded forums setting blank, put a zero in there for now and it should be okay. I'll put in a check statement that will make sure this doesn't happen in the future.

To everyone else having troubles uploading the plugin. I should have stated this before. IT IS A PRODUCT to import it you must go into your admincp click the Manage Products link in the nav bar. Click [Add/Import Product] then import it. If you have already tried to import it then it is best if you select 'yes' for Allow Overwrite. If you are still having troubles then pm me with the exact problem and I will look into it.

Neal-UK 07-29-2005 12:12 AM

im struggling to find where you mean, i though i did the above but it still gives me the error

InfiniteWebby 07-29-2005 12:20 AM

Ok, sorry the settings didn't export. It *should* be fixed now, just download the new zip and follow the instructions.

Again if there are any problems pm me, it is much easier that way =)

Neal-UK 07-29-2005 12:39 AM

Quote:

Originally Posted by AnimeWebby
Ok, sorry the settings didn't export. It *should* be fixed now, just download the new zip and follow the instructions.

Again if there are any problems pm me, it is much easier that way =)

lol, no worries, will try now thanks very much for your help

Neal-UK 07-29-2005 12:43 AM

Quote:

Originally Posted by nealparry
lol, no worries, will try now thanks very much for your help

No, still getting an error on forumhome:

Database error in vBulletin 3.5.0 Release Candidate 1:

Invalid SQL:

SELECT thread.threadid, thread.title, thread.lastpost, thread.forumid, thread.replycount, thread.lastposter, thread.dateline, IF(views<=replycount, replycount+1, views) AS views, thread.visible, user.username, user.userid
, NOT ISNULL(deletionlog.primaryid) AS isdeleted, deletionlog.userid AS del_userid, deletionlog.username AS del_username, deletionlog.reason AS del_reason
FROM FORUMthread AS thread
LEFT JOIN FORUMuser AS user ON (user.username = thread.lastposter)
LEFT JOIN FORUMdeletionlog AS deletionlog ON(thread.threadid = deletionlog.primaryid AND type = 'thread')
WHERE thread.forumid NOT IN ()
AND deletionlog.primaryid IS NULL
ORDER BY thread.lastpost DESC LIMIT 0, 5;

MySQL Error : You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near ')
AND deletionlog.primaryid IS NULL
ORDER BY thread.lastpost DE
Error Number : 1064
Date : Friday, July 29th 2005 @ 01:42:01 AM
Script : http://www.burnleyweb.com/community/index.php
Referrer : http://www.burnleyweb.com/community/usercp.php
IP Address : 212.***.****.*****
Username : ******
Classname : vb_database

Neal-UK 07-29-2005 12:45 AM

my forum prefix is FORUM, that causing a problem?

InfiniteWebby 07-29-2005 12:45 AM

Are the settings in the vB options this time?

Neal-UK 07-29-2005 12:46 AM

Quote:

Originally Posted by AnimeWebby
Are the settings in the vB options this time?

no, just the default

InfiniteWebby 07-29-2005 12:48 AM

did you select yes when it asked you to allow overwrite?

plateau 07-29-2005 01:03 AM

Well Done but I think more Columns could be added such as: Top Viewed Threads, Top Replied Threads, like these.

Cheers.

InfiniteWebby 07-29-2005 01:04 AM

You mean it works for you?

And I will be working on extra columns once I get permissions and username formatting done.

Neal-UK 07-29-2005 01:04 AM

Quote:

Originally Posted by AnimeWebby
did you select yes when it asked you to allow overwrite?

no as i unistalled it then reinstalled it. Am i best selecting overwrite and try again?

InfiniteWebby 07-29-2005 01:07 AM

Probably and if you are still having troubles then contact me via pm. They are in my profile.

Barakat 07-29-2005 01:07 AM

it works finaly thanks a loooooooooooooooooooooooooooooooot for that hack

Neal-UK 07-29-2005 01:15 AM

Quote:

Originally Posted by Barakat
it works finaly thanks a loooooooooooooooooooooooooooooooot for that hack

whoo oooo, it's working thanks. If only I could move the shoutbox to the bottom now....... Thanks AnimeWebby

chizzzz 07-29-2005 01:23 AM

EVERYTHING WORKS FINE, BUT THERE IS A SMALL PROBLEM. THE TITLE "Top Poster" doesnt show, Other than that, its fine.

Neal-UK 07-29-2005 01:28 AM

Quote:

Originally Posted by chizzzz
EVERYTHING WORKS FINE, BUT THERE IS A SMALL PROBLEM. THE TITLE "Top Poster" doesnt show, Other than that, its fine.

eh? that was working earlier. Help??

Neal-UK 07-29-2005 01:30 AM

Quote:

Originally Posted by nealparry
eh? that was working earlier. Help??

is this a phrase issue? which phrase will it be?

InfiniteWebby 07-29-2005 01:45 AM

To fix the top poster not showing just add a new phrase.

Phrase Type: GLOBAL
Product: Top 'X' Stats by InfiniteWebby
Varname: top_posters
Text: Top Posters

Neal-UK 07-29-2005 01:48 AM

weird, still not showing. It was earlier, i'm sure of it.

InfiniteWebby 07-29-2005 01:52 AM

Sorry made a mistake again. It is meant to have a varname of top_posters!

InfiniteWebby 07-29-2005 01:56 AM

I updated the zip to fix the missing phrase so if you'd prefer to reinstall the product then feel free to do so.

Neal-UK 07-29-2005 01:57 AM

yup, working now many thanks again ;-)

Brinnie 07-29-2005 08:09 PM

Ooooo, I have gotta have one of these. :)

haiboss 07-29-2005 11:36 PM

very well, thx man !

plateau 07-30-2005 12:01 AM

Quote:

Originally Posted by plateau
Well Done but I think more Columns could be added such as: Top Viewed Threads, Top Replied Threads, like these.

Cheers.

yes it is.

thanks mate, and i m waiting for ur further works done!

Loki12 07-30-2005 08:38 AM

I love this hack, thanks AnimeWebby. :)

One thing though...

On the FORUMHOME, this works well with usergroup permissions, i.e. I can only see the threads that I am allowed to view under my usergroup. BUT... when I click on the link to see all 30 top entries (http://www......../forum/topXstats.php ), then ALL posts show... and unfortunately even guests will see the threads of the staff forum, for example... :(

Any fix for this?


All times are GMT. The time now is 05:47 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.01619 seconds
  • Memory Usage 1,828KB
  • 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
  • (12)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
  • (40)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