Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 08-20-2002, 08:40 PM
Sho Sho is offline
 
Join Date: Nov 2001
Location: Berlin, Germany
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Catherine, forumdisplay.php is written in the PHP scripting language, not in JavaScript. You will find forumdisplay.php in the root directory of your vBulletin installation.
Reply With Quote
  #12  
Old 08-20-2002, 09:14 PM
Catherine Catherine is offline
 
Join Date: Aug 2002
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you!
Reply With Quote
  #13  
Old 10-08-2002, 11:52 PM
butty butty is offline
 
Join Date: Nov 2001
Location: manchester, uk
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi there, thanks very much for this tip its something that i have needed on my board for a while and didnt know it existed hat off 2 ya

only thing is could someone tell me how to change it so that the forum i am displaying by thread title so that it is sorted in ascending order aswel?

heres what i have at the moment in my forumdisplay.php file


PHP Code:

if($foruminfo[forumid]==17$sortfield='title';
  else 
$sortfield='lastpost'

many thanks in advance
Reply With Quote
  #14  
Old 10-09-2002, 09:45 AM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

just change it to:
PHP Code:
if($foruminfo[forumid]==17) {
  
$sortfield='title';
  
$sortorder='';
}  else 
$sortfield='lastpost'
but if you have this, you won't be able to change the sortorder for this forum anymore without changing it in the php-file
Reply With Quote
  #15  
Old 10-09-2002, 01:58 PM
butty butty is offline
 
Join Date: Nov 2001
Location: manchester, uk
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi there mate thanks very much for your help. Ive changed it but it doesnt seem to have taken effect - heres what my forumdisplay.php looks like

PHP Code:

default:
if(
$foruminfo[forumid]==17) {
  
$sortfield='title';
  
$sortorder='';
}  else 
$sortfield='lastpost';

you can see the forum its supposed to be working on here and as you can see it still says descending wherease i would like it to be ascending

many thanks
Reply With Quote
  #16  
Old 10-09-2002, 02:15 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hmm, it should work, be sure it's below this block:
if ($sortorder!='asc') {
$sqlsortorder='DESC';
$order['desc']='selected';
} else {
$sqlsortorder='';
$order['asc']='selected';
}

have you uploaded the correct file?
Reply With Quote
  #17  
Old 10-09-2002, 02:24 PM
butty butty is offline
 
Join Date: Nov 2001
Location: manchester, uk
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeah definetly mate triple checked that and its underneath that block heres what more if it looks like..........


PHP Code:

if ($sortorder!='asc') {
  
$sqlsortorder='DESC';
  
$order['desc']='selected';
} else {
  
$sqlsortorder='';
  
$order['asc']='selected';
}
switch (
$sortfield) {
  case 
'title':
  case 
'lastpost':
  case 
'replycount':
  case 
'views':
  case 
'postusername':
  case 
'voteavg':
    break;

default:
if(
$foruminfo[forumid]==17) {
  
$sortfield='title';
  
$sortorder='';
}  else 
$sortfield='lastpost';
}
if (
$sortfield=="voteavg" and !$foruminfo[allowratings]) {
  
$sortfield="lastpost";
}

$sort = array();
$sort[$sortfield]='selected'
Reply With Quote
  #18  
Old 10-09-2002, 09:40 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

looool, damn sorry was my fault

change $sortorder=''; into $sqlsortorder='';
Reply With Quote
  #19  
Old 10-18-2002, 07:17 AM
TundraSoul TundraSoul is offline
 
Join Date: Mar 2002
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would it be possible to get a hack, which allows the user to set the thread order (forward or reverse) from the user control panel?

No matter what way I set it, half the group always wants it the other way.

Thanks!
Reply With Quote
  #20  
Old 11-05-2002, 04:26 AM
TundraSoul TundraSoul is offline
 
Join Date: Mar 2002
Posts: 155
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

^bump
Reply With Quote
Reply


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 09:47 PM.


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.04629 seconds
  • Memory Usage 2,270KB
  • Queries Executed 13 (?)
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
  • (4)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
  • (3)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_postinfo_query
  • fetch_postinfo
  • 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