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)

The Realist 08-18-2002 08:06 PM

Were are the pages for this hack generated and is there a way to test it works?

Installed but so far no errors?

Regards,

Brian

newsguy 08-19-2002 09:15 PM

Thank you for this hack!

Installed nicely.

The relevance of the similar threads, though, is not all that great, even with tweaking the $priority variable.

But it's still a nice feature.

memobug 08-20-2002 04:01 AM

step #2:

<tr align="center" bgcolor="#336D95" background="https://vborg.vbsupport.ru/images/catagory_backing.gif">

Other than the "catagory" typo is there a recommended image? or just zap it?

Regards,

Matt

Velocd 08-20-2002 05:08 AM

<tr align="center" bgcolor="{_categorybackcolor}"> ,without the space ofcourse.

I'm actually not sure what you're talking about, but give that a try (very late..sleepy..must get sleep O_O)

Darth Cow 08-23-2002 08:00 AM

You might want to only select threads from, say, the last month to help aliviate the performance issue.

memobug 08-24-2002 06:08 AM

Minor bug -

1) The similar threads search occasionally pulls up the title of a post that was Moved (with redirect) to another forum.

The result is that if you click on one of those, you'll get a screen with header and message title but no body, and the forum thinks it's an empty poll or something.

2) Looks like this:

http://forum.bonsaitalk.com/showthre...&threadid=1634

3) I'm thinking it would be possible to fix this because the forum's internal search never returns redirected posts, so there must be a flag or prefix or something to identify them.

4) If you don't know what's going on, it is a little bewildering, but it did give me the idea for a new hack:

SHOW/PURGE REDIRECTS!

I having to jump through hoops to purge a redirect. You have to move it back to the original forum, then move it forward. If there were a hack to display or purge redirects older than XX days, it would be very cool!

Regards,

Matt

Craigr 09-15-2002 02:15 PM

Quote:

Originally posted by Velocd
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

I had the same problem on my board:
Warning: Wrong parameter count for trim() in showthread.php on line ???

I tried replacing this, but it still doesn't work.

Any ideas? I have the store hack added too.

Thanks
Craig

Velocd 09-16-2002 06:45 PM

I'm guessing maybe you're on an older PHP version maybe, and it's not updated for the correct parameters..

Anyway, 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 just:
PHP Code:


$validtitle 
trim($thread[title]);
$validtitle strtolower($validtitle);
$count 0;

while (
$rthread $DB_site->fetch_array($rthreads)) {
    
$validthread trim($rthread[title]);
    
$validthread strtolower($validthread); 


Craigr 09-17-2002 01:50 PM

I did that, but got the same error.

Craig

speedway 09-20-2002 06:06 AM

It seems that the additional parameter for the "trim" function was introduced in PHP 4.1 - so for those of us under that this hack will not work.

From php.net
Quote:

trim
(PHP 3, PHP 4 )

trim -- Strip whitespace from the beginning and end of a string
Description
string trim ( string str [, string charlist])


Note: The optional charlist parameter was added in PHP 4.1.0


Velocd - you should edit your original thread to reflect this requirement - so people do not try to install this if they do not meet the PHP requirement.


All times are GMT. The time now is 08:40 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.01230 seconds
  • Memory Usage 1,756KB
  • 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_php_printable
  • (2)bbcode_quote_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