Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Template Modifications

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
  #12  
Old 10-10-2006, 04:02 AM
Ascor's Avatar
Ascor Ascor is offline
 
Join Date: Jul 2006
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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")
Reply With Quote
  #13  
Old 10-11-2006, 04:11 AM
AyeCapn's Avatar
AyeCapn AyeCapn is offline
 
Join Date: May 2006
Location: Edmonton, AB
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<if condition="$pagenav">

Searched for thss in 3.6.2 and couldn't find it in FORUMDISPLAY
Reply With Quote
  #14  
Old 10-11-2006, 09:01 AM
gavinzac's Avatar
gavinzac gavinzac is offline
 
Join Date: Jan 2006
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #15  
Old 10-11-2006, 12:43 PM
AyeCapn's Avatar
AyeCapn AyeCapn is offline
 
Join Date: May 2006
Location: Edmonton, AB
Posts: 146
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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





Reply With Quote
  #16  
Old 10-12-2006, 08:48 AM
gavinzac's Avatar
gavinzac gavinzac is offline
 
Join Date: Jan 2006
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #17  
Old 10-16-2006, 02:36 AM
Janet Jackson's Avatar
Janet Jackson Janet Jackson is offline
 
Join Date: Sep 2006
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

glad to see i was right, it works

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.
Reply With Quote
  #19  
Old 10-16-2006, 03:10 PM
Janet Jackson's Avatar
Janet Jackson Janet Jackson is offline
 
Join Date: Sep 2006
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by gavinzac
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.
It's there already
Quote:
also, if theres a prefix thats not on the first page it'd be a pain to find one and then click it.
Good point, didn't think of that.
Reply With Quote
  #20  
Old 10-22-2006, 07:14 AM
Ascor's Avatar
Ascor Ascor is offline
 
Join Date: Jul 2006
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I confirm this was a template issus, now all work good in 3.6.2 ^^
Thank you Janet Jackson and thank's again gavinzakc
Reply With Quote
  #21  
Old 10-23-2006, 10:48 AM
gavinzac's Avatar
gavinzac gavinzac is offline
 
Join Date: Jan 2006
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Ascor
I confirm this was a template issus, now all work good in 3.6.2 ^^
Thank you Janet Jackson and thank's again gavinzakc
out of curiousity, what template are you using? i could have a look and see if theres some way to make them 100% compatible.
Reply With Quote
Reply

Thread Tools

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 09:38 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.04472 seconds
  • Memory Usage 2,320KB
  • Queries Executed 25 (?)
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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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