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 06-10-2002, 03:07 PM
ladyfyre's Avatar
ladyfyre ladyfyre is offline
 
Join Date: Nov 2001
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Custom Settings Per Forum

I am looking for a way to hack my forums so that each forum would have a custom setting in the "edit forums" section of the control panel (or anywhere for that matter), which would allow me to turn on/off 2 settings for individual forums, which would over-ride the site-wide settings.

These two are:

by-pass maximum allowable edit time for messages.

and

DO NOT "bump" threads on new posts/replies.

Is there any way to accomplish this? I will pay for the work to create these hacks if someone can help me get this done....preferably in a vbhacker format.
Reply With Quote
  #2  
Old 06-10-2002, 03:51 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
DO NOT "bump" threads on new posts/replies
hmm, this would be a problem, because threads aren't really bumped after a post, just the lastposter and lastposttime are updatet, and so it'll "bump" if the sortorder in forumdisplay depends on the last change.

you can change the sortorder if you wish, or set a new order just sort by id, but you cannot stop the bumping, because it's no real action when a new replay is sent

by-pass maximum allowable edit time for messages:
this won't be so much, you have to run one query and edit two or three files. Would you just bypass the edittime, or set a custom edittime for this forums?

perhaps i'll do that in the releasforum, if more user want it
Reply With Quote
  #3  
Old 06-10-2002, 04:31 PM
ladyfyre's Avatar
ladyfyre ladyfyre is offline
 
Join Date: Nov 2001
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

are you saying that i can already change the sort order for an individual forum, without changing the whole site?

I was under the impression it was set for all forums in the VB Options....

as for the by-pass maximum edit time, i just want to be able to set an option in the forums properties which will turn allow the edit time limit to be turned off or on for that forum...although in truth, it would probably be coolest if it was set with a blank to set the numerical value for the edit time in the forum properties, with a blank value defaulting to the value set in the VB Options, and a 0 value meaning no limit (by-pass time limits completely). Of course, a fill in the blank is not necessary for my boards...but if you are looking to make it a release, that would most likely be the most beneficial way for the largest number of VB users.
Reply With Quote
  #4  
Old 06-10-2002, 04:36 PM
ladyfyre's Avatar
ladyfyre ladyfyre is offline
 
Join Date: Nov 2001
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well, i just hunted, double checked, and triple checked, and i see no where that will let me change the sort order of an individual forum.....so i guess that is one i still need too

After looking at the sort order options though, neither is really what i want. I want to be able to set certain forums to be sorted by the date the thread was started, instead of the date of the last post. We have some sections which are for advertising, and have a CONTINUAL problem of some people simply serial posting ads, or bumping their own ads, so they will be on top. Once you get several hundred doing it, it gets REALLY confusing for anyone to try to find anything of value. So i want to be able to set it up so they can make replies to their ads, but NOT get bumped back to the top....and i assume that sorting by date of the first post that would be possible.
Reply With Quote
  #5  
Old 06-10-2002, 04:36 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

look at the screenie below ^^

ok, i'll code it (make a notice to not forget it)
Attached Images
File Type: jpg bild1.jpg (23.1 KB, 0 views)
Reply With Quote
  #6  
Old 06-10-2002, 04:43 PM
ladyfyre's Avatar
ladyfyre ladyfyre is offline
 
Join Date: Nov 2001
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok...that is a step in the right direction...the only problem is:

1. The option for sorting i want isn't there.
2. How do you set it for an individual forum to have a different default sort value than the rest of the forums?
Reply With Quote
  #7  
Old 06-10-2002, 05:21 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1. see 2, change lastpost to threadid so it'll sort threads in the order they are created

2. in forumdisplay.php you have to make the line $sortfield='lastpost';
depend on the forum you are..
Reply With Quote
  #8  
Old 06-10-2002, 05:27 PM
ladyfyre's Avatar
ladyfyre ladyfyre is offline
 
Join Date: Nov 2001
Posts: 151
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

but i don't want it to sort by last post...i want it to sort by the date the thread started.
Reply With Quote
  #9  
Old 06-10-2002, 05:29 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

as i wrote, you have to change lastpost to threadid then...
Reply With Quote
  #10  
Old 06-10-2002, 05:39 PM
Xenon's Avatar
Xenon Xenon is offline
 
Join Date: Oct 2001
Location: Bavaria
Posts: 12,878
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you can also make new sortoptions to that pulldown:

edit template forumdisplay_threadslist

find the lines
<select name="sortfield">
<option value="title" $sort[title]>thread title</option>

and add this option for example
<option value="threadid" $sort[threadid]>thread startdate</option>

then in forumdisplay.php
find this:
PHP Code:
switch ($sortfield) {
  case 
'title':
  case 
'lastpost':
  case 
'replycount':
  case 
'views':
  case 
'postusername':
  case 
'voteavg':
    break; 
and before the break; add case 'threadid':
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 06:42 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04216 seconds
  • Memory Usage 2,277KB
  • Queries Executed 12 (?)
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
  • (1)bbcode_php
  • (1)bbcode_quote
  • (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
  • (1)postbit_attachment
  • (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
  • postbit_attachment
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete