vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   vB3 Similar Threads (https://vborg.vbsupport.ru/showthread.php?t=42388)

joeboo 08-17-2002 01:51 AM

very nice velocd, i will install this one :)

lordofgun 08-17-2002 03:40 AM

I'm getting the following error:

Warning: Wrong parameter count for trim() in /usr/local/psa/home/vhosts/billsfanzone.com/httpdocs/showthread.php on line 274

Velocd 08-17-2002 03:46 AM

hmm, that is an odd error.

Try replacing:
PHP Code:

$validtitle trim(strtolower($thread[title])," \t.");
$count 0;

while (
$rthread $DB_site->fetch_array($rthreads)) {
    
$validthread trim(strtolower($rthread[title])," \t."); 

With:
PHP Code:

$validtitle trim($thread[title]," \t.");
$validtitle strtolower($validtitle);
$count 0;

while (
$rthread $DB_site->fetch_array($rthreads)) {
    
$validthread trim($rthread[title]," \t.");
    
$validthread strtolower($validthread); 

My guess is you are using possibly an older version of PHP maybe, and it's not functional with more than one parameter..(something like that)..:P

MrLister 08-17-2002 04:40 AM

Great job!!

xware 08-17-2002 05:59 AM

Good hack.
But a problem is this hack use a whole thread table sql ....slowly.
I have 10000+ threads in thread table.
Before installed this hack ,my showthread page generated in 0.06433198 seconds ,after installed it this same Page generated in 1.26433198 seconds .
Would there be a better way to do this?

Boofo 08-17-2002 07:01 AM

Velocd, you have finally outdone yourself with this hack. Excellent work! I just have a couple of questions...how many queries does this add to the page? Will it add 4 or whatever you have set as the limit? And is 4 a good limit? And lastly, what does previewcharacters actually do? Thanks for the great hack!

/me clicks install!

Floris 08-17-2002 09:25 AM

Please put the code etc in a .txt file, so unlicenced members can't view it?

Tim Wheatley 08-17-2002 10:05 AM

I'm concerned this would slow things a lot on my forums, can anyone provide more info on whether it's slowed their forums?

Neo 08-17-2002 11:31 AM

It will.

Tim Wheatley 08-17-2002 12:03 PM

Thanks Neo. :)


All times are GMT. The time now is 11:19 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.01135 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_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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