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.

LangTuDaTinh 09-21-2002 05:03 AM

great...thanks

Craigr 09-21-2002 05:16 PM

Quote:

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

Boo hoo. My host is running php version 4.0.6. :(

Does this mean when vb3 comes out, similar threads still won't work?

Craig

Dan Flynn 09-23-2002 03:50 AM

Sweet, He I found this in a the thread. Were is the I install button for this. You deserve criedit for this for sure. Very Nice.

One Question? How can I change the black color font to white?

Thanks

Crazy Pete 12-03-2002 05:19 PM

Well I'm having a problem even with the first step in this hack. The code you say to find in showthread.php, I don't have. I'm running v.2.2.9. What my showthread.php file for that section looks like is:
Code:

if ($noshutdownfunc) {
  $DB_site->query("UPDATE thread SET views=views+1 WHERE threadid='$threadid'");
} else {
  $shutdownqueries[]="UPDATE LOW_PRIORITY thread SET views=views+1 WHERE threadid='$threadid'";
}

if ($bbuserinfo[cookieuser]) {
  set_bbarraycookie('threadview', $threadid, time());
}

I've tried adding the code you have above this (as the noshutdownfunc is similar), but that gave me a parse error on line 80, which is:
Code:

if($description_option){_$desc_=_",description";_}
Even commenting out the description lines did nothing but cause more parse errors. I'm sure I've installed this correctly, but being that the code bits are different, what might I have to change? This looks like a really cool hack that I'd definitely like to try out, so any help would be much appreciated. Thanks!

Erwin 12-03-2002 07:51 PM

FWIW, this hack is working great for me on 2.2.9 - but I installed it from 2.2.8 and upgraded.

ptm 12-18-2002 10:48 PM

Hello,

I installed it like the instructions said. I noticed that the instructions weren't exactly correct at the part where it says "if ($noshutdownfunc)..." but I thought I might still work if others said it works for them. So I installed it, and I'm getting 2 errors you can see at http://forums.pdaperformance.com/sho...hp?threadid=84

I'm don't know anything about PHP (though I do know C and C++) so I don't know what this means...

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of similar_text(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/pdacom/public_html/forums/showthread.php on line 281

Warning: Cannot add header information - headers already sent by (output started at /home/pdacom/public_html/forums/showthread.php:281) in /home/pdacom/public_html/forums/admin/functions.php on line 1573

(end of errors) PHP 4.2.3 and mySQL 3.23.53a is installed.

This hack looks like something I really need, so I would like to get it up and running as soon as possible. Any help would be greatly appreciated. :)

Thank you,
Parker

ptm 12-18-2002 10:56 PM

Oh, let me mention I'm running VBulletin 2.2.9.

ptm 12-19-2002 12:20 AM

Please help! :)

Bison 12-19-2002 02:47 PM

Tested this on my test board, and I cant get it to show up ...

NTLDR 12-19-2002 02:52 PM

Threads only appear if there similar. Create a thread called Test 1 and one called Test 2, look at one of them and it should work.

Bison 12-19-2002 03:15 PM

BINGO!

I forgot to add the $similarthreads above the <!-- Template Options ---> in the showthread template!

Thanks!

ptm 12-19-2002 04:12 PM

Would you please explain what you did to make it work? I'm getting all kinds of errors.

ptm 12-19-2002 04:54 PM

Hello,

I installed it like the instructions said. I noticed that the instructions weren't exactly correct at the part where it says "if ($noshutdownfunc)..." but I thought I might still work if others said it works for them. So I installed it, and I'm getting 2 errors you can see at http://forums.pdaperformance.com/sh...php?threadid=84

I'm don't know anything about PHP (though I do know C and C++) so I don't know what this means...

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of similar_text(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/pdacom/public_html/forums/showthread.php on line 281

Warning: Cannot add header information - headers already sent by (output started at /home/pdacom/public_html/forums/showthread.php:281) in /home/pdacom/public_html/forums/admin/functions.php on line 1573

(end of errors) PHP 4.2.3 and mySQL 3.23.53a is installed.

This hack looks like something I really need, so I would like to get it up and running as soon as possible. Any help would be greatly appreciated.

I'm assuming this hack doesn't work with PHP 4.2?

Thank you,
Parker

Bison 12-20-2002 05:21 AM

let's take a peek at your showthread.php (Send [PM] it to me) ...

Velocd 12-20-2002 04:31 PM

It shouldn't be an issue of your PHP or MySQL version, as I am running PHP 4.2.3 and mySQL 3.23.54 and it works fine.

I have heard of issues with this on vBulletin 2.2.9, which is what you are running, so there could be some conflicts there. I do not have 2.2.9 installed, except on my localhost, so I will install this hack there and get back to you a.s.a.p

Thanks for contacting me via PM also ptm, as it's the best way for those needing help with one of my hacks to get my attention, in addition to replying to the thread. ;)

ptm 12-20-2002 04:33 PM

Velocd,

Thank you for your time and help. :) Next time when I install another modification I will be sure to PM the author.

- Parker

Boofo 12-20-2002 04:44 PM

Velocd, don't bother setting it up on 2.2.9. I am running that version and this works fine for me. I installed it a few days ago. :)

ptm 12-20-2002 04:53 PM

Well it's not working on mine. :eek:

Boofo, would you PM me your showthread.php so I can try it on my server to see if I still get errors?

NTLDR 12-20-2002 05:56 PM

Its working fine on my rather hacked 2.2.9 too with out a problem. Perhaps another hack you've got installed is conflicting with it?

ptm 12-20-2002 06:09 PM

Nope, not a chance. :) Haven't installed 1 hack.

Bison 12-20-2002 09:51 PM

@ptm .... check your pm's

ptm 12-20-2002 10:02 PM

Just sent you a reply. :)

Velocd 12-20-2002 11:24 PM

A new version of this hack is out, and support for this one will no longer be available. This new version seriously runs so much smoother and faster on my forums, so I highly recommend upgrading.

https://vborg.vbsupport.ru/showthrea...threadid=46860

ptm 12-22-2002 02:32 AM

Wow- thanks! :D Will let you know if I get it working. :)

maestrosdelweb 02-13-2003 12:55 AM

What's the difference between this hack and this other:?

https://vborg.vbsupport.ru/showthrea...threadid=46860

Erwin 02-13-2003 04:10 AM

Quote:

Originally posted by maestrosdelweb
What's the difference between this hack and this other:?

https://vborg.vbsupport.ru/showthrea...threadid=46860

This hack is version 1, the other is version 2 - use version 2.

Trekkie 02-16-2003 05:42 PM

cool hack, thx

Mike11212 03-07-2003 04:35 AM

I don't know if this was asked but how can i prevent some forums from being displayed in the similar thread

ethics 03-07-2003 01:59 PM

That's already done. Create a test user, set him up as a regular registered user, log in as him and you will see that those forums that are set for privacy, are excluded. Meanwhile, if you are a mod or an admin, similar thread that are private will show.

Mike11212 03-07-2003 08:44 PM

I have logged out and staff area news which is hidden from everyone i was able to see in the similar thread


All times are GMT. The time now is 07: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.01455 seconds
  • Memory Usage 1,843KB
  • 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_code_printable
  • (4)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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