The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Search posts and froums
Can someone please tell me how to make the following query only allow searches show up for forums the user who is searching has access to? Right now it shows the word they searched for, and when they click on the word, if they do NOT have access to that forum, it shows the error message that there weren't any instances of the word found, even though it still shows in the list. Is there any way not to even have the word listed for those who can not view the forum?
PHP Code:
|
#2
|
|||
|
|||
I don't really get your question. The list of words, is the words the user entered on the searchline, what got this to do with the forums? And i think the orderedids already contain a list of the threads found with the permissions considered.
What are you trying to do? |
#3
|
||||
|
||||
I am porting my Last 15 searches hack from 3.0 to 3.5.
Right now it handles the permissions fine as the user can not get into a forum that they aren't supposed to. But the word they searched for WILL show up in the Last 15 Searches listing even though it is in a forum they can't access. I wouold like it to not show up in the listing for any forum that they don't have access to so they can't somehow stumble onto something that they really shouldn't. And also, it shows the threads it is in instead of the individual posts. I would like to see it just display the posts. |
#4
|
|||
|
|||
It will just show the words used to search, doesn't matter if they are found or not i think.
I think you have set the search options to show as threads instead of posts then. |
#5
|
||||
|
||||
Quote:
How do I set it to shows posts? |
#6
|
|||
|
|||
Do you anywhere query the post or the thread table then?
Edit: I have feeling we are both talking about complete different things, maybe i should just go sleep. |
#7
|
||||
|
||||
The query I am using is in the first post.
|
#8
|
|||
|
|||
Well that query is not retrieving any thread/post/forum info, si i am really lost on what you mean now.
|
#9
|
||||
|
||||
No, because it is using the search table.
|
#10
|
|||
|
|||
Yes and the search table will only give you id's, no forums or threads, so you will have to process them later.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|