Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Add Search/Sort/Order in thread view Details »»
Add Search/Sort/Order in thread view
Version: 1.00, by bad_madman bad_madman is offline
Developer Last Online: Oct 2023 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 06-16-2002 Last Update: Never Installs: 18
 
No support by the author.

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:

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #82  
Old 07-11-2002, 05:08 PM
Birdie501's Avatar
Birdie501 Birdie501 is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 272
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

another thing: I have the contract/expand post hack installed, but after installation of this hack the images for contracting/expanding are not shown??????
Reply With Quote
  #83  
Old 07-11-2002, 08:09 PM
BigJohnson BigJohnson is offline
 
Join Date: Nov 2001
Posts: 535
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That addon for the VIEWS thing that is up a couple of posts. You said to replace the code with that code. Well I have the STORE hack installed so it looks a little different can you help me please. What do i do about it. This is what my code looks like thanks.

PHP Code:
if ($noshutdownfunc) {
  
$DB_site->query("UPDATE thread SET views=views+1 WHERE threadid='$threadid'");

  
// Store hack by Lesane

  
$storeview=$DB_site->query_first("select views, postuserid from thread WHERE threadid='$threadid'");
  
$views=$storeview[views];
  
$postuserid=$storeview[postuserid];

  
$storeadmin $DB_site->query_first("SELECT * FROM storeadmin");
  
$view1=$storeadmin[view1];
  
$view2=$storeadmin[view2];
  
$view3=$storeadmin[view3];
  
$view4=$storeadmin[view4];
  
$view5=$storeadmin[view5];
  
$viewpoint1=$storeadmin[vpoint1];
  
$viewpoint2=$storeadmin[vpoint2];
  
$viewpoint3=$storeadmin[vpoint3];
  
$viewpoint4=$storeadmin[vpoint4];
  
$viewpoint5=$storeadmin[vpoint5];

  if (
$views == $view1)
  {
        
$DB_site->query("UPDATE user SET storep=storep+$viewpoint1 where userid='$postuserid'");
  }
  elseif (
$views == $view2)
  {
        
$DB_site->query("UPDATE user SET storep=storep+$viewpoint2 where userid='$postuserid'");
  }
  elseif (
$views == $view3)
  {
        
$DB_site->query("UPDATE user SET storep=storep+$viewpoint3 where userid='$postuserid'");
  }
  elseif (
$views == $view4)
  {
        
$DB_site->query("UPDATE user SET storep=storep+$viewpoint4 where userid='$postuserid'");
  }
  elseif (
$views == $view5)
  {
        
$DB_site->query("UPDATE user SET storep=storep+$viewpoint5 where userid='$postuserid'");
  }

} else {
  
$shutdownqueries[]="UPDATE LOW_PRIORITY thread SET views=views+1 WHERE threadid='$threadid'";

  
// Store hack by Lesane

  
$storeview=$DB_site->query_first("select views, postuserid from thread WHERE threadid='$threadid'");
  
$views=$storeview[views];
  
$postuserid=$storeview[postuserid];

 
$storeadmin $DB_site->query_first("SELECT * FROM storeadmin");
  
$view1=$storeadmin[view1];
  
$view2=$storeadmin[view2];
  
$view3=$storeadmin[view3];
  
$view4=$storeadmin[view4];
  
$view5=$storeadmin[view5];
  
$viewpoint1=$storeadmin[vpoint1];
  
$viewpoint2=$storeadmin[vpoint2];
  
$viewpoint3=$storeadmin[vpoint3];
  
$viewpoint4=$storeadmin[vpoint4];
  
$viewpoint5=$storeadmin[vpoint5];


  if (
$views == $view1)
  {
        
$DB_site->query("UPDATE user SET storep=storep+$viewpoint1 where userid='$postuserid'");
  }
  elseif (
$views == $view2)
  {
        
$DB_site->query("UPDATE user SET storep=storep+$viewpoint2 where userid='$postuserid'");
  }
  elseif (
$views == $view3)
  {
        
$DB_site->query("UPDATE user SET storep=storep+$viewpoint3 where userid='$postuserid'");
  }
  elseif (
$views == $view4)
  {
        
$DB_site->query("UPDATE user SET storep=storep+$viewpoint4 where userid='$postuserid'");
  }
  elseif (
$views == $view5)
  {
        
$DB_site->query("UPDATE user SET storep=storep+$viewpoint5 where userid='$postuserid'");
  }
}

if (
$bbuserinfo[cookieuser]) {
  
vbsetcookie("bbthreadview[$threadid]",time(),0); 
Reply With Quote
  #84  
Old 07-13-2002, 12:04 AM
bad_madman's Avatar
bad_madman bad_madman is offline
 
Join Date: Oct 2001
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Birdie501
Hi, nice hack!!
i installed the hack that shows the number of posts and direct link in that thread! If you search the thread and the result is shown the numbers change and start again with 1.
Is it possible to keep the original numbers...
...Also how can i get back to the thread after searching? Because after the search there is no button where i can reset the search?...
Thanks
A couple of good suggestions :classic: I will write an update. I have little time at the moment. :surprised: But the update comes... !
Quote:
Originally posted by Birdie501
Hope you understand what i mean, is a little bit difficult for me to explain in english
Hehe, h?ttest es auch in deutsch versuchen k?nnen *fggg
Quote:
Originally posted by Birdie501
another thing: I have the contract/expand post hack installed, but after installation of this hack the images for contracting/expanding are not shown??????
I will install the hack and let you know...
Reply With Quote
  #85  
Old 07-13-2002, 12:17 AM
bad_madman's Avatar
bad_madman bad_madman is offline
 
Join Date: Oct 2001
Posts: 196
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by BigJohnson
That addon for the VIEWS thing that is up a couple of posts. You said to replace the code with that code. Well I have the STORE hack installed so it looks a little different can you help me please. What do i do about it. This is what my code looks like thanks....
Search for:
Code:
  $DB_site->query("UPDATE thread SET views=views+1 WHERE threadid='$threadid'");
and replace with:
Code:
if ($ownsearch!=1) {
  $DB_site->query("UPDATE thread SET views=views+1 WHERE threadid='$threadid'");
}
and search for:
Code:
  $shutdownqueries[]="UPDATE LOW_PRIORITY thread SET views=views+1 WHERE threadid='$threadid'";
and replace with:
Code:
if ($ownsearch!=1) {
  $shutdownqueries[]="UPDATE LOW_PRIORITY thread SET views=views+1 WHERE threadid='$threadid'";
}
That's all...
Reply With Quote
  #86  
Old 07-16-2002, 06:09 AM
Birdie501's Avatar
Birdie501 Birdie501 is offline
 
Join Date: Dec 2001
Location: Germany
Posts: 272
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

i made an addon for this great hack. The user can choose if he wants to see the search form or not! He can enable/disable it in his options!

Details in zip file.

Have fun.

Reply With Quote
  #87  
Old 08-25-2002, 04:29 PM
Larry@IOG Larry@IOG is offline
 
Join Date: May 2002
Posts: 95
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wheres the detailed insructions on how to install this hack? I downloaded the zip file but it looks very confusing to me

Thanks

Larry Jude
Reply With Quote
  #88  
Old 10-15-2002, 11:59 PM
groovesalad groovesalad is offline
 
Join Date: Aug 2002
Posts: 210
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I get this error:

Parse error: parse error in /www/g/groove_salad/htdocs/forum/showthread.php on line 200
Reply With Quote
  #89  
Old 10-16-2002, 01:31 AM
Bison's Avatar
Bison Bison is offline
 
Join Date: Jun 2002
Location: Virginia Beach, Virginia
Posts: 522
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent work! My team members love this one!
Reply With Quote
  #90  
Old 11-10-2002, 11:01 PM
X-Fan's Avatar
X-Fan X-Fan is offline
 
Join Date: Jan 2002
Location: Adelaide, Australia
Posts: 496
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quick question about this hack - it seems to be adding a *LOT* of queries on the showthread page. Is there any way to reduce this?
Reply With Quote
  #91  
Old 11-11-2002, 09:56 PM
X-Fan's Avatar
X-Fan X-Fan is offline
 
Join Date: Jan 2002
Location: Adelaide, Australia
Posts: 496
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, I installed the fix and the upgraded version, and now this hack isn't showing up at all on any threads!

Can someone help with this, please?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:41 AM.


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.04496 seconds
  • Memory Usage 2,342KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_code
  • (1)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete