vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Forum Display Enhancements - Make Prefixes Clickable to Filter forumdisplay by Prefix (https://vborg.vbsupport.ru/showthread.php?t=228695)

Lynne 11-22-2009 10:00 PM

Make Prefixes Clickable to Filter forumdisplay by Prefix
 
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
https://vborg.vbsupport.ru/attachmen...1&d=1259011984


After Prefix is clicked, now you have the Show All Threads option:
https://vborg.vbsupport.ru/attachmen...1&d=1259012314

MikesSite 11-23-2009 07:21 PM

Any screen shots?

Lynne 11-23-2009 07:36 PM

I added a couple of screenshots. It just makes your thread prefixes clickable to filter all the threads with that one particular prefix.

Dr.osamA 11-24-2009 03:34 AM

try to apply the explanation, but it is nothing changed :confused:
Can you help me

Sayid 11-24-2009 06:25 AM

Very nice mod. I have seen it in 38 and now I understand how to do it.

tagged

Lynne 11-24-2009 02:05 PM

Quote:

Originally Posted by Dr.osamA (Post 1919914)
try to apply the explanation, but it is nothing changed :confused:
Can you help me

Did you modify the correct template for your style? Are you using admin defined prefixes on your site? What is in the source code after adding this change?

steve1966 11-24-2009 06:49 PM

Thank you Lynne

Sarthek 11-24-2009 06:52 PM

Tagged for future use. Thanks.

kmohamed 11-24-2009 07:04 PM

Tagged for future use. Thanks.

SİMAR 11-24-2009 09:25 PM

Thanks.


All times are GMT. The time now is 06:54 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01469 seconds
  • Memory Usage 1,738KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete