The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#11
|
||||
|
||||
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. |
#12
|
||||
|
||||
Whops, I edited the wrong file. Let me fix
|
#13
|
||||
|
||||
Open showthread.php and find:
PHP Code:
PHP Code:
Create a new template called 'error_notenoughposts' with the contents: Code:
You do not have enough posts to view this thread |
#14
|
||||
|
||||
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 |
#15
|
||||
|
||||
Alright, will work in it
|
#16
|
||||
|
||||
thank you
|
#17
|
||||
|
||||
Do something like this:
find: PHP Code:
PHP Code:
and for every forum you want to add, place after 4 PHP Code:
|
#18
|
||||
|
||||
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.
|
#19
|
||||
|
||||
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) ?
|
#20
|
|||
|
|||
This code worked for me.
Code:
if ($bbuserinfo['posts'] < 4000 AND $thread['forumid'] == 35) { eval("standarderror(\"".gettemplate("error_notenouoghposts")."\");"); } 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... |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|