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)

Snake 02-13-2006 04:20 PM

Thanks, works fine on my forums. :)

http://forums.philosopherslegacy.net

The Realist 02-14-2006 11:50 AM

Any ideas anyone?

Quote:

Originally Posted by The Realist
Getting this error in regards to uncached templates on the botton of my forums:

Uncached templates: topXstats_member_bit (5)
Uncached templates: topXstats_poster_bit (5)
Uncached templates: topXstats_stats_bit (1)
Uncached templates: topXstats_thread_bit (5)

How to I cach them?


Snake 02-14-2006 11:57 AM

Yeah I would like to know as well.

InfiniteWebby 02-15-2006 03:09 AM

Quote:

Originally Posted by The Realist
Any ideas anyone?

It's already in the product. Try re-uploading and installing it.

CupraSi 02-15-2006 05:52 PM

Uploaded fine for me thanks ;)

One question

When you are in ACP it says something about extended stats pages

What is this please as I cant see it and when I click on the stats link I get a 404 page

RDX1 02-17-2006 01:29 PM

When installing:

Code:

Database error in vBulletin 3.5.3:

Invalid SQL:

                                INSERT INTO setting
                                (varname, grouptitle, value, defaultvalue, datatype, optioncode, displayorder, advanced, volatile, product)
                                VALUES
                                (
                                        'topXstats_displayrecords_forumhome',
                                        'topXstats',
                                        '5',
                                        '5',
                                        'number',
                                        '',
                                        10,
                                        0,
                                        1,
                                        'topXstats'
        ),
        (
                                        'topXstats_displayrecords',
                                        'topXstats',
                                        '30',
                                        '30',
                                        'number',
                                        '',
                                        20,
                                        0,
                                        1,
                                        'topXstats'
        ),
        (
                                        'topXstats_maxdisplayrecords',
                                        'topXstats',
                                        '200',
                                        '200',
                                        'number',
                                        '',
                                        30,
                                        0,
                                        1,
                                        'topXstats'
        ),
        (
                                        'topXstats_excludedforums',
                                        'topXstats',
                                        '0',
                                        '0',
                                        'free',
                                        '',
                                        40,
                                        0,
                                        1,
                                        'topXstats'
        ),
        (
                                        'topXstats_threadchars',
                                        'topXstats',
                                        '0',
                                        '0',
                                        'number',
                                        '',
                                        50,
                                        0,
                                        1,
                                        'topXstats'
        ),
        (
                                        'topXstats_userchars',
                                        'topXstats',
                                        '0',
                                        '0',
                                        'number',
                                        '',
                                        60,
                                        0,
                                        1,
                                        'topXstats'
        ),
        (
                                        'topXstats_newpostprefix',
                                        'topXstats',
                                        '[New]',
                                        '[New]',
                                        'free',
                                        '',
                                        70,
                                        0,
                                        1,
                                        'topXstats'
        ),
        (
                                        'topXstats_oldpostprefix',
                                        'topXstats',
                                        '[Old]',
                                        '[Old]',
                                        'free',
                                        '',
                                        80,
                                        0,
                                        1,
                                        'topXstats'
        );

MySQL Error  : Duplicate entry 'topXstats_displayrecords_forumhome' for key 1
Error Number : 1062
Date        : Friday, February 17th 2006 @ 07:45:55 AM
Script      : *
Referrer    : http://www.*/plugin.php?do=productadd
IP Address  : *
Username    : *
Classname    : vb_database


CupraSi 02-17-2006 02:21 PM

Quote:

Originally Posted by CupraSi
Uploaded fine for me thanks ;)

One question

When you are in ACP it says something about extended stats pages

What is this please as I cant see it and when I click on the stats link I get a 404 page

Anyone know about the extended stats?

Muscolino 02-21-2006 10:03 PM

Yet another hack I'm having problems with :(

I've installed it but get this:
Quote:

Database error in vBulletin 3.5.3:

Invalid SQL:
SELECT userid, usergroupid, IF(displaygroupid=0, usergroupid, displaygroupid) AS displaygroupid, username, posts FROM user ORDER BY posts DESC LIMIT 0,;

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 '' at line 1
Error Number : 1064

georgedd 02-23-2006 05:58 AM

There seems to be a bug/ security issue I just discovered with this plugin. If the title of a new thread contains HTML tags, it's displayed as is (not converted to entities) by the top x stats plugin...

georgedd 02-25-2006 01:04 AM

BTW, I've gone ahead and fixed the "non entity" bug I reported above. For those interested, inside topxstats.php (or edit directly in vbulletin control panel), find the lines:

Code:

                else
                {
                        $getstats_thread[titletrimmed] = $getstats_thread[title];
                }
        }

and add beneath it one extra line:
Code:

                else
                {
                        $getstats_thread[titletrimmed] = $getstats_thread[title];
                }
        }
        $getstats_thread[titletrimmed]=htmlspecialchars($getstats_thread[titletrimmed]);

Also, inside the template "topXstats_thread_bit", find:

Code:

title="<phrase 1="$getstats_thread[title]"
and change that to:

Code:

title="<phrase 1="$getstats_thread[titletrimmed]">
I highly recommend you implement the above changes or changes of your own. Otherwise, someone can execute arbitrary JavaScript code on your site just by entering as the title of a thread the script, such as:

Code:

<script>alert("hi")</script>


All times are GMT. The time now is 09:13 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.01424 seconds
  • Memory Usage 1,769KB
  • 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
  • (6)bbcode_code_printable
  • (4)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