vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Forum Display Enhancements - Make Prefixes Clickable to Filter Forumdisplay (https://vborg.vbsupport.ru/showthread.php?t=230906)

Lynne 12-22-2009 10:00 PM

Make Prefixes Clickable to Filter Forumdisplay
 
1 Attachment(s)
This is another modification which should be standard vbulletin. I wrote a template modification, but have now written one that is just a plugin. 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. Then, if you click on the prefix again, it will show all the threads.

Click to Filter Forum by this Prefixid:
https://vborg.vbsupport.ru/attachmen...1&d=1261541812

Click to Show All Threads:
https://vborg.vbsupport.ru/attachmen...1&d=1261541812

Version History:
1.0 2009-12-22: - initial release by Lynne at vbulletin.org
1.1 2010-01-05 - fixed issue of bad link showing up in search results - clickable prefixes will only show on forumdisplay as they are supposed to now.

To Install:

1. Import product-lynne_click_prefix.xml

To Uninstall:

1. Uninstall "Make Prefixes Clickable to Filter Forumdisplay"

Translations:
Thank you to Luca_ITA for the Italian phrase translations. :)
Thank you to yjeanrenaud for the German phrase translations. :)
Thank you to eTiKeT? for the Turkish phrase translations. :)

BBR-APBT 12-23-2009 02:57 AM

Nice will work well in my contest forums.

AzzidReign 12-23-2009 03:21 AM

Wow, this should be default! This is great!

Tagged*

TrendyTalks 12-23-2009 03:41 AM

Thanks Lynne :)

BSMedia 12-23-2009 03:47 AM

Excellent work, this should be default

Trek 12-23-2009 04:02 AM

As usual, you come up with some pretty slick ideas. =)

KiLLAxMAHN 12-23-2009 07:12 AM

Omg Yes!

balkanboy 12-23-2009 07:54 AM

Thanks! works great

KURTZ 12-23-2009 11:36 AM

excellent Lynne :P

willy888 12-23-2009 11:48 AM

thanks

Ramsesx 12-23-2009 12:36 PM

Really nice Lynne, good job.

asj 12-23-2009 05:08 PM

Sections do not work?

Lynne 12-23-2009 05:15 PM

Sections? This has nothing to do with CMS.

cosy 12-24-2009 09:31 PM

if you go to what is new when click on a prefix u get invalid URL

also can put use on rhe URL the title instead of Prefix ID :)

Lynne 12-24-2009 10:37 PM

Quote:

Originally Posted by cosy (Post 1937610)
if you go to what is new when click on a prefix u get invalid URL

also can put use on rhe URL the title instead of Prefix ID :)

Hmmm, this wasnt' written to be used on the What's New page. I'll have to put a condition around it so it doesn't show then in my next release.

If you want to do it now, just put this around the plugin contents:
PHP Code:

if (THIS_SCRIPT == 'forumdisplay') {
** 
the current plugin code **



Antyrael 12-28-2009 08:56 AM

Thanks for this great plugin Lynne :)

One question though, would it be possible to make it so that you can view all topics with the same prefix forum wide?
Or make it optional maybe.

I would like to present an easy list of important topics for new visitors, selected by their thread prefix.
For example, the URL would be something like "forumdisplay.php?prefixid=01".

Lynne 12-28-2009 02:13 PM

Quote:

Originally Posted by Antyrael (Post 1940191)
Thanks for this great plugin Lynne :)

One question though, would it be possible to make it so that you can view all topics with the same prefix forum wide?
Or make it optional maybe.

I would like to present an easy list of important topics for new visitors, selected by their thread prefix.
For example, the URL would be something like "forumdisplay.php?prefixid=01".

Somebody already asked that question in this thread. I do not know how that is possible.

Toxic2 12-31-2009 03:58 AM

Hi Lynne,

I have added Prefix's [CN] [KR] [JP] etc. and force the Poster to use one to designate country, I Installed the mod as directed, but the Prefix is not Clikable. Could it be that the Brackets make the prefix Null? Or if I need to make different prefix's to suit the mod, pls advise.

Lynne 12-31-2009 02:35 PM

I use brackets in my prefixes, so that isn't it. Are you trying this on a default style? Also, you need to be using rich prefixes - did you make sure to enter the prefix text in that text box also?

ShawnV 01-01-2010 04:49 AM

Awesome, thank you.

Toxic2 01-01-2010 10:57 PM

Quote:

Originally Posted by Lynne (Post 1943427)
I use brackets in my prefixes, so that isn't it. Are you trying this on a default style? Also, you need to be using rich prefixes - did you make sure to enter the prefix text in that text box also?

I am using different styles, In Prefix, the prefix ID is CN prefix set is TV prefix, rich txt [CN], plain txt [CN] as well. the TV Prefix has the various countries as I mentioned above. All countries are set to display order 10. ( I'm not all that familiar how to accurately set up prefix's yet) But all posts require a prefix before one can submit the posting. And that does work.

It has been decided to eliminate sub forums by country, and all posts are In one forum with the various Country prefix's. Your mod would certainly eliminate page after page, looking for specific country posts. e.g. all [KR] or [JP] etc.

I use the Style simple Black and added the Mod while using simple Black as the default.

If I need to re make Prefix's in all styles'(including default) a different way please advise

Thank you :)

Lynne 01-02-2010 03:28 AM

Have you tried this on a basic default style on your site?
Create a new style with no parent:
  • Styles & Templates > Style Manager > Add New Style
  • Parent Style: No Parent Style
  • Title: Default vBulletin
  • Allow User Selection: Yes
  • Save
Then browse the site using that totally default vbulletin style - do you still have the same problem?

SuperGLS 01-03-2010 02:06 AM

Works great for me on Gold. Thanks!

mandingo 01-05-2010 08:42 PM

Quote:

Originally Posted by Lynne (Post 1937631)
Hmmm, this wasnt' written to be used on the What's New page. I'll have to put a condition around it so it doesn't show then in my next release.

If you want to do it now, just put this around the plugin contents:
PHP Code:

if (THIS_SCRIPT == 'forumdisplay') {
** 
the current plugin code **



Put this where exactly? (sorry)

Lynne 01-05-2010 09:07 PM

Quote:

Originally Posted by mandingo (Post 1948207)
Put this where exactly? (sorry)

I just updated the mod to have this new condition in there, so download the new version.

mandingo 01-05-2010 09:22 PM

Thanks Lynne, you're the best.

RoteRose 01-09-2010 12:25 AM

Hello,

i found a bug, if you search for a prefix, the result page displays the prefixes like this:
http://<<ur>>l/forums/?prefixid=Rapidshare
this will result in a 404 error page.

And i?ve got another problem, i use this rewrite script for my lighttpd for seo urls. The /forum/ rewrite will nor work with your mod, can anybody help me to change the string?

Code:

url.rewrite-once = (
          "/entries/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?))" => "/entry.php?b=$1&page=$2&$query_string",
          "/threads/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?))" => "/showthread.php?t=$1&page=$2&$query_string",
          "/members/([0-9]+)" => "/member.php?u=$1&$query_string",
          "/forums/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?))" => "/forumdisplay.php?f=$1&page=$2&$query_string",
          "/blogs/([0-9]+)(?:/?$|(?:-[^/]+))(?:/?$|(?:/page([0-9]+)?))" => "/blog.php?u=$1&page=$2&$query_string",
          "/list/([^/]*/)([0-9]+)" => "/list.php?r=$1$2&$query_string",
          "/content/(.*)" => "/content.php?r=$1&$query_string",
          "/widget/config/([0-9]+)" => "/widget.php?r=config/$1&$query_string",
          "/clientscript/(.*)" => "/clientscript/$1"
        )


Lynne 01-09-2010 04:09 AM

Quote:

Originally Posted by RoteRose (Post 1950799)
Hello,

i found a bug, if you search for a prefix, the result page displays the prefixes like this:
http://<<ur>>l/forums/?prefixid=Rapidshare
this will result in a 404 error page.

Are you using version 1.1? When I search on a prefix with version 1.1, the prefixids are not clickable.

RoteRose 01-09-2010 04:56 AM

-.- i downloaded the new version and extract it to a folder with a (2) behind and choosed the one without ^^ sry. Now it?s working fine, but still the problem with the rewrite :(

Lynne 01-09-2010 03:20 PM

Quote:

Originally Posted by RoteRose (Post 1950911)
-.- i downloaded the new version and extract it to a folder with a (2) behind and choosed the one without ^^ sry. Now it?s working fine, but still the problem with the rewrite :(

I'm sorry, but I can't help with the rewrite.

insidedesign 01-10-2010 08:20 PM

simple and perfect.

Alien 01-10-2010 09:33 PM

Very useful, I really appreciate this!

Verionia 01-10-2010 10:34 PM

thanks alot!

SuperGLS 01-12-2010 01:58 AM

Updated. Thanks.

dieKetzer 01-20-2010 12:18 PM

works perfect on 4.01.
thanks :)

angeljs 01-21-2010 06:46 AM

What a good idea! Installed! :)

BMLabs 01-27-2010 03:41 PM

thx, i think it should be by default in vBulletin ))

KissOfDeath 01-27-2010 10:18 PM

Thank you this is a good mod

TimberFloorAu 02-07-2010 12:19 AM

Only just found this Lynne. Installed and working great.

As it is early days for us in using Prefixes. Are the sortable results displayed from all forums with that prefix ?

Excellent work. Ste

Lynne 02-07-2010 02:34 PM

Quote:

Originally Posted by TimberFloorAu (Post 1976358)
Only just found this Lynne. Installed and working great.

As it is early days for us in using Prefixes. Are the sortable results displayed from all forums with that prefix ?

Excellent work. Ste

From my description:
Quote:

If you click on the prefix, then the forumdisplay will only show threads with that prefix in that forum.


All times are GMT. The time now is 06:20 PM.

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.01488 seconds
  • Memory Usage 1,818KB
  • 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
  • (1)bbcode_code_printable
  • (2)bbcode_php_printable
  • (9)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
  • (40)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