The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
[Add-on] Thread Prefixes: Quick Prefix Filter Details »» | |||||||||||||||||||||||||||
[Add-on] Thread Prefixes: Quick Prefix Filter
Developer Last Online: May 2011
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! Show Your Support
|
Comments |
#22
|
|||
|
|||
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 --> <if condition="$show['threadprefix']"> </form> <td class="smallfont"> <form action="forumdisplay.php" method="get"> <input type="hidden" name="s" value="$session[sessionhash]" /> <input type="hidden" name="f" value="$forumid" /> <input type="hidden" name="page" value="$pagenumber" /> <input type="hidden" name="pp" value="$perpage" /> <input type="hidden" name="sort" value="lastpost" $sort[lastpost] /> <input type="hidden" name="order" value="desc" $order[desc] /> <input type="hidden" name="daysprune" value="-1" $daysprunesel[all] /> <strong>Filter by prefix:</strong> $threadprefixes <input type="submit" class="button" value="Show" /></form></td></if> <!-- END FILTER TEMPLATE EDIT --> Well, anyway, in case anyone else was having this problem, there's the fix. |
#23
|
||||
|
||||
Quote:
ah thanks TMC, i see where i fudged up now cant I edit my code as such to save anyone having to insert and then edit it? |
#24
|
||||
|
||||
Good job~ ^^
|
#25
|
|||
|
|||
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 var pagenavs = fetch_tags(document, 'td'); for (var n = 0; n < pagenavs.length; n++) { if (pagenavs[n].hasChildNodes() && pagenavs[n].firstChild.name && pagenavs[n].firstChild.name.indexOf('PageNav') != -1) Any clues - I'm a bit stuck! |
#26
|
|||
|
|||
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:
|
#27
|
||||
|
||||
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. |
#28
|
|||
|
|||
Thanks Pottsy! You really helped.
|
#29
|
||||
|
||||
Thanks Pottsy, that worked for me too...
|
#30
|
|||
|
|||
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!! |
#31
|
|||
|
|||
Thank you Pottsy, works great on 3.6.8 PL2!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|