vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Major Additions - psiStats 2006 (The New vBStats for vBulletin 3.5.x - 3.8.x) (https://vborg.vbsupport.ru/showthread.php?t=127980)

furst 12-03-2006 03:52 PM

Quote:

So you would prefer a javascript or and xml feed, right?
Yeah, that would work best for me.

nocte 12-04-2006 07:59 PM

Hi,

I upgraded to PHP 5.2.0-0 - now i see a blank page, wenn i open psistats.php

I had Problems with vB CMPS too after upgrading, so i think it's the new PHP Version.

akanevsky 12-04-2006 08:18 PM

Quote:

Originally Posted by nocte (Post 1131890)
Hi,

I upgraded to PHP 5.2.0-0 - now i see a blank page, wenn i open psistats.php

I had Problems with vB CMPS too after upgrading, so i think it's the new PHP Version.

Unfortunately, I cannot help you if you see a blank page (which means that error display is suppressed). I need an error messge...

blogtorank 12-04-2006 08:18 PM

Quote:

Originally Posted by Psionic Vision (Post 1129363)




Voted and also will be putting a list here for you to do ;) then you can take the rest of the coders out with this list I'm coming up for new add-ins for you as I'm a person that lives off stats, breathes stats, eats stats and sleeps with stats as you can see the screenshot below why I do ;)

So hopefully your fingers are rested cause I have many options for you to add in!!!

blogtorank 12-04-2006 08:20 PM

Quote:

Originally Posted by nocte (Post 1131890)
Hi,

I upgraded to PHP 5.2.0-0 - now i see a blank page, wenn i open psistats.php

I had Problems with vB CMPS too after upgrading, so i think it's the new PHP Version.

You need to check your error_log files wherever on your server and it's pretty early isn't it to be upgrading to a recent PHP? How many other things are broken too is my question? LOL

nocte 12-04-2006 08:53 PM

Quote:

Originally Posted by Psionic Vision (Post 1131899)
Unfortunately, I cannot help you if you see a blank page (which means that error display is suppressed). I need an error messge...

error reporting is on!

On vB CMPS i got this error: http://www.vbadvanced.com/forum/showthread.php?t=18878

akanevsky 12-04-2006 09:15 PM

Quote:

Originally Posted by blogtorank (Post 1131901)
Voted and also will be putting a list here for you to do ;) then you can take the rest of the coders out with this list I'm coming up for new add-ins for you as I'm a person that lives off stats, breathes stats, eats stats and sleeps with stats as you can see the screenshot below why I do ;)

So hopefully your fingers are rested cause I have many options for you to add in!!!

Can you please post suggestions at visionscripts? Cause this thread is way too long to track suggestions otherwise. Thanks. (for voting too)

711 12-05-2006 01:47 AM

I have installed this mod, and really like it.

One thing I would like to change is this:

In the Top threads and posts section, rather than show the All Time leaders, I'd love to show the most popular threads and posts from the last 24 hours.

I would imagine this would require a WHERE clause added here:

Code:

// top threads by views
        $getthreads = $db->query_read("
                SELECT threadid, title, views
                FROM " . TABLE_PREFIX . "thread
                WHERE visible = 1
                AND forumid NOT IN (0$limitfids)
                ORDER BY views DESC
                LIMIT " . $vbulletin->options['psistats_toptflimit'] . "
        ");

and here:

Code:

// top threads by replies
        $getthreads = $db->query_read("
                SELECT threadid, title, replycount
                FROM " . TABLE_PREFIX . "thread
                WHERE visible = 1
                AND replycount > 0
                AND forumid NOT IN (0$limitfids)
                ORDER BY replycount DESC
                LIMIT " . $vbulletin->options['psistats_toptflimit'] . "
        ");


but I am not familar enough with SQL to do this.

Im guessing it's something close to this:

Code:

WHERE lastpost >= (curdate() - 24*60)
but that produces an error.

Any suggestions?

Thanks!

akanevsky 12-05-2006 05:58 PM

It would be an:
AND lastpost >= " . TIMENOW - 86400 . "
Add it right under the row that says WHERE.

711 12-06-2006 04:11 AM

Quote:

Originally Posted by Psionic Vision (Post 1132598)
It would be an:
AND lastpost >= " . TIMENOW - 86400 . "
Add it right under the row that says WHERE.

I tried that edit, which produces this error:

Code:

Database error in vBulletin 3.6.4:

Invalid SQL:
-86400
                AND forumid NOT IN (0)
                ORDER BY views DESC
                LIMIT 10;

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 '-86400
                AND forumid NOT IN (0)
                ORDER BY views DESC
                LIMIT 10
Error Number : 1064



All times are GMT. The time now is 05:00 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.01504 seconds
  • Memory Usage 1,750KB
  • 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
  • (4)bbcode_code_printable
  • (7)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