vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   make threadstart default sort order in search.php (https://vborg.vbsupport.ru/showthread.php?t=68985)

btappan 09-01-2004 11:16 PM

make threadstart default sort order in search.php
 
I am trying to make "threadstart" the default sort order for the search results in my forum but am not having much luck. I tried this as OCEAN suggested but have had no success:

Quote:

Originally Posted by Ocean
1. In the "Search.php" file, find:


PHP Code:

 
'sortby' => 'lastpost'


2. Change it to this:


PHP Code:

 
'sortby' => 'threadstart'


3. Now, Find:


PHP Code:

 
$sortby 
'lastpost'


4. And change that to this:


PHP Code:

 
$sortby 
'threadstart'



That should do it! :)


Anybody got an idea of where else the default is being set in this file? with the mod above it still sorts by 'lastpost'

btappan 09-02-2004 01:56 AM

okay....this works when you actually do a search, threadstart is the default. the problem is when you click predefined searches like "new posts" or "get daily" then the function does not work. so now where do I look at for modding to get it to work with these functions?

Ocean 09-02-2004 03:23 AM

Quote:

Originally Posted by btappan

okay....this works when you actually do a search, threadstart is the default. the problem is when you click predefined searches like "new posts" or "get daily" then the function does not work. so now where do I look at for modding to get it to work with these functions?

I posted a possible solution here: https://vborg.vbsupport.ru/showpost....8&postcount=14

btappan 09-02-2004 10:48 AM

Quote:

Originally Posted by Ocean


tried this as well, also tried changing

addslashes($forumid) . "', 'lastpost', 'DESC', $searchtime

to

addslashes($forumid) . "', 'threadstart', 'DESC', $searchtime



nothing wants to affect the behavior of this script :ermm:


All times are GMT. The time now is 09:24 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.01265 seconds
  • Memory Usage 1,724KB
  • 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_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)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