vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Group Closed Threads below Open Threads (https://vborg.vbsupport.ru/showthread.php?t=93136)

Matthijs 07-29-2005 01:44 PM

Group Closed Threads below Open Threads
 
I've seen this on some other forum software and modded it into my current phpBB installation. Do you guys with experience in the vB codebase think this will be hard to code?

What I will be doing is adding a quick-and-dirty if() statement because I only need it in 1 specific forum. What do you guys think, will this be easy?

Andreas 07-29-2005 01:52 PM

In vBulletin 3.5 it's a 1 Line Plugin.
Hookname: forumdisplay_query
PHP Code:

$sqlsortfield "(open != 0) DESC, $sqlsortfield"

For vBulletin 3.0
In forumdisplay.php
FIND
PHP Code:

ORDER BY sticky DESC$sqlsortfield $sqlsortorder 

REPLACE that with
PHP Code:

ORDER BY sticky DESC, (open != 0DESC$sqlsortfield $sqlsortorder 


Matthijs 08-01-2005 06:23 AM

Cool! Thanks a lot!

futuredood 11-23-2008 11:39 PM

Hi is this available for 3.6?

Lynne 11-24-2008 03:05 PM

Try the plugin suggested and see if it works.

xlguy 02-02-2009 09:48 AM

Doesn't seem to work in 3.8, strange.

jamaesi 12-31-2011 12:56 AM

I've been searching for awhile in vain, is there a way to do this on vB 3.8 or vB 4?

kh99 12-31-2011 01:18 AM

The 1 line plugin above seems to work on 4.1.9, so it should work for the 3.X versions as well.


All times are GMT. The time now is 07:05 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.00943 seconds
  • Memory Usage 1,722KB
  • 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
  • (3)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