vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Thread Creation Date - Enhanced Version (https://vborg.vbsupport.ru/showthread.php?t=68878)

btappan 09-01-2004 06:54 PM

Ocean, thanks for the reply

thats what i was getting at. do you know how i might modify the search.php file to make the default sort by creation date?

Ocean 09-01-2004 10:32 PM

Quote:

Originally Posted by btappan

Ocean, thanks for the reply

thats what i was getting at. do you know how i might modify the search.php file to make the default sort by creation date?

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! :)

btappan 09-01-2004 11:11 PM

still having problems

https://vborg.vbsupport.ru/showthrea...d=1#post548909

Ocean 09-02-2004 03:22 AM

Quote:

Originally Posted by btappan

Try this, and see if it does the trick for the "New Posts" link:


In the "Search.php" file, Find:

PHP Code:

 
ORDER BY lastpost DESC 


Replace it with this:


PHP Code:

 
ORDER BY threadstart DESC 


btappan 09-02-2004 10:27 AM

I tied that as well, no luck ......theres another instance of laspost just after that as well that i tried changing to no work either.

Ocean 09-02-2004 12:10 PM

Quote:

Originally Posted by btappan

I tied that as well, no luck ......theres another instance of laspost just after that as well that i tried changing to no work either.

Hmm. Well, rather than making you jump through more hoops - I'd say the fastest way for you to get an authoritative answer to this is to post this question in the "How Do I" forum on vBulletin.com. :)

Bad Bunny 09-03-2004 09:20 PM

Quote:

Originally Posted by btappan
I tied that as well, no luck ......theres another instance of laspost just after that as well that i tried changing to no work either.

Does this make it possible to make the thread sort by creation date automatically?

nelto 09-04-2004 08:04 PM

I tried to install this but I cant.

********************************

30. Now, Find:

**********

case 'postusername':
$sqlsortfield = $sortfield;
break;

********************************

That is to find on the subscription.php fiel but I cant find that in there.
Im runing VB 3.0.3

How can I do it?

Ocean 09-04-2004 08:46 PM

Quote:

Originally Posted by nelto

I tried to install this but I cant.

********************************

30. Now, Find:

**********


case 'postusername':
$sqlsortfield = $sortfield;
break;


********************************

That is to find on the subscription.php fiel but I cant find that in there.
Im runing VB 3.0.3

How can I do it?

Be careful that you're searching the right file. vBulletin has a Subscription.php as well as a Subscriptions.php file. You want the singular version of the file, NOT the plural.

In addition, a lot of text editors have a problem doing searches that include a line break. So, try searching for just "case 'postusername':" and make sure that the instance you find is the correct one by visually matching the surrounding code to the code specified it the Instructions. :)

nelto 09-04-2004 08:54 PM

Ah great Ocean
btw one question

How can I had a new template to the VB?
Im trying to add some other hacks that require a new template but I dont knwo hwo to find it.

I'll let you know in a bit how this hack of yours works :) (if I got it installed.)


All times are GMT. The time now is 02:03 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.01201 seconds
  • Memory Usage 1,748KB
  • 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
  • (6)bbcode_php_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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