vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Filter Threads By Post Icon (https://vborg.vbsupport.ru/showthread.php?t=98978)

Wired1 10-21-2005 10:00 PM

Filter Threads By Post Icon
 
Yep, tested and works w/ 3.6.0, no code changes at all. You can find the 3.6.x thread for this hack here.

This is the 3.5.x version of JMPZ's hack by the same name. (linkage)

This hack allows you to click on a post icon, and it will show only the threads with this particular post icon. Once this happens an unfilter button will appear, allowing the user to once again view all threads.

As for WHY someone would want this, here's an answer to that question:

Some forums use the forum icons to convey if a thread has been sufficiently answered or not, or to convey some other meaning. If a poster wants to look for unanswered threads, they could sort by the icon used for the thread.

Think of this as a poor man's thread prefix hack :)

# of php page edits: 1
# of template edits: 2

Should take less than 5 min to install.

Wired1 10-21-2005 10:52 PM

Saving for future stuff.

Wasim 10-22-2005 03:14 AM

Thanks for fulfulling my request. :)

Wasim 10-22-2005 03:24 AM

hmmm.. .seems like im getting the following error when i edit the last template:

Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /var/www/html/forums/includes/adminfunctions_template.php(3519) : eval()'d code on line 69

Wired1 10-22-2005 04:24 AM

Remove that one, go 15 lines down, look for:

Code:

<tr>
        <if condition="$show['threadicons']">

That's the right one. Can't find out what executes the first code, but that should do it.

Wasim 10-22-2005 04:47 AM

Quote:

Originally Posted by Wired1
Remove that one, go 15 lines down, look for:

Code:

<tr>
        <if condition="$show['threadicons']">

That's the right one. Can't find out what executes the first code, but that should do it.

thanks!

Wasim 10-22-2005 04:56 AM

Just finished installing. WORKS PERFECTLY!

Wasim 10-22-2005 06:18 AM

nm... :)

Snake 10-22-2005 11:45 AM

Thanks, this is great...

Wired1 10-23-2005 02:32 AM

It worked? Sweet :) Updated instruction file.

mindfrost82 10-23-2005 04:25 PM

I can't seem to find:

Code:

$sorturl = 'forumdisplay.php?' . $vbulletin->session->vars['sessionurl'] . "f=$forumid&amp;daysprune=$daysprune";
Its the last file edit in forumdisplay.php

EDIT: Even without that last modification, it still seems to work fine.

Wired1 10-23-2005 07:10 PM

Quote:

Originally Posted by mindfrost82
I can't seem to find:

Code:

$sorturl = 'forumdisplay.php?' . $vbulletin->session->vars['sessionurl'] . "f=$forumid&amp;daysprune=$daysprune";
Its the last file edit in forumdisplay.php

EDIT: Even without that last modification, it still seems to work fine.

Line 866 on a non-edited version of forumdisplay.php (v3.5.0)

It's a safety precaution more than anything.

ViViD 10-26-2005 08:24 AM

Hi,
There was a hack for showing first post in all pages . Can it be merged with it so it happens when user choose a special icon ? :) or a new hack though .

Wired1 10-26-2005 12:48 PM

Quote:

Originally Posted by ViViD
Hi,
There was a hack for showing first post in all pages . Can it be merged with it so it happens when user choose a special icon ? :) or a new hack though .

Got a link to that hack? Not completely sure what you mean.

ViViD 10-27-2005 04:41 PM

This is the first post hack :

https://vborg.vbsupport.ru/showthrea...highlight=page

Wired1 11-29-2005 04:44 PM

Knew I forgot something :)

can't see how the 2 hacks relate to each other. Do you mean if user selects post icon X, then the other hack is activated? If so, that would be something to ask the creator of that hack, as it has nothing to do with this one.

Ninosport 02-15-2006 03:48 AM

I installed this hack and it's working fine for the most part. However, I'm getting some unexpected behavior when filtering certain icons. When I click to filter the blue "?" icon it also includes some polls and some threads that have been moved to another forum.

Click here to see on my forum:
http://www.mustangexhaust.com/forums...splay.php?f=19

Also, when I click on the icon that all threads default to (the white page icon), no filtering takes place. Is the hack suppose to behave this way?

-Nino

Wired1 03-28-2006 11:23 PM

Sorry about that, didn't get the notification. IIRC, there's no actual icon for default, hence it can't search for anything. As for the ? icon, worked for me.

noonespecial 04-09-2006 08:16 PM

Think there would be anyway to use this on external.php .. I want to allow sorting of posts via the RSS feed as well. Any help would be amazing.

Wired1 04-18-2006 10:21 PM

Do you mean when someone reads the feed on their end they can sort it? IIRC, those icons donn't come through the feed, and their parser would have to be able to sort them even if they did.

noonespecial 04-19-2006 05:03 AM

Basically, I just wanted a feed I could offer for each picon.

so picon1 had a feed, picon2 had a different feed that showed just threads in one forum with that icon.

The application is my news forum uses icons to sort bands - if i had an rss feed for each icon people could subscribe to news for each band.

Wired1 04-19-2006 12:01 PM

Gotcha. That'd be a completely different hack then. Depending on how the news is seen, you could put each type of news in its own sub-forum and then use vB's normal feed / forum to accomplish the same thing.

Joey805 05-15-2006 10:20 PM

Is there a way with this hack to just put a link the the navbar to display threads with a certain post icon (example, my news items) ?

I don't need all the extra stuff that this has. I would just like my users to be able to get a list of all threads marked as news.

Thanks,

Joey

PennylessZ28 05-16-2006 03:57 AM

You know this is cool, but here is my question. I have seen some other sites, like http://forums.somethingawful.com/ that have individual post icons per forum.

I'd be very interested in that too.

Wired1 05-17-2006 02:01 AM

Quote:

Originally Posted by Joey805
I don't need all the extra stuff that this has. I would just like my users to be able to get a list of all threads marked as news.

I'm assuming they're all in the same forum? If so, you can VERY easily make a link for new posts only from a certain forum, or all posts except from certain forums, or a combination.

Wired1 05-17-2006 02:03 AM

Quote:

Originally Posted by HR3rdGen
You know this is cool, but here is my question. I have seen some other sites, like http://forums.somethingawful.com/ that have individual post icons per forum.

I'd be very interested in that too.

SA's running a VERY old / outdated vB version. WHY I HAVE NO IDEA.

It's a different hack entirely, I'd have to look into the code to see how it's done. May want to put a request in the request area, as I wouldn't be surprised if someone could do it quicker than me :)

Joey805 05-17-2006 03:04 AM

The posts are all in different forums and they are marked as news items based on their post icon.

Benj 08-06-2006 01:20 PM

hey will this work with 3.6 anyway to do this also without file edits ? plugin ?

Wired1 08-08-2006 12:15 PM

Tested and works w/ 3.6.0, no code changes at all. You can find the 3.6.x thread for this hack here.

RobParker 12-30-2006 02:40 PM

Quote:

Originally Posted by PennylessZ28 (Post 976951)
You know this is cool, but here is my question. I have seen some other sites, like http://forums.somethingawful.com/ that have individual post icons per forum.

I'd be very interested in that too.

It would be very useful if someone could get somewhere with this.

We use one forum on our site for news with VBA and hence making it have different post icons to our normal forums would be great.

nicolerork 04-14-2007 05:41 AM

3.6 ?


All times are GMT. The time now is 04:46 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.01221 seconds
  • Memory Usage 1,779KB
  • 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_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (31)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete