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)

TECK 12-23-2002 03:31 PM

Lee, is normal. I explained to you where is the prob few posts above.
Get on my board for the fix, if you really really want to use access masks (it will add another query). :)

NTLDR 12-23-2002 03:44 PM

I did try what I thought would account for access masks but it didn't work, probablt the code I used was wrong. I'll take a look at TW.com now, thanks for the info TECK :)

XIanX 12-23-2002 03:59 PM

Quote:

Originally posted by TECK
Lee, is normal. I explained to you where is the prob few posts above.
Get on my board for the fix, if you really really want to use access masks (it will add another query). :)

How is having access masks off on a forum even feasible for most people? I have a admin/mod forum, if I turn access masks off, non admins/mods can view the board.

TECK 12-23-2002 07:30 PM

Set perms individually for each forum. A little longer in the procedure but it will save you a precious query.

TECK 12-23-2002 07:33 PM

Quote:

Originally posted by NTLDR
I did try what I thought would account for access masks but it didn't work, probablt the code I used was wrong. I'll take a look at TW.com now, thanks for the info TECK :)
Heh, I didn't know also. Chen was kind to show me a trick, is pretty complex (at least for me) :D

NTLDR 12-23-2002 08:17 PM

I have to agree the permissions is one of the harder things to accomplish ;)

Have you got a link for the code as I couldn't find it at TW.com.

TECK 12-23-2002 08:31 PM

I will post it in there later on after I test it properly... :)

sparky2 12-24-2002 03:41 AM

Slick hack, but I'd prefer a LINK ~~ rather than assuming each user wants to "view similar threads" every showthread.php page view.

Also, it seems like this hack is a LOT of work just to duplicate functionality that's already built into search.php
(select a subforum // search in titles only )

In showthread.php, you might want (need) to check $searchenabled and $cansearch values
and conditionally null the template if search isn't currently enabled...

but piping it to search.php would take care of:
-- PARENT/sibling title searches
-- permissions
-- runs the title text through BADWORDS

In other words, I'm suggesting that you try this approach:

Create a link to search.php (essentially, a submit button)
& pass post['title'] and forumid as hidden fields
(user sees nothing other than a button, or link, labeled "find similar threads")

Boofo 12-24-2002 03:44 AM

Quote:

Originally posted by sparky2
Slick hack, but I'd prefer a LINK ~~ rather than assuming each user wants to "view similar threads" every showthread.php page view.

Also, it seems like this hack is a LOT of work just to duplicate functionality that's already built into search.php
(select a subforum // search in titles only )

In showthread.php, you might want (need) to check $searchenabled and $cansearch values
and conditionally null the template if search isn't currently enabled...

but piping it to search.php would take care of:
-- PARENT/sibling title searches
-- permissions
-- runs the title text through BADWORDS

In other words, I'm suggesting that you try this approach:

Create a link to search.php (essentially, a submit button)
& pass post['title'] and forumid as hidden fields
(user sees nothing other than a button, or link, labeled "find similar threads")

That sounds interesting. Could you come up with something like that?

boatdesign 12-24-2002 05:12 AM

What are the minimum PHP version and MySQL version requirements for this hack to run? Does it still require PHP 4.1 or will it run on 4.0.6?


All times are GMT. The time now is 11:10 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.01364 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
  • (3)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