Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
[Add-on] Thread Prefixes: Quick Prefix Filter Details »»
[Add-on] Thread Prefixes: Quick Prefix Filter
Version: 1.00, by gavinzac gavinzac is offline
Developer Last Online: May 2011 Show Printable Version Email this Page

Version: 3.6.0 Rating:
Released: 09-03-2006 Last Update: Never Installs: 60
Template Edits
 
No support by the author.

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:
<if condition="$pagenav"
Insert above/before:
PHP Code:
<!-- START FILTER TEMPLATE EDIT -->
<
td class="smallfont"></form>
<
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] />
        <if 
condition="$show['threadprefix']">
Show this type of thread$threadprefixes
<input type="submit" class="button" value="Show" /></form></if></td>
<!-- 
END FILTER TEMPLATE EDIT --> 
You can edit the "type of thread" text to whatever suits your forum.

Its working fine on mine, just let me know if there are any errors.

If you use it, please click Install!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 09-04-2006, 04:36 PM
Ascor's Avatar
Ascor Ascor is offline
 
Join Date: Jul 2006
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very nice and usefull, thank you, installed
Reply With Quote
  #3  
Old 09-05-2006, 09:00 AM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you got a live demo, I think it may help me grasp this a little better.

Thanks.
Reply With Quote
  #4  
Old 09-05-2006, 03:18 PM
gavinzac's Avatar
gavinzac gavinzac is offline
 
Join Date: Jan 2006
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hornstar1337
you got a live demo, I think it may help me grasp this a little better.

Thanks.
http://www.speakout.biz/forum/problems-advice/

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.
Reply With Quote
  #5  
Old 09-05-2006, 04:57 PM
kj_ugs kj_ugs is offline
 
Join Date: Oct 2004
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is it possible to limit this to one forum or is it site wide?
Reply With Quote
  #6  
Old 09-06-2006, 08:43 AM
gavinzac's Avatar
gavinzac gavinzac is offline
 
Join Date: Jan 2006
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kj_ugs
is it possible to limit this to one forum or is it site wide?
it only appears if a particular forum has Thread Prefixes enabled. you could limit it to one specific forum with thread prefixes enabled by adding an <if> statement around the whole thing.
Reply With Quote
  #7  
Old 09-14-2006, 09:43 AM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 09-15-2006, 08:07 AM
gavinzac's Avatar
gavinzac gavinzac is offline
 
Join Date: Jan 2006
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hornstar1337
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.
yeah it might be better if i had a demo version. have you got it installed on a live, public site?
Reply With Quote
  #9  
Old 10-07-2006, 02:13 PM
Simplicity Simplicity is offline
 
Join Date: Jun 2004
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #10  
Old 10-08-2006, 06:45 AM
gavinzac's Avatar
gavinzac gavinzac is offline
 
Join Date: Jan 2006
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

could i have a link to your forum to check it out? i presume you mean the DHTML menu, rather than an ajax modification?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:25 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04699 seconds
  • Memory Usage 2,307KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete