vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vB3 Forum Quick Stats Cache Serialize Hack v1.1 (https://vborg.vbsupport.ru/showthread.php?t=61581)

SpeedStreet 03-11-2004 02:30 AM

Good deal!

And just to finalize my questions...how would I implement this for multiple forums?

Any chance we could get an admin option panel in the admincp for this? :)

Boofo 03-11-2004 02:42 AM

If you are going to only use this on a few forums, you could do this:

HTML Code:

<if condition="in_array($forumid, array(30, 31, 32))">
$forumdisplayquickstats
</if>

As far as the option panel in the Admin CP, what do you mean exactly?

SpeedStreet 03-11-2004 02:53 AM

Thanks for the tip.

What I meant was that I'd like to see this as an option in vBulletin settings, where I could modify what forums receive this versus modifying a conditional.

You said if there are only a few forums....how much load would the array hammer on the system? Can you define a few....like less than five or less than 20?

Boofo 03-11-2004 03:19 AM

The array sholdn't do any more than if you did

HTML Code:

<if condition="$forumid == '30' OR $forumid == '31' OR $forumid == '32'">
As far as an option in the Admin CP, I will look into that. You are the first person who has ever requested that. ;)

Zachariah 03-11-2004 05:44 PM

Boofo ! http://www.gzhq.net/forums/images/smilies/yourock.gif

[high]* Zachariah "click"
[/high]


BTW: your forums mouse is cool almost Star Trek :D

Boofo 03-11-2004 06:13 PM

Thank you, sir. And my mouse thanks you. ;)

Did you check out my Forum Quick Stats setup on my site? I re-did the template so it has a cleaner look to it. Check it out and let me know what you think. ;)

Steve123 03-13-2004 10:59 PM

Ahh bofo, i was just thinking about making something like this.. just saved me hours of work :D...

thanks dude.. :)

Boofo 03-14-2004 12:01 AM

No problem. ;)

And it's Boofo, with 2 o's. ;)

Owen 03-26-2004 07:43 PM

Error

SQL-query :

INSERT INTO " . TABLE_PREFIX . "datastore(

title,

DATA
)
VALUES (
'forumstatscache', 'a:15:{
s:10:"numthreads";s:1:"0";
s:10:"numreplies";s:1:"0";
s:8:"numviews";s:1:"0";
s:15:"topthreadscount";s:1:"0";
s:12:"topthreadsid";s:1:"0";
s:12:"topthreadsun";s:0:"";
s:17:"topthreadspercent";s:1:"0";
s:14:"toppostercount";s:1:"0";
s:11:"topposterid";s:1:"0";
s:11:"topposterun";s:0:"";
s:16:"topposterpercent";s:1:"0";
s:12:"attachscount";s:1:"0";
s:12:"attachsbytes";s:1:"0";
s:9:"avgrating";s:1:"0";
s:10:"lastupdate";s:1:"0";
}'
)

MySQL said:

#1064 - 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 '" . TABLE_PREFIX . "datastore( title,

DATA )
VALUES ( 'forum

Owen 03-26-2004 09:00 PM

false alarm, works fine without the query


All times are GMT. The time now is 06:51 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.01254 seconds
  • Memory Usage 1,735KB
  • 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
  • (2)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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