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 11-03-2003, 06:05 PM
Rampag33's Avatar
Rampag33 Rampag33 is offline
 
Join Date: Jun 2002
Location: Houston, Texas
Posts: 162
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thx but I need a minimum post to view a thread
that will make it to where you need a certain amount of post to make a new thread.

Ii'm looking for one to view a thread.
Reply With Quote
  #12  
Old 11-03-2003, 06:09 PM
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
Posts: 3,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Whops, I edited the wrong file. Let me fix
Reply With Quote
  #13  
Old 11-03-2003, 06:14 PM
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
Posts: 3,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Open showthread.php and find:
PHP Code:
if ($noshutdownfunc) { 
Above add:
PHP Code:
if ($bbuserinfo[posts] < 20)
{
eval(
"standarderror(\"".gettemplate("error_notenoughposts")."\");");

(You can change 20 to whatever you want)

Create a new template called 'error_notenoughposts' with the contents:
Code:
You do not have enough posts to view this thread
Keep in mind that the only way users will be able to post is via threads
Reply With Quote
  #14  
Old 11-03-2003, 06:38 PM
Rampag33's Avatar
Rampag33 Rampag33 is offline
 
Join Date: Jun 2002
Location: Houston, Texas
Posts: 162
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

from this code it looks like it would do all threads, and I need to to specific forums for this

ex. general chat - minum would be 0
for movies minimum would be 20
Reply With Quote
  #15  
Old 11-03-2003, 06:47 PM
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
Posts: 3,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Alright, will work in it
Reply With Quote
  #16  
Old 11-03-2003, 09:27 PM
Rampag33's Avatar
Rampag33 Rampag33 is offline
 
Join Date: Jun 2002
Location: Houston, Texas
Posts: 162
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thank you
Reply With Quote
  #17  
Old 11-04-2003, 06:24 AM
assassingod's Avatar
assassingod assassingod is offline
 
Join Date: Jul 2002
Posts: 3,337
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do something like this:
find:
PHP Code:
if ($noshutdownfunc) { 
above:
PHP Code:
if ($bbuserinfo['posts'] < 20 AND $thread['forumid'] == 4)
{
  eval(
"standarderror(\"".gettemplate("error_notenouoghposts")."\");");

and create the template that i mentioned above

and for every forum you want to add, place after 4
PHP Code:
OR $bbuserinfo['posts'] == XX AND $thread['forumid'] == XX 
Reply With Quote
  #18  
Old 11-04-2003, 01:33 PM
Rampag33's Avatar
Rampag33 Rampag33 is offline
 
Join Date: Jun 2002
Location: Houston, Texas
Posts: 162
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

unfortunately it didn't work. I made the forum count 9999 just to make damn sure I couldn't get in it and double checc the forumid it didn't work.
Reply With Quote
  #19  
Old 11-04-2003, 02:13 PM
Lesane's Avatar
Lesane Lesane is offline
 
Join Date: Oct 2001
Location: The Netherlands
Posts: 1,149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The code of 'assassingod' is good and therefor it must work. Are you sure that you mean no access to threads or do you mean that you want to limit the access to forums (so no view of threads listed in that forum, file: forumdisplay.php) ?
Reply With Quote
  #20  
Old 11-04-2003, 02:24 PM
Sylvus Sylvus is offline
 
Join Date: Apr 2003
Location: Toronto
Posts: 156
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This code worked for me.

Code:
if ($bbuserinfo['posts'] < 4000 AND $thread['forumid'] == 35)
{
  eval("standarderror(\"".gettemplate("error_notenouoghposts")."\");");
}
My subforum #35 (the Announcement Forum) would not let me view any thread within that forum #35 since I had under 4000 posts. I could still go into the Announcement Forum and see all the threads that were posted, but attemping to read any of them barfed out the error template noted above (which you must create).

Only thing I can say is you have the wrong forumid for the forum you are attemping to view.

If your forums are like this:

The Bar
- General Chit Chat
- Spam stuff
- Hot women

And you want this code to only work for General Chit Chat, it's the General Chit Chat forumid # that you must use and not "The Bar" forumid.

v2.3.0 running here. Works like a charm! Thanks assassin!

Syl...
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 11:05 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.04435 seconds
  • Memory Usage 2,261KB
  • 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_code
  • (5)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
  • (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_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