![]() |
Use exclude in search process related query string
So you can set Usergroup permissions to prevent access to certain forums, and when you setup a forum, you can set 'Index New Posts in Search Engine' to the 'No' option. Furthermore, another way to exclude forums from search results is to append exclude in the query string like so:
Code:
<a href="search.php?$session[sessionurl]do=getnew&exclude=1,2,3" accesskey="2">New Posts</a> Code:
<a href="search.php?$session[sessionurl]do=process&replyless=1&replylimit=0&exclude=1,2,3" accesskey="2">Unanswered Threads</a> While I searched around for an exisitng hack that allowed the use of both process and exclude in the same query string, I did not find such a hack although one may exist. So anyway there are two edits in one file necessary for this mini hack. Support is only offered on an if/as time is available basis. If you use this mini hack, then click install. |
Thanks for sharing, however this is a Template mod, it belongs over at vbulletintemplates.com.
If it doesn't involve php changes (or phpinclude changes), then it's not a mini mod. |
Quote:
|
Quote:
What php files are edited? Which phpinclude template mods are made? None. |
Uh, no! There are two PHP edits to the search.php file. A fresh install of vB does not recognize exclude as part of the do=process search query string, only do=getnew and do=getdaily can be combined with exclude. Check the attached file again b/c you obviously didn't see the PHP in the file.
|
thanks calorie, this is very useful :)
|
Thank you very much .. this is what I have been looking for ..
|
Used the following code for unanswered threads
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=process&replyless=1&replylimit=0&exclude=91,92, 99,103,119" accesskey="2">Unanswered Threads</a></td></tr> Use the exclude code and the sections I have added still show up. How can I exclude these sections from showing up in the unanswered threads. Laters |
@ The Realist: What changes did you make to the search.php file for this mod?
|
As per instructions for the mod.
|
All times are GMT. The time now is 10:03 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|