The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
Can someone please tell me how to send a redirect message to a user when they try to click on NEW THREAD or POST REPLY in a forum that is not open for posting to registered users? I'd like it to work like it does here at vb.org (i.e. the following):
Sorry! This forum is not accepting new posts. I have a forum set up for a program hints, tips and tricks and the only ones allowed to post there are the mods of the forum and the Admin and Supermod. It is an information forum only. Also, can you please also tell me how to get the users date (offset according to time offset and day of the week to display in $timezone. I guess I've been away a little too long. This is elementary stuff, I know. ![]() |
#2
|
||||
|
||||
![]()
hmm, not sure if i understood right
open newreply.php find PHP Code:
PHP Code:
and replace the xx with the special forumid ![]() |
#3
|
||||
|
||||
![]()
Thank you Stefan, that is exactly what I was looking for. You have once again been proven to be "The Man!"
![]() How can I do it for multiple threads? I have about 6 I need it for right now. Also, I need to do it for the newthread, too. Would that be the same code? |
#4
|
||||
|
||||
![]()
Stefan, is this the code I need for the newthread.php? I wanted to run it by you to make sure I did it right?
find (first instance of code): Code:
$permissions=getpermissions($forumid); if (!$permissions[canview] or !$permissions[canpostnew]) { show_nopermission(); } Code:
$permissions=getpermissions($forumid); if (!$permissions[canview] or !$permissions[canpostnew]) { if($foruminfo['forumid'] != 13) { show_nopermission(); } else { eval("standarderror(\"".gettemplate("error_cannotposthere")."\");"); } } |
#5
|
||||
|
||||
![]()
last one first
![]() PHP Code:
![]() so, first one now do you mean do it by multiple threads or multiple forums? forums: instead of this PHP Code:
PHP Code:
![]() replace xx, yy and zz |
#6
|
||||
|
||||
![]()
Thank you again, sir.
![]() Code:
if(!in_array($threadinfo['forumid'], array(xx, yy, zz)) for newreply.php: PHP Code:
PHP Code:
newreply.php PHP Code:
And thank you again, Stefan. ![]() |
#7
|
||||
|
||||
![]()
yes alright so
![]() ups, forgot a bracket *gg* no there is no limit there threads in newthread.php think that's a bit impossible ![]() |
#8
|
||||
|
||||
![]()
You're right, my mistake. I guess I just got so caught up in it, I wasn't thinking again.
![]() ![]() |
#9
|
||||
|
||||
![]() ![]() np, you're welcome as always ![]() |
#10
|
||||
|
||||
![]()
Can I ask another favor?
![]() This is from the first message: Quote:
7:33 am on Saturday, Dec 7, 2002 or something to that effect. I don't know about anyone else, but since the twins arrived 3 weeks ago, I don't know what day it is or even the time, most of the time, anymore. But only in a good way, you know what I mean? ![]() |
![]() |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|