UBB.Dev
Posted By: CTM [6.7] [beta] Post Count-Restricted Forums 3.1.0 - 05/08/2004 4:33 PM
Modification Name: Post Count-Restricted Forums 3.1.0

Author(s): CTM

Description: Allows Administrators to restrict access to a forum by post count. Restriction is via Forum Settings section in Control Panel, and an unlimited number of forums can be set in this way. Administrators and Moderators of the post count-restricted forums can bypass the post count limit, in the same way that they are able to bypass other forum restrictions. Unauthorised users may not search post count-restricted forums or see their Recent Visitors information. Fully Wordlet-ised for easy modification and translation.

Demo: None

Requirements: UBB.classic 6.7.0 or higher

Download Link: Contact privately

Credits: Allen and Gizzy, for pushing me hard enough to release this wink

Updates:
Version 3.1.0:
Fixed small Recent Visitors loophole (thanks Ian Spence) - If you're using v3.0.0 find and remove the following in ubb_lib_pntf.cgi:

Code
&& (&UBB::LIB::PostCountRestriction($in->{f}) == 1)
Notes: So here it is, the updated version of PCRF at long last. Fixed all bugs from the 2.0.0 series, including that horrible Recent Visitors bug and all the Search bugs (as far as I can see). Thanks again to Allen, Gizzy and Ian Spence for encouraging me to get this done. Sorry I had to make you wait so long. frown

This mod might work on 6.6.x, but I'm not going to make it official until someone tries (I don't use 6.6 any more so I don't have anywhere to test it; if you do get it working on 6.6 then I'd be very grateful if you could tell me so others could know too).

Bug reports/problems/comments/flames all welcome, but please keep them in this topic because my PM inbox needs to be cleaned out first. Thanks smile
muchas gracias... very requested by a few wink
Who, me? :X... GJ wink ..
Posted By: CTM Re: [6.7] [beta] Post Count-Restricted Forums 3.1.0 - 05/12/2004 12:20 AM
Link to mod updated, the previous one was depricated earlier this afternoon. Sorry for any inconvenience caused to those trying to download this for a few hours earlier today. smile
Posted By: LK Re: [6.7] [beta] Post Count-Restricted Forums 3.1.0 - 05/12/2004 12:43 AM
Good job, the code looks very well. smile

Quote
quote:
UBBDev - Putting the "Ultimate" into Ultimate Bulletin Board
We're really into making a new motto, aren't we wink
I liked mine...
"UBBDev, where you too can render your fresh UBB.Classic install completely useless"
Ian Spence has found a problem that is caused by my code when users are not logged in and try to view a forum or topic. This problem is now fixed (PCRF v3.0.1). If you're using v3.0.0 find and remove the following in ubb_lib_pntf.cgi:

Code
&& (&UBB::LIB::PostCountRestriction($in->{f}) == 1)
Thanks Ian smile
Thank god i didn't install it yet :x...
Quote
Originally posted by Gizzy:

Thank god i didn't install it yet :x...

*laughs at the idea of Gizzy installing a mod* tipsy
hey; you're the one who asks me if you can install them to my board... Evidently UGN is Al's test board lol...

I don't even think my "mod's installed" post is accurate anymore; you should update the list lol...
I'm having a difficult time finding a couple pieces in ubb_search.cgi

In the instructions there's 3 sections to find in ubb_search.cgi, I can't find the last 2 smash
Well that's weird, because I wrote the thing and I can't find those bits either... smash

Does the mod work okay without those instructions? If so, those instructions must've come from a previous mod that I based the documentation on. If PCRFs are searchable by authenticated users and are unsearchable by unauthorised users without the bits you can't find, then those instructions mean nothing and I need to remove them. I'll take another bash at this after the exam today.

Thanks for the report Allen smile
I added this mod but the number of posts I set in a forum doesn't stay saved and the restriction doesn't work
Posted By: CTM Re: [6.7] [beta] Post Count-Restricted Forums 3.1.0 - 03/03/2005 11:53 PM
A few people have told me that this works on 6.7.1, and as far as I know there haven't been any code changes that would affect this mod. Try rehacking ubb_lib.cgi, ubb_forum_summary.cgi, and especially cp2_forums.cgi.
I tried it 3 times and it's still the same

What should be the room settings of the one I want to restrict? does it have to be set as a Private Room? does the room name must be checked under the Forum Permissions in the user profile?
I'm having the same problem, its not sticking to the restricted number, I save it then go back in to see if its still there in the CP but it is not.
Quote
Originally posted by AshtarRose:

I'm having the same problem, its not sticking to the restricted number, I save it then go back in to see if its still there in the CP but it is not.

Which version of UBB.classic are you using?
6.7.0
anyone trying to fix this?
Are you using any other mods (particularly ones that involve forums or the Control Panel) alongside this one?

I'll see if I can install the mod on a fresh copy of 6.7.0 later tonight, and if not I'll mess with the code a bit to see what's wrong. smile
Edit User Name
Category Minimize
Modwordlets6
Restricted Post count (obviously)
ModCPaddon6
Strike System
Statitics6
HitHack6
Spell6
No Spam Replies
Removed Member #
Posts don't count


In that order is how I installed them
I'm trying to do this for 6.6 and I can't find:

} # end MakeUBBERCookie

in ubb_lib.cgi
Posted By: LK Re: [6.7] [beta] Post Count-Restricted Forums 3.1.0 - 01/18/2006 10:24 PM
Add it to any end of a sub in ubb_lib, for example add it after:
Code
} # end RequireUserLogin
Posted By: God Re: [6.7] [beta] Post Count-Restricted Forums 3.1.0 - 01/18/2006 11:10 PM
Thanks..

I'm almost done installing this. Will this allow me to prevent users with a post count >25 from viewing and posting in certain areas or is it only for the search and recent viewers?
Posted By: God Re: [6.7] [beta] Post Count-Restricted Forums 3.1.0 - 01/18/2006 11:26 PM
Ok, I installed it and it seems that it does not work on 6.6... anyone think they could fix it or is 6.6 forgotten by all now?


I added a test forum and tried it with a test account and it didn't work. Now I can't delete the test forum for some reason. It gives me this error after I've deleted it and I try to access it.

Quote
quote:

An error has occurred:

No such file or directory opening NonCGIPath/Forum17 at CGIPath/ubb_lib_files.cgi line 878
main::NiceForumThreadsRebuild() called at CGIPath/ubb_lib_files.cgi line 436
main::GenerateDotThreadsFile() called at CGIPath/ubb_lib_files.cgi line 412
main::GetForumTopics() called at CGIPath/ubb_forum.cgi line 247
main::get_forum called at ultimatebb.cgi line 706

Please inform the board administration of this error so that they may fix the problem. Thank you!
I put all of the original files back and it still doesn't work.

Here's the debug info when I try to delete the testing forum for the second time.

quote:
[qb]Debug Information
StandardHTML stack trace:
at /home/s1xsan5/public_html/ubb/Templates//cp2_common.pl line 90 main::StandardHTML called at /home/s1xsan5/public_html/ubb/Templates//cp2_common.pl line 122 main::StandardHTML2() called at /home/s1xsan5/public_html/cgi-bin/cp2_lib.cgi line 739 main::CatchException() called at cp.cgi line 493 main::__ANON__() called at Modules/Error.pm line 303 eval {...} called at Modules/Error.pm line 294 Error::subs::run_clauses() called at Modules/Error.pm line 386 Error::subs::try() called at cp.cgi line 494
Extra information:

No such file or directory opening Forum17
Stack trace:
No such file or directory opening Forum17 at /home/s1xsan5/public_html/cgi-bin/cp2_forums.cgi line 309
main::cp2_page_forums_tab_delete called at /home/s1xsan5/public_html/cgi-bin/cp2_lib.cgi line 172
main::AutoHandle called at cp.cgi line 491
main::__ANON__() called at Modules/Error.pm line 368
eval {...} called at Modules/Error.pm line 367
Error::subs::try() called
[/qb]
Someone please help me out with this. My last complete backup is over two weeks old.
I sent CTM a PM this morning, but I can;t tell when the last time he was actually around. Is there anyway to get a copy of this? Dunno why I never grabbed it... I thought it was to create a forum that did'nt count posts I guess smile

If CTM or anyone can help me - [email protected]

Thanks!
You might give him until Monday or so to respond, some people access their accounts Mon-Fri.
No luck with contacting CTM. Anyone have it archived somewhere ? I really Really REALLY could use this modification.

Thanks,
I have stuff going back to 1999, but need to look for the 6.7.x series mods, they aren't on 2 of the archives I have here. I'll let you know if I find'em smile
Thanks! I'll check back every hour on the hour!!
wink

Give me until this weekend, we're getting the house appraised today and I've been swamped with work here there and everywhere. smile
Is it the weekend where you live too? smile

Hope your appraisel nets you more money or less taxes!
© UBB.Developers