![]() |
Make Prefixes Clickable to Filter forumdisplay by Prefix
I decided to make this as a plugin. That modification is located here - Make Prefixes Clickable to Filter Forumdisplay
This is another modification which should be standard vbulletin. This template modification will make your thread prefixes clickable. If you click on the prefix, then the forumdisplay will only show threads with that prefix in that forum. Version History: 1.0 2009-11-23: - initial release by Lynne at vbulletin.org What to Do This is a template modification. Open the threadbit template and Find: HTML Code:
{vb:raw thread.prefix_rich} Change to: HTML Code:
<a href="{vb:link forum, {vb:raw thread}, {vb:raw foruminfo}}&prefixid={vb:raw thread.prefixid}" rel="nofollow">{vb:raw thread.prefix_rich}</a> Find: HTML Code:
<a href="{vb:link forum, {vb:raw foruminfo}, {vb:raw pageinfo_postusername}}" rel="nofollow">{vb:rawphrase thread_starter}{vb:raw sortarrow.postusername}</a> Add beneath: HTML Code:
<vb:if condition="$_GET['prefixid']"> / <a href="{vb:link forum, {vb:raw foruminfo}}" rel="nofollow">Show All Threads</a> </vb:if> 1. Make the above changes to the threadbit template and optionally the FORUMDISPLAY template. To uninstall: 1. Undo the above changes to the threadbit template and optionally the FORUMDISPLAY template. Screenshots Clickable Prefixes https://vborg.vbsupport.ru/attachmen...1&d=1259011984 After Prefix is clicked, now you have the Show All Threads option: https://vborg.vbsupport.ru/attachmen...1&d=1259012314 |
Any screen shots?
|
I added a couple of screenshots. It just makes your thread prefixes clickable to filter all the threads with that one particular prefix.
|
try to apply the explanation, but it is nothing changed :confused:
Can you help me |
Very nice mod. I have seen it in 38 and now I understand how to do it.
tagged |
Quote:
|
Thank you Lynne
|
Tagged for future use. Thanks.
|
Tagged for future use. Thanks.
|
Thanks.
|
could it be in a single xml product instead of manually changing template ?
|
Quote:
|
One question: can it be arranged that clickable prefixes with images on hover change background. Can this be arranged with CSS
Like for example reply buttons in vB4.0 |
You can do that with css, yes. You're going to have to play with it a bit and remember that if you use an id, you'll need to make it unique (so append the thread id to the end of it, or something like that).
|
Thanks Lymme nice one
Tagged for future use |
this is great!
and...how to search all threads with an specific prefix? i mean..i want to add a button wich says "all threads with xx prefix"..the user clicks there and then he will be able to see all threads with that prefix on all forums/subforums |
This should be a standard feature .
|
Quote:
|
so how should be the code? :s
sorry, im very bad to understand programming :( |
Sorry, I was wrong. I just tried this without a forumid and it gives me an error (invalid forum specified). I guess you need to specify a forumid.
|
ho..thats really bad :|
vb4 should have this function to search by prefix in all forums ................... and..well..instead of that, how can be the code to search on forumid1,forumid2 and forumid3? |
Quote:
|
thanks ...very helphull
|
Hello Lynne,
thank you very much for this mod but is it possible the prefixes becomes a own column? See the attach its from vB3.7/3.8. I know it need template modification in FORUMDISPLAY, threadbit and search_results.. |
Quote:
|
Thanks, i would to combinate it with your mod, thats reason why i ask :P
|
I ended up writing this as a plugin. That mod is located here - Make Prefixes Clickable to Filter Forumdisplay
|
Thanks for the original mod, I am putting it to use.
Quote:
|
Quote:
|
I had to change the & to a ? before the prefixid to get it to work. With the & it just returned to the forum URL. I'm using "Advanced Friendly URLs" if that had anything to do with. No time to test.
|
All times are GMT. The time now is 04:59 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:
|