Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard

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
  #12  
Old 11-25-2009, 08:02 AM
mgurain's Avatar
mgurain mgurain is offline
 
Join Date: Apr 2005
Location: KSA - Qatif - Al-Jarodiah
Posts: 345
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

could it be in a single xml product instead of manually changing template ?
Reply With Quote
  #13  
Old 11-25-2009, 01:59 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 mgurain View Post
could it be in a single xml product instead of manually changing template ?
If you want to write that, feel free to post it. I took a quick stab at writing it as a plugin, and couldn't get the syntax right, but if you have the time, then go for it.
Reply With Quote
  #14  
Old 11-25-2009, 02:06 PM
Sarthek Sarthek is offline
 
Join Date: May 2006
Posts: 93
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

One question: can it be arranged that clickable prefixes with images on hover change background. Can this be arranged with CSS

Like for example reply buttons in vB4.0
Reply With Quote
  #15  
Old 11-25-2009, 02:15 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can do that with css, yes. You're going to have to play with it a bit and remember that if you use an id, you'll need to make it unique (so append the thread id to the end of it, or something like that).
Reply With Quote
  #16  
Old 12-06-2009, 01:22 PM
dacho's Avatar
dacho dacho is offline
 
Join Date: Dec 2004
Location: Tell-Aviv
Posts: 224
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Lymme nice one
Tagged for future use
Reply With Quote
  #17  
Old 12-22-2009, 01:19 AM
cloferba cloferba is offline
 
Join Date: Apr 2009
Posts: 437
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this is great!

and...how to search all threads with an specific prefix?
i mean..i want to add a button wich says "all threads with xx prefix"..the user clicks there and then he will be able to see all threads with that prefix on all forums/subforums
Reply With Quote
  #18  
Old 12-22-2009, 02:41 AM
mgurain's Avatar
mgurain mgurain is offline
 
Join Date: Apr 2005
Location: KSA - Qatif - Al-Jarodiah
Posts: 345
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This should be a standard feature .
Reply With Quote
  #19  
Old 12-22-2009, 02:49 AM
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
this is great!

and...how to search all threads with an specific prefix?
i mean..i want to add a button wich says "all threads with xx prefix"..the user clicks there and then he will be able to see all threads with that prefix on all forums/subforums
I think you would have to make the links not include the forumid in them if you wanted threads in any forum that have that prefixid.
Reply With Quote
  #20  
Old 12-22-2009, 02:52 AM
cloferba cloferba is offline
 
Join Date: Apr 2009
Posts: 437
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

so how should be the code? :s

sorry, im very bad to understand programming
Reply With Quote
  #21  
Old 12-22-2009, 03:16 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry, I was wrong. I just tried this without a forumid and it gives me an error (invalid forum specified). I guess you need to specify a forumid.
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 07:39 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.06148 seconds
  • Memory Usage 2,304KB
  • 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
  • (2)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