vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Sort thread by Post Icon (https://vborg.vbsupport.ru/showthread.php?t=63652)

Michael Morris 04-09-2004 12:34 AM

Sort thread by Post Icon
 
Is there a hack that will add "post icons" to the list of criteria you can sort threads by. (Currently threads can be sorted by title, last post date, etc).

noonespecial 04-10-2004 07:40 AM

Quote:

Originally Posted by Michael_Morris
Is there a hack that will add "post icons" to the list of criteria you can sort threads by. (Currently threads can be sorted by title, last post date, etc).

I REALLY need this.

Michael Morris 04-14-2004 07:31 AM

So do I ***bbbump***

Zachery 04-14-2004 07:41 AM

You would need to assign the posticons some sort of numeric or alphbetical value that would determin the stort.

noonespecial 04-14-2004 09:22 AM

Quote:

Originally Posted by Zachery
You would need to assign the posticons some sort of numeric or alphbetical value that would determin the stort.

tried that .. couldnt get it working.

noonespecial 04-29-2004 03:12 PM

Quote:

Originally Posted by noonespecial
tried that .. couldnt get it working.

...?

Michael Morris 05-03-2004 02:29 PM

Quote:

Originally Posted by Zachery
You would need to assign the posticons some sort of numeric or alphbetical value that would determin the stort.

They have one - display order. that still doesn't answer my question though - how to sort the threads by the display order of the post icons?

noonespecial 05-07-2004 09:53 PM

Quote:

Originally Posted by Michael_Morris
They have one - display order. that still doesn't answer my question though - how to sort the threads by the display order of the post icons?

heeelp with this!!!!!!!

noonespecial 05-21-2004 06:31 AM

Quote:

Originally Posted by noonespecial
heeelp with this!!!!!!!

i guess this will never happen. a shame, this would be so huge for my news page.

Taco John 05-21-2004 08:10 AM

I've always wanted something like this.

msimplay 05-21-2004 08:28 AM

well i use my post icons as thread descriptions on what they contain
ie an 18 icon for posts that contain adult language / material

so some kind of hack to allow searching by post icon would be great

not sure about this one but i think post icons do have ids in the database maybe they can be used to create a hack of some sort

noonespecial 06-03-2004 06:41 AM

Quote:

Originally Posted by msimplay
well i use my post icons as thread descriptions on what they contain
ie an 18 icon for posts that contain adult language / material

so some kind of hack to allow searching by post icon would be great

not sure about this one but i think post icons do have ids in the database maybe they can be used to create a hack of some sort

i keep trying to get it to work, so far, nothing.

noonespecial 07-28-2004 05:17 AM

Quote:

Originally Posted by noonespecial
i keep trying to get it to work, so far, nothing.

anyone??? this needs to be revived. especially for vbadvanced./vbindex users.

spence2 08-14-2004 06:49 AM

While this may not be exactly what you need ... I used this hack to add transparent gifs to my posts ... you may want to use "regular" images.

On a per forum basis you assign images to category names.
like...
clear1.gif
Chapter 1
clear2.gif
Chapter 2
etc.

When you enter a thread you can select a category for it. Because I use transparent gifs, nothing shows on the thread ... no clutter.

But on the forum display there is select box with:
Chapter 1
Chapter 2
etc.

If I select Chapter 1, only the threads assigned to Chapter 1 appear.

This doesn't help with search, but it helps to sort your threads.
Your categories could be
Adult Language
Mature Content
etc.

I know it's not the solution you need, but it might get you closer than you are now. Cheers.

CarCdr 08-14-2004 10:59 AM

Quote:

Originally Posted by Michael_Morris
They have one - display order. that still doesn't answer my question though - how to sort the threads by the display order of the post icons?

We added a few extra sorts for users to categorize threads, so I've had to do this sort of thing a couple of times. Hacing said that, I did not make an exhaustive check before posting this, nor did i test it.

If what you want to is to sort a list of threads by icon, you'll have to make a mod to a script and and a template.

1. In forumdisplay.php, find
Code:

    switch ($sortfield)
    {
          case 'title':

BEFORE the case 'title': add:
Code:

          case 'iconid':
              $sqlsortfield = 'thread.iconid';
              break;

2. In FORUMDISPLAY template

Find this line:
Code:

    <option value="title" $sort[title]>$vbphrase[thread_title]</option>
BEFORE or AFTER this line, or anywhere in that group of options, put this line:
Code:

    <option value="iconid" $sort[iconid]>$vbphrase[post_icons]</option>
This adds "Post Icons" to the list of sort options in the "Display Options" form at the bottom of the page.

I do not know what your sort order will be, as all this is supposed to do is use the internal iconid number to sort on.

What I have not addressed, is the code to add a column heding that one could click to sort on that column. If you need that, we can talk about it after you try this much. Cheers

Michael Morris 08-15-2004 02:05 PM

Well, my server's in the middle of Florida, and Charlie has just left town. I hear power will be out for a few days so I can't play with it just now.

msimplay 02-27-2006 08:36 AM

Any chance for this now ?

Joey805 05-15-2006 10:14 PM

I"m looking for this too. Can any coders please help?

Marco van Herwaarden 05-16-2006 08:35 AM

Are you looking for a vB3 or vB3.5 solution?

I think there is already a 3.5 version for this, not sure of there is also a vB3 version.

Joey805 05-16-2006 02:25 PM

I'm looking for a 3.5 solution. Ideally, I would just like to place a link in my navbar that when clicked will display all threads with a certain post icon. (example, my news items)

Is this possible?


All times are GMT. The time now is 09:14 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.01833 seconds
  • Memory Usage 1,758KB
  • 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
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (20)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