![]() |
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/ |
Can't this be done with user groups anyway?
|
That means manually changing peoples' user groups...
|
Quote:
Code:
if($bbuserinfo["posts"] < 10 && $forumid<>11 && $forumid<>23) |
Awesome! Our vB is a professional board and we don't have much traffic. But, of course, people will post new threads all of the time without bothering to contribute to the community. Now I can force them to reply and contribute at least once without manually changing user groups.
Thanks! |
Please update for 2.2.0 when possible. It might not even need to be updated......Thanks!
|
this hack is very practical, and something I've been wanting for about 2 years (going all the way back to UBB). Thanks man
|
I did exactly the same hack a long time ago (never released it though), but with one different aspect: It's a combination of the number of post and how long the newbie is registered, this stops them from posting useless posts to get the right to open new topics. EG: When a newbie has 50 posts AND is registered for more than 30 days he can open new threads. I also made a special error message for it. I must say this is a very usefull hack on my forum, newbies can still ask to open a topic by asking a mod.
I allready suggested a new vb-feature to accomplish this kind of things automaticly: Create an option to let members fall into a kind of usergroup when they reach a certain number of posts. This way you can create to usergroups: one with new-thread-posting abilities and one withouth. Specify that a member falls into the second one only when they reach a certain amount of posts and when they're registered for a certain amount of days... voila :) This would make vb even more flexible. Endless possibilities |
is your coding similar to James' or a totally different method?
|
Quote:
|
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. |
thnx nethng that saves manual changing peeps privlidges level is a god send :)
|
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? |
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! |
Fantastic; thanks for that. I've altered the first message accordingly.
|
this works great nice work, but I was wondering if theres a way to have it enabled only in certain forums
|
no problem Ive found the answer
|
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.
|
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! |
Does this hack still work with the newest version of VB? i
|
2.2.3 approved!
|
will this work with the latest vb?
I really wish they would make something like this standard with all vb releases |
no but you can achieve this for forum permissions and usergroup promotions
|
All times are GMT. The time now is 04:52 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|