vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Add Search/Sort/Order in thread view (https://vborg.vbsupport.ru/showthread.php?t=39947)

bad_madman 06-16-2002 10:00 PM

Add Search/Sort/Order in thread view
 
Add sort, order, search, posts from user options at the end of the thread.

Latest version: 1.20 (6-27-2002)
- Bug fixed: at every search views counter is increased (link)

Features:
  • The following options are available:
    - Display posts from previous xx days
    - Sorted by Post date, User name, Subject, Attachement, Post length
    - Show the post of all/definite users (with number posts)
    - ascending/descending
    - Search in Thread
      » Show only posts in which the search string was found (v1.20)
      » Own replacement for highlighted words possible (v1.20)
      » String search in words
      » Also mark parts of words
  • Decide which options shall be shown (simple template change)!
  • Show message instead of a empty thread, if the sort result = 0 posts (v1.10)
  • This hack is compatible with:
    - TWTCommish's hack 'View All Attachments in Thread'
    - FireFly's beta hack 'Multiple Quotes'
  • Tested with vBulletin 2.0.3, 2.2.5, 2.2.6
  • It works with vBulletin 2.0.3 to 2.2.6 now.
  • Very simple installation:
    - 2 Templates must be made
    - 1 Template must be changed
    - 2 Files (showthread.php, admin/functions.php) must be changed
  • Look at the screenshot for more informations...
Updates 1.20 (6-24-2002):
- Show only posts in which the search string was found
- Own replacement for highlighted words possible
- String search in words
- Also mark parts of words
- Update instructions in download archive

Updates 1.10 (6-19-2002):
- Show message instead of a empty thread, if the sort result = 0 posts
- Now compatible with: FireFly's beta hack 'Multiple Quotes'
- Bug fixed: if you use the links 'Previous Thread' ... 'Next Thread' in thread...

Screenshots:
- Thread view

Installation:
- Read !readme.txt in ZIP-ARCHIV!

Download:

Broekie 06-17-2002 06:08 AM

kewl :)

putting it on the "To Install" list :)

X-Fan 06-17-2002 07:09 AM

Very, very cool hack, bad_madman!

This will make it heaps easier to moderate long threads! Thanks!

Floris 06-17-2002 07:15 AM

Hey this looks like fun, downloaded the file and I will look at it later :) Maybe even install it. Gonna discuss how needed this is for our forum. By the way, can this be made for only certain usergroups? So only registered members can use it, or only admins.

bad_madman 06-17-2002 09:30 AM

Quote:

Originally posted by xiphoid
...By the way, can this be made for only certain usergroups? So only registered members can use it, or only admins.
No problem. Only ONE line must be changed for this in the file showthread.php

Search after hack installation in showthread.php for:
Code:

eval("\$threadview_adds=\"".gettemplate("showthread_adds")."\";");
and replace with
Code:

if ($bbuserinfo[usergroupid]==x) eval("\$threadview_adds=\"".gettemplate("showthread_adds")."\";");
x = Usergroup. For example '...$bbuserinfo[usergroupid]==6...'

Xenon 06-17-2002 11:51 AM

hey, looks very good

good work

bad_madman 06-17-2002 12:02 PM

@xiphoid

In addition, you can remove options.
Open the template 'showthread_adds' and remove the options which you don't need.
For example:
Code:

<option value="attach" $ososel[attach]>Attachement</option>
<option value="length" $ososel[length]>Post Length</option>

Or remove a complete block. For example:
Code:

<b>in</b>
<select name="sor"><option value="asc" $sorsel[asc]>ascending</option>
<option value="desc" $sorsel[desc]>descending</option></select>


bluecat 06-17-2002 12:58 PM

Hi. Great hack. How can I change the color of the background to match my forum? Also, is there a way this can be added to all the pages? Right now it only shows up on individual threads. Thanks again. :)

bad_madman 06-17-2002 02:19 PM

I have changed the templates.
Reinstall the hack (only templates) or change the templates:
Search in template showthread_adds:
PHP Code:

<table cellpadding="4" cellspacing="{tableinnerborderwidth}" border="0" {tableinnerextrawidth="100%"

and
Code:

</table>
and delete both lines...

Search in the template showthread for:
Code:

        </table>
        $threadview_adds

and replace with:
Code:

        $threadview_adds
        </table>


bluecat 06-17-2002 02:27 PM

Thank you very much. :)


All times are GMT. The time now is 11:45 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.01185 seconds
  • Memory Usage 1,742KB
  • 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
  • (7)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)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
  • (10)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