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

Reply
 
Thread Tools Display Modes
  #1  
Old 08-10-2002, 01:20 AM
AsedaH AsedaH is offline
 
Join Date: Aug 2002
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default need to reply to xx posts before you can start a new thread

is this even possible? it sounds simple on paper.

i need a hack that will make users reply to posts on my board before they can start new threads. Everyone wants to talk, but noone wants to reply.

is it possible to modify the "minimum posts to start new topic" hack to do this.
Reply With Quote
  #2  
Old 08-10-2002, 04:35 AM
[D]Vincent's Avatar
[D]Vincent [D]Vincent is offline
 
Join Date: Jun 2002
Location: In my own little world?
Posts: 411
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No offense but this sounds kind of pointless, if everyone is starting new threads and not replying you don't have a very good forum, slap down some rules and tell them not to just go around making new threads if they aren't replying to other ones. They'll eventually listen.
Reply With Quote
  #3  
Old 08-10-2002, 03:06 PM
AsedaH AsedaH is offline
 
Join Date: Aug 2002
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm not offended, but why is it pointless? I have 80 members, the average thread gets 7-8 replies. So i think the overall forum is doing ok, and yes, we do have rules. One of them just happens to be you must reply to 2 posts before you can start a thread. Not on the enrire board. just in one or two forums.

Anyway, if someone could point me in the right direction i'll work on it myself.
Reply With Quote
  #4  
Old 08-10-2002, 03:19 PM
Lesane's Avatar
Lesane Lesane is offline
 
Join Date: Oct 2001
Location: The Netherlands
Posts: 1,149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Try this:
https://vborg.vbsupport.ru/showthrea...threadid=34933
Reply With Quote
  #5  
Old 08-10-2002, 09:22 PM
AsedaH AsedaH is offline
 
Join Date: Aug 2002
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

close..but it doesnt work
Reply With Quote
  #6  
Old 08-10-2002, 09:45 PM
MrLister's Avatar
MrLister MrLister is offline
 
Join Date: Oct 2001
Posts: 434
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'll go make it... I'm kind of bored anyways now
Reply With Quote
  #7  
Old 08-10-2002, 09:55 PM
MrLister's Avatar
MrLister MrLister is offline
 
Join Date: Oct 2001
Posts: 434
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here ya go. Not tested. I'm just doing it in few mins now.


Open newthread.php

below require("./global.php"); add
Quote:
$needthismuch = "5"; // Amount of posts needed to make thread
then all the way at the bottom find
Quote:
eval("dooutput(\"".gettemplate("newthread")."\");" );
and replace it with
Quote:
if ($bbuserinfo[posts] < $needthismuch){
eval("standardredirect(\"".gettemplate("needposts" )."\",\"index.php\");");
}else{
eval("dooutput(\"".gettemplate("newthread")."\");" );
}

Downside to this hack. Applies to mods, admins, everyone. So as soon as he replies to 5 threads in my example he can make new threads. Done.. should work
Reply With Quote
  #8  
Old 08-11-2002, 09:08 PM
AsedaH AsedaH is offline
 
Join Date: Aug 2002
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this didnt work either........i tried modifying it but it either doesnt work at all or it completely prevents anyone from starting new threads. It doesnt change after x amount of replies. You still are unable to start a new thread.
Reply With Quote
  #9  
Old 08-22-2002, 08:46 AM
Logician's Avatar
Logician Logician is offline
 
Join Date: Nov 2001
Location: inside vb code
Posts: 4,449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

edit newthread.php, find:

PHP Code:
$forumid=verifyid("forum",$forumid); 
After that add:
PHP Code:
if ($bbuserinfo[posts] < AND ($bbuserinfo[usergroup]!=AND $bbuserinfo[usergroup]!=AND $bbuserinfo[usergroup]!=7)) {show_nopermission();exit;} 
Replace X with the post count number..
Reply With Quote
  #10  
Old 12-08-2002, 07:29 PM
user360 user360 is offline
 
Join Date: Sep 2002
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

^^ that refers to every forum though.. could it be made so you can choose which forum
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:57 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.04550 seconds
  • Memory Usage 2,251KB
  • 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
  • (2)bbcode_php
  • (3)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
  • (2)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