Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Make Prefixes Clickable to Filter forumdisplay by Prefix Details »»
Make Prefixes Clickable to Filter forumdisplay by Prefix
Version: 1.00, by Lynne Lynne is offline
Developer Last Online: Oct 2022 Show Printable Version Email this Page

Category: Forum Display Enhancements - Version: 4.0.0 Rating:
Released: 11-22-2009 Last Update: 11-22-2009 Installs: 13
Template Edits
 
No support by the author.

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>
That's it! If you then want to add a "Show All Threads" link next to the "Thread Starter" header, then you may edit the FORUMDISPLAY template also.

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>&nbsp;&nbsp;</vb:if>
To install:

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



After Prefix is clicked, now you have the Show All Threads option:

Show Your Support

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

Comments
  #22  
Old 12-22-2009, 04:10 PM
cloferba cloferba is offline
 
Join Date: Apr 2009
Posts: 437
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #23  
Old 12-22-2009, 06:33 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cloferba View Post
and..well..instead of that, how can be the code to search on forumid1,forumid2 and forumid3?
That sounds like a search function and this is just a mod to search this specific forum for all threads with that prefix. I think you'll have to look at the search.php page and look at the forumchoice[] and prefixchoice fields.
Reply With Quote
  #24  
Old 12-22-2009, 10:38 PM
willy888 willy888 is offline
 
Join Date: Apr 2006
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks ...very helphull
Reply With Quote
  #25  
Old 12-22-2009, 10:59 PM
W!cKeD W!cKeD is offline
 
Join Date: May 2009
Location: Hamburg
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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..
Reply With Quote
  #26  
Old 12-22-2009, 11:12 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by W!cKeD View Post
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..
Yeah, I'm sure you could put them in their own column, but that isn't really what this mod is about. If you don't know how to do it, you should post in the vB4 forums for help.
Reply With Quote
  #27  
Old 12-22-2009, 11:35 PM
W!cKeD W!cKeD is offline
 
Join Date: May 2009
Location: Hamburg
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, i would to combinate it with your mod, thats reason why i ask :P
Reply With Quote
  #28  
Old 12-23-2009, 02:24 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I ended up writing this as a plugin. That mod is located here - Make Prefixes Clickable to Filter Forumdisplay
Reply With Quote
  #29  
Old 12-29-2009, 06:27 AM
ps2wiz ps2wiz is offline
 
Join Date: Apr 2005
Posts: 217
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the original mod, I am putting it to use.

Quote:
Originally Posted by W!cKeD View Post
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..
I am interested in finding a way to do this, anyone?
Reply With Quote
  #30  
Old 12-29-2009, 03:05 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ps2wiz View Post
I am interested in finding a way to do this, anyone?
I saw the request but it's easier to help if you guys post the code you have tried and then let us see the results. So far, no code has been posted so I can't really help with it.
Reply With Quote
  #31  
Old 01-04-2010, 09:02 PM
SpankMe's Avatar
SpankMe SpankMe is offline
 
Join Date: Nov 2001
Location: New Zealand
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
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:58 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.04547 seconds
  • Memory Usage 2,307KB
  • 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
  • (4)bbcode_html
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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