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

Reply
 
Thread Tools Display Modes
  #1  
Old 01-03-2002, 05:22 AM
Hoffi's Avatar
Hoffi Hoffi is offline
 
Join Date: Nov 2001
Location: Germany
Posts: 342
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

we are implementing a Little Archieve in our Board, and so some little Hacks would help us. I am not sure how to do this, maybe someone can help me.
[list=1][*]Thread-Sorting
In the Forum now we put some Information and it is absolut not of Interest when this Things are posted, it would be better, if the Threads are sorted alphbetically. Is this possible? Possibly a Hack, where to Change the sorting in the CP for each Forum.[*]Rating
In This Forum only the Moderators and Administrators schould rate the Treads. I can Build in, that Usergroups can rate, if rating is anabled, but in all other Forums Registered Users can Rate, but in this Forum they should not Rate. Is This Possible? May in Connection with a Text in the Small Permissions Box an the bottom of the Site: You can't rate in this Forum.[*]disabling Columns
And the third Question is, if i can disable some Columns in the Overview of this Forum. It is absolutetly not from interest, how many Posts a Thread has, the Most of them have only one! [/list=1]

I Hope some of you have an Idea, or know a Hack that helps me.

Thanks and regards

Hoffi

PS: The Forum is in German: http://www.calibra.de/vb2/
Reply With Quote
  #2  
Old 01-03-2002, 10:26 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1. In forumdisplay.php replace:
Code:
if (!isset($sortfield)) {
  $sortfield = "";
}
with:
Code:
if (!isset($sortfield)) {
  if ($forumid==xxx)
    $sortfield = 'title';
  else
    $sortfield = '';
}
change xxx to the ID of the Archive forum.

2. Go to Forum Permissions and set for each usergroup in the Archive forum that "Can Rate threads if thread rating is enabled in the forum?" is NO.

3. I'm not in the mood, this is the worst kind of hacking.
Reply With Quote
  #3  
Old 01-03-2002, 10:51 AM
Hoffi's Avatar
Hoffi Hoffi is offline
 
Join Date: Nov 2001
Location: Germany
Posts: 342
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the fast answer.

1. I think this works not for Subforen, so i try (this evening)

PHP Code:
if (!isset($sortfield)) {
  if (
$forumid in (x,y,z))
    
$sortfield 'title';
  else
    
$sortfield '';

It looks so easy...

2. This I have searched, but i didn't find it. Is it possible that during an update this Pont is missing?
I logged in, and used the Link Forum Permissions in the User-Group Group. Then scroll down to the Forum I want to change, and click on the [Edit]-Link behind the Usergroup. Then i don't see an option like you describes.

3. Yes, thats it. May it work like number one, around the <td>-Tags?
Reply With Quote
  #4  
Old 01-06-2002, 08:34 AM
Hoffi's Avatar
Hoffi Hoffi is offline
 
Join Date: Nov 2001
Location: Germany
Posts: 342
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I Have tested this order and it works with one Forum. But it is always Descending. I can't get it Ascending!!
Di you have an idea?
Reply With Quote
  #5  
Old 01-06-2002, 11:07 AM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You need to add this line in the IF block:
Code:
  $sortorder='asc';
Reply With Quote
  #6  
Old 01-06-2002, 11:29 AM
Hoffi's Avatar
Hoffi Hoffi is offline
 
Join Date: Nov 2001
Location: Germany
Posts: 342
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I must be a little bit confused.

I tried this out, when i was editing the Code, and it doesn't work.

I tried it now a second time, and it works.
I don't know why, but now this Issue works.

Thanks FireFly.

But the 2nd Question I can't find this Option!
Is it possible that i forgot something during an Update?
So the Major Question: What can i Do, that all options are there?
Reply With Quote
  #7  
Old 01-28-2002, 05:24 AM
Hoffi's Avatar
Hoffi Hoffi is offline
 
Join Date: Nov 2001
Location: Germany
Posts: 342
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just released the Hack for the deafult sort order:
Advanced Forum Properties part 2: https://vborg.vbsupport.ru/showthrea...threadid=34556

Part 1 is the Days Prune override Hack: https://vborg.vbsupport.ru/showthread.php?threadid=3371
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 07:54 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.05120 seconds
  • Memory Usage 2,222KB
  • 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
  • (3)bbcode_code
  • (1)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete