![]() |
|
Article Options |
Show Threads Sitewide by Prefix [Tutorial]
by
![]() Rating:
![]() Numerous questions have been posted throughout vB forums on how to perform a site-wide search (or filtering) and show only those threads with a specific prefix. The goal is to construct a link - that is used as a tab, text-link, or even in the text-rich title box of the prefix itself - that once clicked it presents threads or posts with that prefix from all the forums on the board. Principally, this is a complex task to perform because the search for the prefixed threads or posts should consider user and forum permissions, so once user is prohibited from viewing threads in one forum - threads from that forum shouldn't be displayed in the site-wide search, etc. Luckily, VB provides us with great advance-search capabilities, and searching for threads or posts that are assigned a specific prefix is among them. Thus, the search string: http://www.yoursite.com/search.php?prefixchoice[]=Video should do the trick. However, the problem is that this link only leads users to the advanced search form, with the search criteria already in place, but users still have to activate the search. The secret lays in adding the following parameter to the search string: do=process From now on, if you want a search criteria to be activated without showing the visitor that search form again, just add do=process to the string. Before: search.php?prefixchoice[]=Video After: search.php?do=process&prefixchoice[]=Video About Clickable Prefix Webmasters often plan on making their prefix clickable. Good MODs have been published to this effect, but if you just want to do it yourself, place the following text (or a similar one) in the Title (Rich Text) box of the prefix: <span><a href="search.php?do=process&prefixchoice[]=Video" style="color: red;"><b>Video</b></a></span> This coding answers also questions about how to assign different colors to an HTML link. The following members like this post: JohorBahru, beni
Last edited by Princeton; 11 Nov 2008 at 15:01.. |
Views: 9874
|
Comments |
#2
|
||||
|
||||
Known Bugs & Issues
Reserved for listing known bugs and issues.
No members have liked this post.
|
#3
|
|||
|
|||
Simple and useful. Thanks
![]() No members have liked this post.
|
#4
|
||||
|
||||
Isn't this just a template edit?
Why did you file it under products? No members have liked this post.
|
#5
|
||||
|
||||
It isn't even a template edit.
I filed it under products because:
No members have liked this post.
|
#6
|
||||
|
||||
love it. will implement.
![]()
Originally Posted by shlomot
![]()
agreed ![]()
__________________
Unreal Addicts: The Ultimate UT Fraggin Fix Unreal Tournament Sniper Clan and UT Gaming Community. Serving frags and fun to the UT Community Since 1999 www.UnrealAddicts.com No members have liked this post.
|
#7
|
|||
|
|||
Is it possible to hide threads of a specific prefix from a group?
e.g. MEMBERS ONLY: A thread for members only won't show for guests? No members have liked this post.
|
#8
|
||||
|
||||
I'd love to say YES, but the answer is NO.
The prefix permissions (that can be set per prefix-set or each prefix individually) are directed at who can use that prefix in their threads, and are not about who can watch threads of a specific prefix. Also, threads from forums that are not accessible to "non-members" won't show up in the search results. But if you refer to filtering out of certain threads from the result-set, I'm afraid it's impossible. I hope that vB 4 will allow permission management of prefixes for viewing also. No members have liked this post.
|
#9
|
|||
|
|||
Cheers for the answer - pity!
No members have liked this post.
|
#10
|
||||
|
||||
moved to Articles
__________________
Former vBulletin.org Staff Member Latest Articles: Liquid Layout = Less Ad Revenue? How to Monetize Your Site Improve Web Page Performance How To Write For The Web If it needs instructions, there's room for improvement. Give users what they actually want, not what they say they want. And whatever you do, don't give them new features just because your competitors have them! No members have liked this post.
|
#11
|
|||
|
|||
thanks. this is very usefull.
No members have liked this post.
|
#12
|
|||
|
|||
This doesn't seem to work with vb4 anymore. Any idea how I can get this to work with vb4?
No members have liked this post.
|
#13
|
||||
|
||||
It didn't work for me if I have multiple words in the search term. Do I have to place a particular character into the search code to show correctly?
__________________
No members have liked this post.
|
![]() |
![]() |
||||
Article | Author | Type | Replies | Last Post |
Prefix for closed threads | Scrub | vBulletin 2.x Full Releases | 36 | 08 Jan 2003 23:43 |
«
Previous Article
|
Next Article
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Article Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 13:23.