The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Details »» | |||||||||||||||||||||||||||
One of our forum guides asked...
Quote:
1. Edit newthread.php to add the code in bold... Quote:
Template name: error_forumnewbie Template set: your standard set (Default) Template: "Thanks for trying to post a new message.<P>Until you've taken part in a few discussions, you can only reply, not post a new topic. Try searching for what you were going to post about, using the "Search" facility, and see if you can add your comment to something there." 3. Upload newthread.php This will create a standard UBB error if you try to create a new topic and you've posted less than ten messages. (Change the "10" in the code snippet above to change the number of messages needed to be able to post new threads). Improvements... Want to turn this off for a particular forum? Look at the forum's URL in your browser to to discover its "forumid" number. It's the one right at the end of the URL. Then change the "if" statement above to... if($bbuserinfo["posts"] < 10 && $forumid<>11 && $forumid<>23) This will let newbies to post new topics to my forum number 11 or forum number 23. Want, also, to insist that this user has been a member for longer than two days? Then change the "if" statement above to... if(($bbuserinfo["posts"] < 10 || ($bbuserinfo["joindate"]+86400*2) > (time())) && forumid<>11 && forumid<>23) The "86400 * 2" is the bit that mentions the days... change the second number to "1" to make the probation period only one day, or "5" to make it 5 days. Hope you find this useful: see it in action at http://forums.mediauk.com/ Show Your Support
|
Comments |
#12
|
|||
|
|||
Quote:
A control panel to set these things would be nice, but I'm not really that clever. (Later Now updated (see the top message). Note that the timescale and the number of posts both have to be met, so a user who posts 15 replies in one day still can't post a new topic. Presumably this is what you wanted... and it sounds a great idea. |
#13
|
|||
|
|||
thnx nethng that saves manual changing peeps privlidges level is a god send
|
#14
|
|||
|
|||
I just found a BIG problem with this hack. Users who are not logged in get the forumnewbie error instead of the log in prompt.
Is there any way to exclude unregistered users from the forumnewbie error so they get the regular log in screen when trying to post? |
#15
|
|||
|
|||
Fixed!
Just move the hacked code down a few lines. Put the code after this in newthread.php: ------- $permissions=getpermissions($forumid); if (!$permissions[canview] or !$permissions[canpostnew]) { show_nopermission(); } ------- This will let the correct error message to display for uncookied users. Damn, if someone hadn't emailed me complaining that they could not post unless they had 1 post already, when they really weren't logged in, I never would have caught this! |
#16
|
|||
|
|||
Fantastic; thanks for that. I've altered the first message accordingly.
|
#17
|
||||
|
||||
this works great nice work, but I was wondering if theres a way to have it enabled only in certain forums
|
#18
|
||||
|
||||
no problem Ive found the answer
|
#19
|
|||
|
|||
You'll have noticed that it is possible to switch this off for particular forums, although it's a bit clunky. It would be good to add this to the control panel in some way, but I don't understand enough about that to do it.
|
#20
|
|||
|
|||
With the addition of some code on the https://vborg.vbsupport.ru/showthread.php?s=&threadid=14075]moderate a user[/url] hack, I've now removed this hack from my board; sticking users on auto moderation works better for some problems we're having with a user who won't go away.
I'll still keep maintaining this one, mind, but thought it's only fair to mention it! |
#21
|
|||
|
|||
Does this hack still work with the newest version of VB? i
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|