vb.org Archive

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

shorty 08-20-2003 05:01 PM

No bump
 
Im not sure how easy to this to do in VB 2.3 and my extensive search in here can't find my answer.

I have one forum that I would like to always display the forums in the order in which they were created in. Regardless of any posts that would 'bump' threads back to the top.

I _think_ it's a matter of telling VBulletin to not update the last post field but Im not really PHP savy enough to do it.

Does anyone have any ideas? :)

Thanks guys as always.

NTLDR 08-20-2003 05:50 PM

You could try using one of the "Prevent Double Posting" hacks and make it apply to just that forum which would prevent the bump posts, or if you mean that you want to show the threads by thread date, regardless of real replys then a small hack to sort by threadid or dateline could be done.

shorty 08-20-2003 05:57 PM

Quote:

Today at 07:50 PM NTLDR said this in Post #2
or if you mean that you want to show the threads by thread date, regardless of real replys then a small hack to sort by threadid or dateline could be done.
That would be the one. So they stay in the order in which they were created, regardless of any replies :)

I have had a good search and did try to write something but I got totally lost :cry: Im just getting started.

Issvar 08-24-2003 03:17 PM

Open forumdisplay.php, and find
Code:

$sort = array();
And add before this line:
Code:

if ($forumid == 5) {
  $sortfield = 'dateline';
  $sqlsortorder = 'DESC';
}

And replace the 5 with the id number of the forum you wish to have sorted by start time. Now your threads will always be sorted with newest first. If you would prefer oldest first change DESC to ASC.

You can find the id number of your forum by simply opening that forum and looking in the address bar at what it says after &forumid=.

shorty 08-24-2003 03:28 PM

That's awesome and did the job perfectly :D

Thanks very much!

Im starting to learn alot from these hacks and such. Looking forward to the day I can have a hack in here :classic:


All times are GMT. The time now is 09:22 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.01043 seconds
  • Memory Usage 1,719KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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