vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   threadview problem (https://vborg.vbsupport.ru/showthread.php?t=18689)

azerty 05-30-2001 10:34 AM

You know, the page where you see all the threads from the users are listed ?

Wel on that page when somebody replies to a thread, that thread automatically moves to the top, well I don't want that, I know you can disable this in the code somewhere so that they just stay in there place. I did it before but on a way older version, and honestly don't know anymore how to do it.

please help me out

thanks alot

Wayne Luke 05-30-2001 03:05 PM

This is the normal behaviour of vBulletin. You will have to alter the code in the forumdisplay.php file.

azerty 05-30-2001 04:54 PM

But where and what should I change ...

azerty 05-30-2001 05:28 PM

$threads=$DB_site->query("
SELECT $dotuserid $votequery ".iif($foruminfo[allowicons],'icon.title as icontitle,icon.iconpath,','')."
thread.threadid,thread.title,lastpost, forumid,pollid,open,replycount,postusername,postus erid,
lastposter,thread.dateline,views,thread.iconid,not es,thread.visible,sticky,votet otal,attach
FROM thread
".iif($foruminfo[allowicons],'LEFT JOIN icon ON (icon.iconid = thread.iconid)','')."
$dotjoin
WHERE $threadids
ORDER BY sticky DESC, $sortfield $sqlsortorder
");

It's something in ORDER (last line) that has to be changed, anybody knows what exactly ?

Wayne Luke 05-30-2001 06:46 PM

You will have to change the default value for $sortfield unless you want to remove all sorting capabilities from your members.

azerty 05-30-2001 07:17 PM

christ, could you say that in non-expert language ? In vb 1.13 I had simply to channge "laspost" to "threadID", so what you think I should do here ?

Mike Sullivan 05-30-2001 08:11 PM

I wouldn't use threadid. Use dateline instead:

You just have to change the default case to "dateline" instead of "lastpost"

Code:

  default:
    $sortfield='lastpost';


azerty 06-02-2001 10:15 AM

Could you perhaps the code the way it should be , because I can't quiet understand what I have to change , sorry but I'm a newbie :D


Thanks !


All times are GMT. The time now is 05:26 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.00992 seconds
  • Memory Usage 1,723KB
  • 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
  • (1)bbcode_code_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