vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=229)
-   -   Forum Display Enhancements - Clickable, Sortable Prefixes (https://vborg.vbsupport.ru/showthread.php?t=169832)

Magnumutz 02-05-2008 10:00 PM

Clickable, Sortable Prefixes
 
Clickable, Sortable Prefixes


Please mark as "Installed" if you use this modification, thanks !



Ok guys, some of you might be wondering what this does (most of you are)... so here it is: Instead of having simple text prefixes, this template modification will allow you to click any prefix and sort them.

This is an alternative to the sorting dropdown menus that are under the Forum Display.

So here's what you gotta do.

First of all, go to your AdminCP -> Styles & Templates -> Style Manager -> Select Style -> Edit Templates -> threadbit.

Good now your editing the threadbit template.
Find:
PHP Code:

$thread[prefix_rich

And replace it with:
PHP Code:

<if condition="$thread['prefix_rich']"><a href="forumdisplay.php?$session[sessionurl]f=$thread[forumid]&amp;prefixid=$thread[prefixid]">$thread[prefix_rich]</a></if> 

All done... simple but effective :)

Demo: http://www.psp-media.nl/vraag-aanbod/

Please mark as "Installed" if you use this modification, thanks !

iogames 02-07-2008 10:57 PM

Is nice to see u making Mods :up:

eNforce 02-07-2008 11:01 PM

Thanks! Very simple, but useful mod!

Demo:
http://www.deathbridge.net/forumdisplay.php?f=5

Forum Lover 02-08-2008 12:54 AM

Quote:

Originally Posted by eNforce (Post 1438545)
Thanks! Very simple, but useful mod!

Demo:
http://www.deathbridge.net/forumdisplay.php?f=5

Still got confused mate... I don't get it. I mean what will be the action?

nothing1 02-08-2008 01:56 AM

Really nice and small mod, two thumbs up!

eNforce 02-08-2008 02:18 AM

Quote:

Originally Posted by Forum Lover (Post 1438595)
Still got confused mate... I don't get it. I mean what will be the action?

Click on one of the thread Prefix's such as "Music" or "PC" or "Other", it will take you to other threads that have the same thread Prefix's.

On normal vBulletin installation, the thread Prefix's are not linked at all :)

RvG2 02-08-2008 03:03 AM

thank you so much.... this must be by DEFAULT in vbulletin since it use prefixes already!

Magnumutz 02-08-2008 01:54 PM

Thanks for the demo eNforce.
And for the reviews... it's as simple as that :)

Forum Lover 02-08-2008 03:48 PM

Quote:

Originally Posted by eNforce (Post 1438614)
Click on one of the thread Prefix's such as "Music" or "PC" or "Other", it will take you to other threads that have the same thread Prefix's.

On normal vBulletin installation, the thread Prefix's are not linked at all :)

Thanks eNforce and agreed with RvG2.

Magnumutz 02-08-2008 03:50 PM

Then nominate it for MOTM :p
Kidding :D

punchbowl 02-08-2008 03:52 PM

Needs an 'expand' or 'show all' link when threads filtered.

Lovely work though.

Magnumutz 02-08-2008 04:23 PM

And where would that fit?
Cuz it didn't came to my mind yet.

Pottsy 02-10-2008 07:28 PM

Quote:

Originally Posted by Magnumutz (Post 1438984)
And where would that fit?
Cuz it didn't came to my mind yet.

It's going to need a tiny bit of coding, but how about if you click on a prefix in a filtered list, then it produces the unfiltered list again.

Excellent mod, BTW, thank you!

Magnumutz 02-11-2008 10:09 AM

Well, i guess i could make it show a link to show the unsorted list.

M-Tuning 02-11-2008 04:28 PM

Nice, sorry for asking, but does it work with 3.6.8?

no, just saw the code, and prefixes aren't in 3.6.8 yet.

Magnumutz 02-12-2008 03:02 AM

Nope, it doesn't :)

KURTZ 02-12-2008 04:25 PM

that's an interesting mod ... nice job Alex :)

M-Tuning 02-16-2008 03:33 PM

Quote:

Originally Posted by Magnumutz (Post 1440686)
Well, i guess i could make it show a link to show the unsorted list.

Would be nice if you want to do that :D

Pottsy 02-17-2008 06:56 PM

What's really needed is a proper little importable product that:

* Does this clickable prefix job, including the "click the prefix to return to unsorted"
* Option to put prefixes in a column
* Option to apply a format to all prefixes

Anyone up for it? :)

Magnumutz 05-19-2008 12:42 PM

Added Installation Instructions file.

M-Tuning 05-21-2008 08:08 PM

Here's a little demo for you on my site:

http://www.psp-media.nl/vraag-aanbod/

Magnumutz 05-23-2008 02:15 PM

Thanks for the demo, added.

pushedx 05-25-2008 01:15 AM

Great work! Very nice and easily added.

cavyspirit 06-03-2008 08:43 PM

Thanks! I'm really surprised this capability isn't in 3.7. I just finally installed 3.7 today and that was one of the first things I did after creating a few prefixed posts--click on one to sort/select that prefix. Nothing. OMG. Oh well. This is a major improvement.

Allan 06-07-2008 12:32 PM

Hello :)

It's possible to show all prefixes clickable same the show tags ?

DiSpy 06-15-2008 09:55 PM

Found the instructions for placing the prefixes in their own column here -> http://www.vbulletin.com/forum/showp...1&postcount=11

(in case anyone else was looking for it)

Alfa1 06-16-2008 01:31 PM

It would be nice if we would be able to add alt tags to prefixes, to describe what a prefix is about. Would be nice for SEO as well.

Magnumutz 06-17-2008 02:39 AM

Alfa, such a description would surely ask for a product or at least a plugin... something that i've yet to make.
But it's a good idea.

rapidphim 06-23-2008 01:48 PM

Thanks much... What a nice tweak!

BeerLuver 06-24-2008 02:12 AM

Very cool mod :). Thanks.

Aclikyano 06-25-2008 03:53 PM

What would it be called to have the prefix after the actual thread title?
Is there anything like this or can it be done with this hack with some modifications

Bellardia 08-08-2008 06:20 PM

You should edit your code to encode the ampersand, or else it comes up as XHTML Invalid.

<if condition="$thread['prefix_rich']"><a href="forumdisplay.php?$session[sessionurl]f=$thread[forumid]&;ampprefixid=$thread[prefixid]"> $thread[prefix_rich]</a></if>

Magnumutz 08-16-2008 07:05 PM

Thanks, i didn't gave much thought to that.

WiBu 08-17-2008 09:25 AM

Any possible way to get the prefix as a title on the page?

Something like "Viewing all threads marked Modifications" at the top of the page when viewing all threads prefixed by Modifications.

(Don't need the html, just the variable if it's at all possible).

Magnumutz 08-17-2008 11:49 AM

Of course it's possible... just that i don't know how and i'm pretty sure it would require some plugins and hooks.

FleaBag 08-19-2008 10:41 AM

Real nice hack! Only thing I see 'missing' so to speak, is a way to remove the prefix filter by clicking a link. Users might get confused and not realise they need to re-browse to the forum to remove the prefix filter.

RCWong 08-20-2008 10:17 PM

Also with the update to the code, seems its not working anymore, when I click the Prefix, it doesn't do anything. Probably something to do with vbseo?

The link location gives me this when I hover over the Prefix:
http://xxxx.com/f18/?;ampprefixid=Prefix

DjEddie 08-30-2008 09:57 PM

Quote:

Originally Posted by RCWong (Post 1603344)
Also with the update to the code, seems its not working anymore, when I click the Prefix, it doesn't do anything. Probably something to do with vbseo?

The link location gives me this when I hover over the Prefix:
http://xxxx.com/f18/?;ampprefixid=Prefix

I have the same problem, and similar link to what you have with the vbseo, is there a way to fix this?

Thanks :)

f4vn 09-01-2008 06:35 AM

I have the same problem :(

Magnumutz 09-02-2008 11:52 AM

Try using this guys:
PHP Code:

<if condition="$thread['prefix_rich']"><a href="forumdisplay.php?$session[sessionurl]f=$thread[forumid]?prefixid=$thread[prefixid]">$thread[prefix_rich]</a></if> 



All times are GMT. The time now is 10:13 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.01344 seconds
  • Memory Usage 1,801KB
  • 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
  • (3)bbcode_php_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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