![]() |
[Add-on] Thread Prefixes: Quick Prefix Filter
Requires Thread Prefixes:
https://vborg.vbsupport.ru/showthread.php?t=123033 This just adds a little drop down to filter a forum by prefix. It will only show up if the forum has prefixes enabled. On my site I use it so that I don't need to have lots of little subforums, I have one central forum per area of the site and this filter lets them see all of one prefix type in the manner of a subforum, which in my opinion is tidier. See screenshots for my example. Admin CP -> Styles & Templates -> Style manager --> [Style you want to edit] --> Edit templates --> Forum Display --> FORUMDISPLAY Find: PHP Code:
PHP Code:
Its working fine on mine, just let me know if there are any errors. If you use it, please click Install! :) |
very nice and usefull, thank you, installed :)
|
you got a live demo, I think it may help me grasp this a little better.
Thanks. |
Quote:
my site require registration but maybe someone else could post theirs? Theres not much more to it than the screenshots anyway. its just a simple drop-down list that filters to threads with only the selected prefix. |
is it possible to limit this to one forum or is it site wide?
|
Quote:
|
I saw this release the other day and thought it was nothing special lol, but even before that I have been looking everywhere for the prefix hack, but wasnt searching for the word prefix led me knowwhere lol, so now that I understand what this does, it is really good.
Thanks, clicks install. |
Quote:
|
In the forums that this mod acts in (forums with active prefix fields) it seems to break the AJAX menu system. No dropdown menus work, however forums where it isnt running do have working AJAX menus.
Any idea why this would be? vB v3.6.1 |
could i have a link to your forum to check it out? i presume you mean the DHTML menu, rather than an ajax modification?
|
After upgrade to 3.6.2 an doing the template edit you can check the select box thread for moderation, but the counter say 0 post selectec and is not showing the "selected" color row :/
edit: and i have just cheked, same problem as Simplicity, the menu are out, ("forum tools" and "search in this forum") |
<if condition="$pagenav">
Searched for thss in 3.6.2 and couldn't find it in FORUMDISPLAY :( |
i guess theres something changed about 3.6.1+, i dont know i havent upgraded yet. Ill post any edits if/when i upgrade :( sorry guys, although i really dont see how this would affect any of that, its just a form and submit button.
|
Dear gavinzac,
Due to repeated failures to meet expectations, your services will no longer be required with our firm. You have 15 minutes to clean out your desk. Security will escort you to the front door. Have a nice day. Sincerely, The Management :o |
If you do want to put this into 3.6.2, just find the new topic button and put it in after that. I can't garauntee it'll work but I don't see why it wouldnt, its just a form. I'm guessing people have somehow screwed up the form that lets you inline moderate when they did this.
|
I tested this add-on just to see if it worked on a 3.6.2 board and it did (without affecting AJAX or moderation options). Unfortunately the forums where I have prefixes enabled aren't publicly visible, so I can't show you. Anyway, to be honest I find this a better solution myself.
|
glad to see i was right, it works :D
thats fair enough, two ways of doing the same things really, but you should really put rel="nofollow" on those links. search engines will go crazy. also, if theres a prefix thats not on the first page it'd be a pain to find one and then click it. |
Quote:
Quote:
|
I confirm this was a template issus, now all work good in 3.6.2 ^^
Thank you Janet Jackson and thank's again gavinzakc :) |
Quote:
|
This broke my inline moderation on the FORUMDISPLAY. The only forum where inline mod. would work was where I had thread prefixes installed.
I instead am using: Code:
<!-- START FILTER TEMPLATE EDIT --> Well, anyway, in case anyone else was having this problem, there's the fix. :) |
Quote:
ah thanks TMC, i see where i fudged up now :D cant I edit my code as such to save anyone having to insert and then edit it? |
Good job~ ^^
|
I'm getting a javascript error (object required) when viewing a forumdisplay, only on forums with this hack and only on ie. This gives an error and disables navbar popups only in ie.
The error happens on the last line of this snippet (found in vbulletin_global): Code:
// add popups to pagenav elements Any clues - I'm a bit stuck! |
OK, I think I've fixed this (error and no pop up navbar in IE) - but you may want to check this because I am no coder...
This mod is a form, but it's stuck in the middle of another form. If the mod is displayed, it just terminates the first form. This is how I fixed it: Admin CP -> Styles & Templates -> Style manager --> [Style you want to edit] --> Edit templates --> Forum Display --> FORUMDISPLAY Find and delete: PHP Code:
Find: PHP Code:
Insert above/before: PHP Code:
|
Good work pottsy.
I will no longer be using this hack, or thread prefixes, so feel free to submit the correct code as your own modification for the latest version. |
Thanks Pottsy! You really helped.
|
Thanks Pottsy, that worked for me too...
|
I know that this mod wasn't designed for it, as well as I am getting errors when using it on 3.6.8 with a bad if condition, but I was wondering 2 things?
#1 - Can we get it updated to work in 3.6.8? Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in .... line #53 #2 - would it be possible to have a search for all the forums by prefix. Right now I can only within advanced search put words in for it to search, as well as it won't search multiple forums. Thanks!! |
Thank you Pottsy, works great on 3.6.8 PL2!
|
Anyone know if there's a similar mod to this (other than the Clickable Prefix Mod) for v3.7?
|
would love to see something like this for 3.7/3.8!
|
Quote:
|
Quote:
|
A vb 3.8.6 version would be nice to have.
|
Quote:
|
I would love to see this mod for VB 4.1.12
Any thoughts of upgrading it? |
I'd like to see a vb4 version as well!
|
All times are GMT. The time now is 07:16 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:
|