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)
-   -   =V.2= vB3 Similar Threads (https://vborg.vbsupport.ru/showthread.php?t=46860)

Boofo 12-21-2002 10:38 PM

Ok, I see. Sorry I missed that. :) But where I have it now, it seems to be a lot more accurate. It is supposed to pick words out of the title and use those, right? Well, now it does that even better. Any word in the title and it pulls up a Similar thread with the same word in it. Isn't that how it is supposed to work? And will it be alright where I have it now or will it mess with anything, do you know? :)

Auero 12-21-2002 10:41 PM

=/ Okay, it's not working at all for me. I've followed the install file exactly and I still cant get anything to display....????

Velocd 12-22-2002 01:27 AM

@boofo: you're fine ;)

@auero: Make sure you have placed the variable $similarthreads in your showthread template.

Give me a link to your forums, and I'll check it out if it is still not working.

ptm 12-22-2002 03:29 AM

Whew!!! :D :D Got it working perfectly. :)

Bison 12-22-2002 05:40 AM

Quote:

Originally posted by Boofo
Rolodex, try putting the chunkcode above this line and see if that helps. It fixed my forumjump problem and the threads are only showing similar threads if they really ARE similar. Let me know if it works for you.

Code:

eval("dooutput(\"".gettemplate("showthread")."\");");

So far, so good ... but occassionally when I click on a thread link the page comes up blank. I have to refresh the page or click on the back button to get the pages back ... yikes!

Velocd 12-22-2002 04:01 PM

I just realized a good fix for this hack, to make it more accurate. I noticed with the first version I had it check for similar threads only in the forum which the thread originated in. If you do this with this hack, you get much more valid results, mostly if you have a large forum.

I've updated the instructions to include this, so just re-upgrade the codechunk.txt.

If you want to just do it manually, find (in the codechunk):
PHP Code:

AND thread.visible=

And replace it with:
PHP Code:

AND thread.visible=AND thread.forumid=$thread[forumid


Velocd 12-22-2002 04:11 PM

Actually.. I just realized that if this is done, the displaying of which forum the similar thread is in is pointless.

Although, I just got another good idea: Search the parent forum and all sub-forums within for similar threads, that the thread originates from.

Now if I can only figure out how to do this.... ;)

NTLDR 12-22-2002 05:23 PM

A note on the permissions for this hack. They only work if custom permissions are applied to all forums (which have different permissions) as it ignores inherited permissions. I've had to disable this hack now till they work correctly.

Bison 12-22-2002 08:35 PM

Another question ... why are you pointing the category background in your showthread_simularthreads template to:

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

Is there a reason for this, or are you "unknowingly" duplicating the same mistake in every update of this hack?

Velocd 12-23-2002 12:06 AM

It's only one small mistake Rolodex, nobody is perfect, eh? I'm quite lazy as it is, so I'll update it next time I figure it need be. If it's gonna kill you, then well.. I bid you the best farewell ;) j/k

@NTLDR: When you say inherited permissions, do you mean specific permissions geared to user groups? Also, can you give an example of how it is not working? I have user group and forum permissions set, and this hack is working correctly--unless I am overlooking something.


All times are GMT. The time now is 08:04 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.01123 seconds
  • Memory Usage 1,740KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (1)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