PDA

View Full Version : Forum Display Enhancements - Make Prefixes Clickable to Filter Forumdisplay


Lynne
12-22-2009, 10:00 PM
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/attachment.php?attachmentid=107970&stc=1&d=1261541812

Click to Show All Threads:
https://vborg.vbsupport.ru/attachment.php?attachmentid=107969&stc=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 (https://vborg.vbsupport.ru/member.php?u=438459) for the Italian phrase translations. :)
Thank you to yjeanrenaud (https://vborg.vbsupport.ru/member.php?u=397957) for the German phrase translations. :)
Thank you to eTiKeT? (https://vborg.vbsupport.ru/member.php?u=269887) 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
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:
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
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
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
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:
if (THIS_SCRIPT == 'forumdisplay') {
** the current plugin code **
}

Put this where exactly? (sorry)

Lynne
01-05-2010, 09:07 PM
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?

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
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
-.- 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
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:
If you click on the prefix, then the forumdisplay will only show threads with that prefix in that forum.

COL NIL SATIS
02-07-2010, 04:30 PM
Thanks for this Lynne..installed ...how do we get the NEW 1 or NEW 2 to show??? im very new on prefixes etc ....its probably very straight forward i know ..any help appreciated

Lynne
02-07-2010, 06:01 PM
NEW 1 and NEW 2 are just my prefixes. So, if you have prefixes set up for your forum, then they will show - Forums & Moderators > Thread Prefixes

COL NIL SATIS
02-07-2010, 06:28 PM
Ok Lynne thank you!!! :D

War.Frog
02-10-2010, 07:08 PM
Fantastic mod Lynne! Thanks!

TimberFloorAu
02-10-2010, 09:08 PM
From my description:

Yeah gottya,

Sorry I was looking at implementing a ajax dropdown of sitewide prefixes for users to narrow down threads with particular prefixes as an addition to this.

MXjunk127
02-20-2010, 02:56 AM
Great! I've been waiting for something like this, Not smart enough to code it myself...

Is it possible to filter tag results from outside the forum?

Say I am on my forum home, could I, instead of having VB subforms, have links to the filtersed tags?

Essentially making each tag its own subforum? While having all the treads with diffrent tags still remain in that one original forum?

Does that make any sense?

Wseries
02-23-2010, 03:33 PM
This works great, thank you. However, I've been trying to figure out a way to prevent thread prefixes inheriting my linktextDecoration StyleVar setting and not become underlined when this mod is enabled. Can anyone help?

Lynne
02-23-2010, 08:27 PM
Add a class to your prefixes and define the class to have text-decoration:none. Or, just do it inline.

Wseries
02-23-2010, 08:57 PM
Hi Lynne,

The css was the obvious part. I did experiment a bit using Firebug but I'm just not to sure where to add a class to my prefixes in vBulletin 4. Would really appreciate your advice on this?

Lynne
02-23-2010, 10:10 PM
I think the easiest thing to do would be modify the plugin for this mod and in both <a> tags, add in:
style="text-decoration:none;"
I think that should work. (In fact, I just tested it and it does work.)

Wseries
02-23-2010, 10:34 PM
That indeed works a treat! Awesome. Thank you very much Lynne. :)

HolyKiller
02-24-2010, 10:52 PM
love it! thx !

fourat
03-15-2010, 02:36 AM
Is there a mod like this for 3.8. ?

oldford
03-15-2010, 04:17 AM
Is there a mod like this for 3.8. ?
Threadbit Prefix Clickable (https://vborg.vbsupport.ru/showthread.php?t=230467)

gorman
03-17-2010, 03:00 PM
Would it be possible for this to work as the prefix navigation works here on vb.org?

When one clicks on a prefix, the only way to go back to the unfiltered view is to reclick the prefix or abandon the forum and go elsewhere. Here on vB.org you have the prefix becoming a clickable entry when reading a thread, and the prefix becoming the title of the "forum" when reading all threads with a certain prefix.

I'm referring to the navbit portion, to be clearer.

gorman
03-24-2010, 01:33 PM
Anyone? :)

Lynne
03-24-2010, 07:10 PM
Would it be possible to do that? Sure. Feel free to modify this code for use on your site however you want.

gorman
03-25-2010, 04:35 PM
Would it be possible to do that? Sure. Feel free to modify this code for use on your site however you want.
Well, it was more of a request. Just to understand whether it's something we can expect from the developer or if it's too complicated. In case the original developer could use a small donation, please, do PM me.

Lynne
03-26-2010, 02:26 AM
Unfortunately, I have absolutely no time right now to make any changes to my mods. I don't imagine it would be hard to add the prefix into the breadcrumbs since it is passed in the url.

TCB
03-30-2010, 08:47 PM
Works perfectly, thanks :D

CvP
04-10-2010, 06:17 AM
gonna install it on 4.0.2pl4
I have images as thread prefix. hope it will work :)

CvP
04-10-2010, 07:30 AM
works fine :)

tidus78
04-10-2010, 03:23 PM
Don't work for me.....only install xmlIs there a control panel for the product?

CvP
04-10-2010, 05:15 PM
Don't work for me.....only install xmlIs there a control panel for the product?
no. there is no acp options for this.

import XML. done!

tidus78
04-10-2010, 05:29 PM
mmm strange...perhaps conflict with other product?

P.S. Exscuse me for the errors...i'm italian i don't write very well in english.....

Lynne
04-10-2010, 11:39 PM
Are you using prefix rich prefixes? If you only entered a Plain Text prefix, then this won't work.

baghdad4ever
04-28-2010, 08:45 PM
thanks

Xencored
05-06-2010, 02:32 PM
Thanks alot lynne <3

gorman
05-07-2010, 11:57 AM
Would it be possible for this to work as the prefix navigation works here on vb.org?

When one clicks on a prefix, the only way to go back to the unfiltered view is to reclick the prefix or abandon the forum and go elsewhere. Here on vB.org you have the prefix becoming a clickable entry when reading a thread, and the prefix becoming the title of the "forum" when reading all threads with a certain prefix.

I'm referring to the navbit portion, to be clearer.Having asked two months ago, and back then the developer didn't have the time to implement it, I humbly ask again.

A PayPal donation would be possible, as I'd really like for this to happen.

CvP
05-07-2010, 03:59 PM
Having asked two months ago, and back then the developer didn't have the time to implement it, I humbly ask again.

A PayPal donation would be possible, as I'd really like for this to happen.
this would require significant about of coding.
If you noticed how this product works, you'd have known that it is an extremely "light" product.
It just adds a built-in search query to an element. that's it.

gorman
05-08-2010, 09:45 AM
CvP, what I ask is already working here on vbulletin.org. Would that be so hard to port to 4.x?

Lynne
05-08-2010, 02:59 PM
CvP, what I ask is already working here on vbulletin.org. Would that be so hard to port to 4.x?
If you look at what they do here, these 'prefixes' are actually different forums. This 'prefix', Forum Enhancement forums, is forumid 245. So, they are just using the regular navbits to show the 'prefix'. This mod is using real prefixes, which do not link to a forum.

CvP
05-08-2010, 05:08 PM
CvP, what I ask is already working here on vbulletin.org. Would that be so hard to port to 4.x?
afaik, they are working on switching vb.org to 4.x.
when that is done, they might consider releasing some of the "in-house" addons.

CvP
07-18-2010, 05:03 AM
Hey Lynne.
I like to have as few forums as possible. On the other hand, merging forums such as "Movies", "Musics" etc in to one "Entertainment" forum discourages some people from posting.

With the help of prefixes (and this mod of yours), this can be solved. I have just one problem.
When filtering a certain prefix, I want the "new thread" button to open a new thread form where the certain prefix is already selected. kinda like a pseudo forum.

so if you are viewing only movie prefix in a forum, clicking the new thread button will pre-select movie prefix.

Is there any easy way to accomplish this?

Lynne
07-18-2010, 02:36 PM
I would guess you could pass the prefixid in the New Thread URL and then use it to set the prefixid for the thread. I can't test that our however since I'm stuck on dialup.

CvP
07-18-2010, 05:25 PM
I would guess you could pass the prefixid in the New Thread URL and then use it to set the prefixid for the thread. I can't test that our however since I'm stuck on dialup.
Thanks for the suggestion Lynne.
I tried it (and some other var names). nothing works.

I took a look at the newthread.php and (to me) it seems there is no code to parse prefix from url.

Please check it out when you have a better net.

happy vacation :)

CvP
07-26-2010, 12:58 PM
Hi Lynne. If you have some free time, please take a look now :)

Lynne
07-26-2010, 02:12 PM
Hi Lynne. If you have some free time, please take a look now :)
You're right. I just did a quick test and passed the prefixid and it didn't get picked up on the newthread page. So, it seems you may have to write a plugin to just grab the prefixid (probably newthread_form_start should be OK).

Martini-man
10-04-2010, 10:24 PM
One of the most helpful mods around, and yet, simplest.

It never fails to amaze me how vB has such potential, but is wasted because the developers have such limited vision of whats useful in a forum (again, this is something that happens in all forums).

Thank you Lynne for this wonderful mod.

pizad_sura
10-05-2010, 07:30 AM
Good Job !!

Thank you Lynne

peugeot405
11-04-2010, 08:12 PM
very nice mod.
thx for that.

one question:
Would it be possible to make the sticky, moved, moerated and poll also selectable.

Lynne
11-04-2010, 09:37 PM
very nice mod.
thx for that.

one question:
Would it be possible to make the sticky, moved, moerated and poll also selectable.
I'm sure you could, but not using this mod. You would just edit the phrase for those words and make them clickable. I'm not sure what the URL would be though since I've never looked into it.

NovoCiv
01-09-2011, 08:20 AM
How much work would it take to make a similar product that allows you to filter a user's posts in a thread?

In earlier versions of vBulletin you could click the number of replies in threadlist, then click on the number next to a name to search posts by that user within the thread. This seems to be broken as of 4.0 (I've tried on a 4.0.5 forum and a 4.1.0 forum).

The basic principal you have here would work great. Click on a word "Filter" next to the username in a post, and have it only show posts in that thread by the specified user.

I think a great deal of people would be very happy if you could make this.

Lynne
01-09-2011, 05:44 PM
In earlier versions of vBulletin you could click the number of replies in threadlist, then click on the number next to a name to search posts by that user within the thread. This seems to be broken as of 4.0 (I've tried on a 4.0.5 forum and a 4.1.0 forum).
This works just fine on my 4.1.0 test forum. Make sure you click the number, not the name. The name takes you to the profile, the number shows you the posts.

NovoCiv
01-09-2011, 08:50 PM
This works just fine on my 4.1.0 test forum. Make sure you click the number, not the name. The name takes you to the profile, the number shows you the posts.

http://www.screencast-o-matic.com/watch/cXVQ3JXPH

Ontop of that, Search strips BBcode, it shortens messages, and it italicizes everything in a strange format.

The Filter commands would be a very simple one-click way to have all of the posts not by the specified user invisible. The posts by the specified user would keep all formatting.

Lynne
01-09-2011, 10:12 PM
http://www.screencast-o-matic.com/watch/cXVQ3JXPH

Ontop of that, Search strips BBcode, it shortens messages, and it italicizes everything in a strange format.

The Filter commands would be a very simple one-click way to have all of the posts not by the specified user invisible. The posts by the specified user would keep all formatting.
Did you reindex your site after the upgrade? If you click on that particular users profile and click to View All Posts, do you get a list then? If not, then it sounds like his posts weren't indexed. Actually, are posts in that forum indexed or do you have it turned off in that forum?

NovoCiv
01-09-2011, 10:30 PM
That one is not my forum. My forum has problems because when I installed MediaWiki integration it added a "multi-content" search type.

But as I said the ability to filter as your mod seems to do would be better than working search anyway.

Edit: Out of curiosity, how do I check to see if my forum is indexing posts, and how do I enable that setting?

Lynne
01-10-2011, 03:19 AM
That one is not my forum. My forum has problems because when I installed MediaWiki integration it added a "multi-content" search type.

But as I said the ability to filter as your mod seems to do would be better than working search anyway.

Edit: Out of curiosity, how do I check to see if my forum is indexing posts, and how do I enable that setting?
You could look to make sure your searchcore table is continually getting larger (normally would have more rows than the post table). You would know if you indexed it in the first place after the upgrade because that step takes a while. You would have indexing turned on for the forum (forum manager) and then it should be an automated task unless you have a large forum and turned off the setting and are having it done by a Scheduled Task (but you would know if you did that).

NovoCiv
01-10-2011, 11:18 PM
Ok Thanks. I never upgraded, but I found the options and reindexed just to be safe.

Now, is it possible to have this filter effect on posts like I'm asking?
Search strips BBcode, it shortens messages, and it italicizes everything in a strange format.

The Filter commands would be a very simple one-click way to have all of the posts not by the specified user invisible. The posts by the specified user would keep all formatting.
Edit/Delete Message

Lynne
01-11-2011, 03:38 AM
I'm sure a modification to filter the thread like you want would be pretty easy. But to have it formatted how you want would be more tricky and require a few more plugins/modifications to the code.

imedic
01-25-2011, 09:44 PM
Installed, nominated, great mod. Should be standard in VB ... Thanks man :)
I think I will use some color coding for prefixes so You might get the idea that thery are clickable.
I have never know that clicking on number of replies it gives you a summary of who posted :)

Magnumutz
02-14-2011, 04:42 PM
Hah, looks pretty much like my old template mod: https://vborg.vbsupport.ru/showthread.php?t=169832 :)

Lynne
02-14-2011, 10:32 PM
Hah, looks pretty much like my old template mod: https://vborg.vbsupport.ru/showthread.php?t=169832 :)
It does the same thing only without doing any template edit.

emath
02-15-2011, 08:56 AM
works for vb4.1.1?

Schoelle
02-15-2011, 12:03 PM
works for vb4.1.1?

Installed today on 4.1.1 - works!

Fantastic mod! Thank you!

3amalah
02-15-2011, 01:20 PM
Amazing As Usual Lynne :)

Thanks Installed In 4 Forums :) Can I Click Install 4 Times Hehe

COL NIL SATIS
02-15-2011, 05:11 PM
Awesome work as always Lynne,thanks

cravendale
04-03-2011, 05:15 PM
Hiya,

Nice modification.
I have a question about the clickable prefixes. I want to change the colour of them as a global change. I've learned I can change each prefix colour in the prefix manager, but I have allot of prefixes I need to change so that they are not the same colour as the topic titles.
If there is a easy way to globally change the prefix colour that would be great as at the moment they are the same colour as the live link (topic colour).

Can I do this via the additional css or some other way?

thanks

Lestat_
04-04-2011, 06:53 AM
this is excellent ! thank you

Lynne
04-04-2011, 04:41 PM
Hiya,

Nice modification.
I have a question about the clickable prefixes. I want to change the colour of them as a global change. I've learned I can change each prefix colour in the prefix manager, but I have allot of prefixes I need to change so that they are not the same colour as the topic titles.
If there is a easy way to globally change the prefix colour that would be great as at the moment they are the same colour as the live link (topic colour).

Can I do this via the additional css or some other way?

thanks
Have you tried adding something like this to additional.css:
.prefix a {color: red;}
If that doesn't work, then please link to the page on your site so I can see your CSS.

Lestat_
04-04-2011, 05:42 PM
Have you tried adding something like this to additional.css:
.prefix a {color: red;}
If that doesn't work, then please link to the page on your site so I can see your CSS.

I had the same challenge and fixed it in one sql update query in php myadmin - i used bold black format :

update vb_phrase set text=concat('<span style="color: black;"><b>',text,'</b></span>') where left(varname,6)='prefix' and right(varname,4)='rich'

cravendale
04-05-2011, 09:38 PM
Have you tried adding something like this to additional.css:
.prefix a {color: red;}
If that doesn't work, then please link to the page on your site so I can see your CSS.


Hi,

Adding...
.prefix a {color: red;}

to the additional.css worked.

thanks lynne :)

HolyKiller
04-10-2011, 04:21 PM
vB 4.1.3 - works flawlessly

Rebecca217
04-14-2011, 05:26 PM
Works perfectly! Thanks so much! :)

reddyink
05-25-2011, 01:43 AM
Excellent MOD!. Is it possible to make Prefixes part of the sidebar column where it lists all the prefixes of the forum and user clicks on a prefix in sidebar, threads w/ prefix show up on forumdisplay.
Thank you Lynne,

imported_dfmafia
10-21-2011, 12:56 AM
how do I make them clickable from forum home, and categories. they are only clickable when browsing that sub-forum

UPDATE:
it works on all subforums but not on the forum home. unable to click on them. would be nice if you could and it would send you to the subforum or foum it is posted under with the search results

example:
Make (Pre-Fix can not be clicked)
-------Model (Pre-Fix is clickable)
--------------Trim Level (Pre-Fix is clickable)

Baja
12-22-2011, 08:24 AM
This is a great mod that was working beautifully for me until recently. I just upgraded to 4.1.8 and suspect that might be the problem.

Can anyone else confirm if this is working in 4.1.8?

Lynne
12-22-2011, 04:55 PM
This is a great mod that was working beautifully for me until recently. I just upgraded to 4.1.8 and suspect that might be the problem.

Can anyone else confirm if this is working in 4.1.8?
I can confirm it works fine on my 4.1.9 site.

Luca_ITA
12-23-2011, 05:53 PM
As above, working fine on 4.1.9.
Thank you for this mod!!

Allego la traduzione Italiana (italian translate)

Lynne
12-24-2011, 04:23 PM
As above, working fine on 4.1.9.
Thank you for this mod!!

Allego la traduzione Italiana (italian translate)
Thank you. I have added this to the first post.

Baja
12-28-2011, 08:10 AM
Yup, it turns out another admin accidentally deleted the prefixes.

It's working fine in 4.1.8 too.

Thanks for the replies!

Athena1984
01-03-2012, 07:07 PM
This is very useful and like another user said, should be default! Thanks so much for making it. :)

sportsfroma2
03-06-2012, 03:54 AM
my prefixes are still clickable in 4.1.11, lol... great mod, very low maintenance :)


I keep forgetting this isn't default vB behavior

Nirjonadda
03-06-2012, 07:59 AM
Installed working on 4.1.10

Skierpetros
03-06-2012, 09:13 AM
Invalid File it says when i try to upload the .xml

On 4.1.10

Beckenbauer
04-10-2012, 06:27 PM
I love this mod. Thanks!
Is it possible to remove the Filter?

Or only with the return button?

Lynne
04-10-2012, 11:18 PM
I don't know what you mean.

ywwz
04-12-2012, 11:48 AM
working on 4.1.11

Lynne
04-12-2012, 04:53 PM
working on 4.1.11
Thank you for posting this. It really helps to have members post about whether the mod is working in newer versions. :)

addamroy
04-12-2012, 07:42 PM
Great mod Lynne I'm pretty sure I have it marked as installed (it's installed on my forum)

I have one issue i'm not sure if there's a really simple workaround or not, but is there any way to filter threads by more than one prefix at a time?

Example,
http://www.yourforumhere.com/forumdisplay.php/398-forum-name-here?prefixid=prefix_id_1
will show all threads with prefix id prefix_id_1

But I need a way to show threads with more than one prefix at a time.

Like if below was possible,
http://www.yourforumhere.com/forumdisplay.php/398-forum-name-here?prefixid=prefix_id_1&prefix_id_2&prefix_id_3

would show all threads with prefix id prefix_id_1, prefix_id_2, and prefix_id_3 at the same time.

Essentially I've got a forum with 50 different category options, and 6 sub-category options for each of those and I have a prefix for each one individually.

Example, I have my prefixes set up pretty much like this, each line is 1 prefix

category1 - subcategory1
category1 - subcategory2
category1 - subcategory3
category1 - subcategory4
category1 - subcategory5
category1 - subcategory6

category2 - subcategory1
category2 - subcategory2
category2 - subcategory3
category2 - subcategory4
category2 - subcategory5
category2 - subcategory6

etc etc. The above example is a total of 12 prefixes.

So in my case, it would be awesome to be able to show all threads from any of the category 1 prefixes at once.

Is this possible at all, possibly with some minor adjustments? This would be hugely beneficial.

For me personally i don't even care that the prefixes are clickable, but it provides that static URL you can use. I use it to essentially make a table of contents using all the URLs for each prefix. Essentially I want to put a link in this table of contents that goes to a page showing threads with multiple prefixes at a time.

Kerdh
04-13-2012, 06:14 PM
Great job, thanks! :)

WheelList
04-15-2012, 12:24 AM
Installed on 4.1.11 and working great.

GameOverViper
04-15-2012, 01:23 AM
Never seen this until now. Just installed. Will help us out a LOT with application forums and other stuff.

Skierpetros
06-13-2012, 08:01 PM
Installed! Works on 4.2.0 Patch level 1

ywwz
07-19-2012, 08:39 PM
works on 4.2.0

nesttle
07-20-2012, 01:52 PM
Awesome script, this must be for default on vB!

I was looking to do the same with thread icons, but not working, maybe someone knows one plugin for make thread icons sortable?

Thanks and good job!

imported_dfmafia
07-21-2012, 08:20 PM
works great on vB 4.2.0 PL 2
one of my favs!!!

SpawnedX
07-22-2012, 12:12 AM
Quick question, how can I change the help text when you highlight the prefix?

Lynne
07-22-2012, 01:45 AM
It's just a phrase, so do a Search in Phrases for it and then change it.

sub_ubi
08-02-2012, 01:58 AM
Bug in vbulletin4.2:

Using mobile style, users are unable to click to read threads with a prefix. Clicking the title of a thread only filters for the prefix.

Is there a way to disable this on mobile?

Lynne
08-02-2012, 02:08 PM
Bug in vbulletin4.2:

Using mobile style, users are unable to click to read threads with a prefix. Clicking the title of a thread only filters for the prefix.

Is there a way to disable this on mobile?
Try wrapping the plugin code with a condition (or just add it to the existing condition in the plugin):
if (!VB_API) {
code here
}

zascok
08-04-2012, 02:47 PM
Lynne, you are the best of the bests https://vborg.vbsupport.ru/external/2012/08/28.gif

nyenius
08-13-2012, 04:50 AM
great mods, thanks! :D

RedFoxy
08-13-2012, 10:33 PM
After the upgrade to lastes vbulletin, the prefix in search result and forum index are not clickable anymore... any suggest?

Zarhym
08-14-2012, 03:24 AM
Great mod, thanks!

Lynne
08-14-2012, 03:53 PM
After the upgrade to lastes vbulletin, the prefix in search result and forum index are not clickable anymore... any suggest?
They have always only been clickable on the forumdisplay page.

sticky
08-14-2012, 09:55 PM
How do you change the color of prefixes?

Lynne
08-15-2012, 01:23 AM
How do you change the color of prefixes?
That is done when you create/edit the prefix - it isn't something this mod does.

RedFoxy
08-15-2012, 09:47 AM
How do you change the color of prefixes?

edit prefix and add html code in the prefix :P

RedFoxy
08-15-2012, 09:48 AM
They have always only been clickable on the forumdisplay page.

I can't, asu you can test here: http://www.softairmania.it/forum.php

Lynne
08-15-2012, 04:06 PM
I can't, asu you can test here: http://www.softairmania.it/forum.php
That is a forum.php page. As I said, it only works on the forumdisplay.php pages.

RedFoxy
08-18-2012, 11:16 PM
That is a forum.php page. As I said, it only works on the forumdisplay.php pages.

whops :3

There is a way to have it on search result?

Lynne
08-18-2012, 11:43 PM
whops :3

There is a way to have it on search result?
You would probably need to create a new plugin to do that using one of the search_* hook locations.

zascok
09-07-2012, 08:08 AM
Hi Lynne, sorry to bother you. But the idea comes from a usage of you plugin.

Any chance, that you will be interested to create a plugin that removes any prefix from closed threads if any?

Lynne
09-07-2012, 03:25 PM
Hi Lynne, sorry to bother you. But the idea comes from a usage of you plugin.

Any chance, that you will be interested to create a plugin that removes any prefix from closed threads if any?
I am not modifying this plugin, but someone else is welcome to modify and release it.

goldoff
09-16-2012, 08:51 PM
Installed and working fine, thanks.
I also translated it into Spanish. If someone is interested in it just let me know.

SpikedRocker
11-13-2012, 05:31 PM
I was wondering if it was possible to have a way to say have a drop down or legend on the forum section page that would do this, incase a prefix that i wanted to sort by was not on the first page?

It would be pretty handy to check things that we may have forgotten to look at.

Lynne
11-13-2012, 09:41 PM
I was wondering if it was possible to have a way to say have a drop down or legend on the forum section page that would do this, incase a prefix that i wanted to sort by was not on the first page?

It would be pretty handy to check things that we may have forgotten to look at.
Of course there is a way to do that, but it isn't part of this modification. You would need to coe something like that or try a search and see if someone else has coded it.

Skyrider
12-17-2012, 01:29 PM
Temp disabled. There's a bug with this plugin on the default vB4 mobile theme, when clicking on threads it selects the pre-fix instead of which shows the entire prefix thread list rather than going to the thread that you selected. I've tested it and doesn't matter where I click, it shows the prefix list.

Lynne
12-17-2012, 04:29 PM
You could just disable it in the mobile style by adding another condition to the condition in the plugin:

AND $vbulletin->options['styleid'] != 2

Skyrider
12-18-2012, 07:44 AM
You could just disable it in the mobile style by adding another condition to the condition in the plugin:

AND $vbulletin->options['styleid'] != 2
Thanks, though I can't get it to work with the code. For some odd reason it keeps working on both styles. Perhaps you can add something within the plugin as well to fix this issue? After all, more people are installing this of which will break the mobile style seeing no one can click on threads with prefixes on them.

Lynne
12-18-2012, 04:50 PM
Sorry, use $vbulletin->userinfo['styleid'] and then change 2 to your mobile styleid.

ClanScene
01-12-2013, 09:31 AM
Hi, am a bit confused is this mod in any way like the one of NeoSeeker: http://www.neoseeker.com/forums/57902

MrD
01-12-2013, 11:26 AM
Hi,
Yes it is :)
If you click on an Prefix, the Forum will sort all Threads with your selected Prefix

ClanScene
01-12-2013, 12:22 PM
Super thanks!

ps Works on 4.2.0 I hope :)

MattGarner
01-15-2013, 12:23 PM
Sorry, use $vbulletin->userinfo['styleid'] and then change 2 to your mobile styleid.

Can you tell me where this is suppose to be entered? Bit lost on how to do it.

Lynne
01-15-2013, 07:06 PM
Can you tell me where this is suppose to be entered? Bit lost on how to do it.
You need to modify the condition in the plugin. There is only one plugin in this modification (called Make Prefix Clickable).

yjeanrenaud
03-04-2013, 08:07 PM
here you got it in German. it's a great mod. simple, easy to use. perfect. I'd love to select which usergroups to use it, but for now it's great.

Lynne
03-04-2013, 08:35 PM
here you got it in German. it's a great mod. simple, easy to use. perfect. I'd love to select which usergroups to use it, but for now it's great.
Thank you. I've added the translation to the first post so it is easier for users to find it. :)

eTiKeT?
03-05-2013, 08:14 PM
Thank you very much needed ;)

- İNSTALLED -

Turkish version of the XML :)

Lynne
03-05-2013, 09:33 PM
Thank you very much needed ;)

- İNSTALLED -

Turkish version of the XML :)
Thank you! I added that to the first post also.

RichieBoy67
03-05-2013, 10:56 PM
Great work as always Lynne! I have a client that will just love this!

Thanks!

flash84
04-04-2013, 10:01 AM
Temp disabled. There's a bug with this plugin on the default vB4 mobile theme, when clicking on threads it selects the pre-fix instead of which shows the entire prefix thread list rather than going to the thread that you selected. I've tested it and doesn't matter where I click, it shows the prefix list.

I had the same problem on default mobile style. The user has the potential to get stuck in a never ending loop of filtering by prefix and then listing by all threads.

To fix go to AdminCP > Plugin Manager > Make Prefix Clickable > [Edit]

Search for this line:
if ($thread['prefixid'] AND $thread['prefix_rich'] AND THIS_SCRIPT=='forumdisplay')

And replace with:
if ($thread['prefixid'] AND $thread['prefix_rich'] AND THIS_SCRIPT=='forumdisplay' AND $vbulletin->userinfo['styleid'] != 4)

*Change 4 to the number of your default mobile theme to disable the plugin on the mobile theme.

Awesome plugin by the way Lynne.

Morrus
06-24-2013, 11:25 AM
One of the most useful mods around!

Here's a question to any erstwhile coders here: what would it take to add the filtered prefix name to the page title when filtered?

Toorak Times
06-24-2013, 04:22 PM
Thanks Lynne, we been building a Directory using the prefixes and this is just great for us.

http://www.tooraktimes.com.au/forumdisplay.php/231-City-Style-Guide-Business-Directory

We are trying to move the Search Block below the posts on top as we speak.

SWFans.net
07-03-2013, 09:31 PM
I wonder what it would take to modify this to work the same way but with Post Icons instead of Prefixes? I tried doing so myself with no success.

Muhammad Rahman
07-27-2013, 10:44 PM
work fine on my forum .. vB 4.2.1 ,,

The_Hawk
01-10-2014, 03:52 AM
Installed and working nicely for me... although this isn't what I was originally looking for (and still am).

I'm looking for something that does the opposite, ie allows you to click a button and EXCLUDE a certain prefix (with the ability to toggle on/off). Is there anyway to modify this to do that?

Wajow-community
02-03-2014, 11:33 PM
why i dont see it in admincp - option?

Lynne
02-04-2014, 12:58 AM
There is nothing to see in the admincp. It's only a product, so it only shows up in the Manage Products area.

Areku
02-13-2014, 08:21 AM
Is there any way to list all the prefixes active in certain forum near the header or toolbar area so you can click them there too in addition to each post?

poprwc
02-13-2014, 04:15 PM
How make a global prefix clickeable? not for specific forum

show
iF click To prefixid: magazine in forum 143

foro/forumdisplay.php?143&prefixid=magazine
show the prefix magazine in the forum 143

iF click To prefixid: magazine in forum 215
/foro/forumdisplay.php?215&prefixid=magazine
show the prefix magazine in the forum 215

how show all magazine prefix? whatever 143+215 in same page

insidegames
04-04-2014, 08:57 AM
Nice idea :-) But it doesn't work with our forum system -> http://www.psn-senioren.de/forum/rennspiele-7/

Lynne
04-04-2014, 05:20 PM
Probably something in your custom style or a conflict with another modification. It works just fine on my defautl 4.2.2 test forum.

jimsflies
04-05-2014, 03:10 PM
Could prefixes in the search threadbits also be made clickable? Either with this mod or a slightly different one?

HolyKiller
04-26-2014, 04:09 PM
I can confirm that the mod works fine on 4.2.2 PL1

Spangle
05-03-2014, 07:07 PM
Just want to add that as you can specify Rich Text as well as Plain Text, it's possible to use images.

I'm experimenting with icons with a height of 30px, and it looks OK.

This also adds the prefix in the last post column

abouobaide
05-10-2014, 11:32 PM
How make a global prefix clickeable? not for specific forum

show
iF click To prefixid: magazine in forum 143

foro/forumdisplay.php?143&prefixid=magazine
show the prefix magazine in the forum 143

iF click To prefixid: magazine in forum 215
/foro/forumdisplay.php?215&prefixid=magazine
show the prefix magazine in the forum 215

how show all magazine prefix? whatever 143+215 in same page

interesting ..any solution ?

Lynne
05-11-2014, 04:17 PM
You'd have to change it to a search URL, like:
search.php?do=process&contenttype=vBForum_Post&prefixchoice[]=magazine

addamroy
05-20-2014, 04:04 PM
Lynne, is there any way to display threads by MORE THAN ONE prefix at a time? Maybe via URL parameters or something...

Lynne
05-20-2014, 07:17 PM
Lynne, is there any way to display threads by MORE THAN ONE prefix at a time? Maybe via URL parameters or something...
Not that I know of, no. I think you would need to actually modify the code to be able to do that.

mykkal
05-16-2015, 02:37 AM
Hi Lynne when I install this mod on my forum it works well with the desktop theme but it interferes with the mobile theme functioning properly. If not enabled I can click on the thread and go directly to it. If the plugin is enabled clicking on the thread only reloads the page in the current view. I have tested on two separate android devices. I do not know if this happens on IOS phones but I would assume so.

I'm using vbulletin 4.2.3. I attached a screenshot.

teddyvgt
02-29-2016, 10:10 AM
wish vb5.2.x work

IggyP
07-23-2016, 04:15 PM
wish vb5.2.x work

prefixes are clickable by default in 5.x

i was wondering one thing tho....im working on a vb4 project i was considering to code the way vb5 is or if this can be made similar...

its in regards to this part of the description
If you click on the prefix, then the forumdisplay will only show threads with that prefix in that forum.

in vb5 it will give any instance of the prefix, not only for that particular channel.....is this possible?

thanks lynne :)

Lynne
07-23-2016, 06:44 PM
In vB4, the link needs to have a forum id in the URL - ie forumdisplay.php?f=12&prefixid=p_3 . If you remove the "f=12&" part of the URL, then you get an Invalid Forum error. You would need to change the link to a search - ie. search.php?do=process&contenttype=vBForum_Post&prefixchoice[]=p_3 That would give you all threads using that prefixid.

BadgerDog
07-27-2016, 01:26 PM
Thanks Lynne... :)

Installed on 4.1.3pl8 and seems to be working just fine .. :up:

Regards,
Doug

BasilFawlty
09-13-2019, 02:10 PM
Wow, I wish I'd seen this years ago. Just installed on v4.2.5 and (so far) working great.

abcde
08-26-2020, 01:32 PM
Hi Lynn,

Is there anyway that we can have the prefix table that lists all the prefix in that forum above like in the attachment ?