vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Show newest messagers ordered by forum (https://vborg.vbsupport.ru/showthread.php?t=45669)

maestrosdelweb 11-12-2002 10:06 PM

Show newest messagers ordered by forum
 
Hi..

Any idea to update the getnew action to order the results by forum and then by date?

Best regards.

Logician 11-13-2002 09:33 AM

edit search.php, find:

PHP Code:

eval("standardredirect(\"".gettemplate("redirect_search")."\",\"search.php?s=$session[sessionhash]&action=showresults&getnew=true&searchid=$searchid\");"); 

Replace it as:

PHP Code:

eval("standardredirect(\"".gettemplate("redirect_search")."\",\"search.php?s=$session[sessionhash]&action=showresults&getnew=true&searchid=$searchid&sortby=forum\");"); 

There are 2 instances, change both..

Enjoy.

maestrosdelweb 11-13-2002 12:52 PM

Great thanks for the help.

Just something else.

To make the order DESC?

Still a newie with this forums.

Logician 11-13-2002 05:11 PM

Use
PHP Code:

eval("standardredirect(\"".gettemplate("redirect_search")."\",\"search.php?s=$session[sessionhash]&action=showresults&getnew=true&searchid=$searchid&sortorder=ascending\");"); 

or

PHP Code:

eval("standardredirect(\"".gettemplate("redirect_search")."\",\"search.php?s=$session[sessionhash]&action=showresults&getnew=true&searchid=$searchid&sortorder=descending\");"); 


maestrosdelweb 11-13-2002 09:12 PM

I'm trying the following:

PHP Code:

eval("standardredirect(\"".gettemplate("redirect_search")."\",\"search.php?s=$session[sessionhash]&action=showresults&getnew=true&searchid=$searchid&sortby=forum&sortorder=descending\");"); 

It does order the messages by forum but it doesn't order them in desc order..

Any advice?

maestrosdelweb 11-21-2002 10:21 PM

Any other suggestion?

Logician 11-21-2002 10:44 PM

does not the 2 codes I referred above make any change in sorting order?

maestrosdelweb 11-22-2002 01:03 AM

:) I ment to order it in ascending way.. It works now.

Best regards and thanks for the help.


All times are GMT. The time now is 11:17 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.01013 seconds
  • Memory Usage 1,730KB
  • 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
  • (5)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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