Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)

Reply
 
Thread Tools Display Modes
  #1  
Old 04-09-2002, 09:25 AM
Bald Bouncer's Avatar
Bald Bouncer Bald Bouncer is offline
 
Join Date: Oct 2001
Location: UK
Posts: 228
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default stop threads bumping in certain forum

i need to have threads not move to the top when someone replies but only in one forum, can anyone help :cry:
Reply With Quote
  #2  
Old 04-10-2002, 04:20 AM
DPerley DPerley is offline
 
Join Date: Apr 2002
Location: Kelowna, B.C.
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello:
I am also very interested in knowing if this is already available. I've done a little searching on the forum and didn't see anything. If there is already a hack available can you please tell me where it is and if not is this something that one of you can do?

thanx, Dennis
Reply With Quote
  #3  
Old 04-10-2002, 09:59 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So as to do that, you have to cancel option of sorting messages according to "last post date". Messages bump up because they're sorted according to last post date. Do you really think you need it canceled? Because if your members dont like this sorting, they can simply change their sorting style, it's not mandatory.
Reply With Quote
  #4  
Old 04-10-2002, 06:25 PM
DPerley DPerley is offline
 
Join Date: Apr 2002
Location: Kelowna, B.C.
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK:
Thanx for the tip on the easy solution. But is it possible to add a hack that would disable anyone from changing their sorting style on just one topic or on individual categories? I'm looking for a more permanent solution.

DPerley
Reply With Quote
  #5  
Old 04-10-2002, 07:16 PM
Bald Bouncer's Avatar
Bald Bouncer Bald Bouncer is offline
 
Join Date: Oct 2001
Location: UK
Posts: 228
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeah I need it only in my news forum ... Id rather it worked automatically
Reply With Quote
  #6  
Old 04-11-2002, 06:39 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's possible but here is an important "but":

If what you want is to fix the sorting to an other field like "title", "replycount", "views", "postusername", "voteavg". apply the hack below. But if you want to sort according to thread start date, no it's not possible with this small code change.

Anyway here is your hack:

Edit forumdisplay.php, find
PHP Code:
if (!isset($sortfield)) {
  
$sortfield ""
Before that add this line:
PHP Code:
if {$forumid==1) {$sortfield "title";}
if {
$forumid==2) {$sortfield "views";}
if {
$forumid==3) {$sortfield "postusername";} 
what does it do?

It fixes the sortfield to "title" if forumid is 1, "views" if 2, "postusername" if 3.. Forum readers wont be able to change the sortfield for these forums anymore.

Not tested but should work..

Enjoy..
Logician
Reply With Quote
  #7  
Old 04-11-2002, 06:08 PM
DPerley DPerley is offline
 
Join Date: Apr 2002
Location: Kelowna, B.C.
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Logician:
thanx for the advice.
Someone else on another forum suggested this might work for the date thing.
-------------------------------------------------
Not entirley sure, but a brief look suggests that doing something like:

if ($forumid == 4) {

$sortfield = "sql_field_name_for_date";

}

and that should actually do it if you put that at the top of forumdisplay.php
-------------------------------------------------
What's your take on that?

thanx, DPerley
Reply With Quote
  #8  
Old 04-11-2002, 07:02 PM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have written my tip before checking the db (and still cant access here where I wrote this message), however if there is a first date field in the table script pulls the data, yes this may work.

Seemed a wise tip to me.

You'd better give it a shot and if it works my advice wont be needed
Reply With Quote
  #9  
Old 04-11-2002, 07:34 PM
Bald Bouncer's Avatar
Bald Bouncer Bald Bouncer is offline
 
Join Date: Oct 2001
Location: UK
Posts: 228
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

all sounds nice but whats the sql_field_name_for_date?
Reply With Quote
  #10  
Old 04-11-2002, 07:35 PM
TECK's Avatar
TECK TECK is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 4,182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

just as a curiosity, what version you installed? the one for mods or the one for a specific usergroup?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:21 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.12702 seconds
  • Memory Usage 2,247KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete