|
Joined: Nov 2001
Posts: 1,704
Moderator / Da Masta
|
Moderator / Da Masta
Joined: Nov 2001
Posts: 1,704 |
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 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: && (&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. 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 
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
muchas gracias... very requested by a few 
|
|
|
|
Joined: Jan 2000
Posts: 5,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 Likes: 20 |
Who, me? :X... GJ  ..
|
|
|
|
Joined: Nov 2001
Posts: 1,704
Moderator / Da Masta
|
Moderator / Da Masta
Joined: Nov 2001
Posts: 1,704 |
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. 
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Good job, the code looks very well. quote: UBBDev - Putting the "Ultimate" into Ultimate Bulletin Board We're really into making a new motto, aren't we 
|
|
|
|
Joined: Jan 2000
Posts: 5,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 Likes: 20 |
I liked mine... "UBBDev, where you too can render your fresh UBB.Classic install completely useless"
|
|
|
|
Joined: Nov 2001
Posts: 1,704
Moderator / Da Masta
|
Moderator / Da Masta
Joined: Nov 2001
Posts: 1,704 |
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: && (&UBB::LIB::PostCountRestriction($in->{f}) == 1) Thanks Ian 
|
|
|
|
Joined: Jan 2000
Posts: 5,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 Likes: 20 |
Thank god i didn't install it yet :x...
|
|
|
|
Joined: Jan 2003
Posts: 3,456 Likes: 2
Master Hacker
|
Master Hacker
Joined: Jan 2003
Posts: 3,456 Likes: 2 |
Originally posted by Gizzy:
Thank god i didn't install it yet :x...
*laughs at the idea of Gizzy installing a mod* 
|
|
|
|
Joined: Jan 2000
Posts: 5,833 Likes: 20
UBBDev / UBBWiki Owner Time Lord
|
UBBDev / UBBWiki Owner Time Lord
Joined: Jan 2000
Posts: 5,833 Likes: 20 |
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...
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
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 
|
|
|
|
Joined: Nov 2001
Posts: 1,704
Moderator / Da Masta
|
Moderator / Da Masta
Joined: Nov 2001
Posts: 1,704 |
Well that's weird, because I wrote the thing and I can't find those bits either... 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 
|
|
|
|
Joined: Mar 2004
Posts: 58
Member
|
Member
Joined: Mar 2004
Posts: 58 |
I added this mod but the number of posts I set in a forum doesn't stay saved and the restriction doesn't work
|
|
|
|
Joined: Nov 2001
Posts: 1,704
Moderator / Da Masta
|
Moderator / Da Masta
Joined: Nov 2001
Posts: 1,704 |
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.
|
|
|
|
Joined: Mar 2004
Posts: 58
Member
|
Member
Joined: Mar 2004
Posts: 58 |
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?
|
|
|
|
Joined: Sep 2005
Posts: 136
Journeyman
|
Journeyman
Joined: Sep 2005
Posts: 136 |
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.
|
|
|
|
Joined: Nov 2001
Posts: 1,704
Moderator / Da Masta
|
Moderator / Da Masta
Joined: Nov 2001
Posts: 1,704 |
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?
|
|
|
|
Joined: Sep 2005
Posts: 136
Journeyman
|
Journeyman
Joined: Sep 2005
Posts: 136 |
|
|
|
|
Joined: Sep 2005
Posts: 136
Journeyman
|
Journeyman
Joined: Sep 2005
Posts: 136 |
anyone trying to fix this?
|
|
|
|
Joined: Nov 2001
Posts: 1,704
Moderator / Da Masta
|
Moderator / Da Masta
Joined: Nov 2001
Posts: 1,704 |
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. 
|
|
|
|
Joined: Sep 2005
Posts: 136
Journeyman
|
Journeyman
Joined: Sep 2005
Posts: 136 |
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
|
|
|
|
Joined: Sep 2005
Posts: 44
Member
|
Member
Joined: Sep 2005
Posts: 44 |
I'm trying to do this for 6.6 and I can't find:
} # end MakeUBBERCookie
in ubb_lib.cgi
|
|
|
|
Joined: Mar 2001
Posts: 7,394
Admin / Code Breaker
|
Admin / Code Breaker
Joined: Mar 2001
Posts: 7,394 |
Add it to any end of a sub in ubb_lib, for example add it after:
|
|
|
|
Joined: Sep 2005
Posts: 44
Member
|
Member
Joined: Sep 2005
Posts: 44 |
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?
|
|
|
|
Joined: Sep 2005
Posts: 44
Member
|
Member
Joined: Sep 2005
Posts: 44 |
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:
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.
|
|
|
|
Joined: Aug 2000
Posts: 178
Member
|
Member
Joined: Aug 2000
Posts: 178 |
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  If CTM or anyone can help me - [email protected]Thanks!
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
You might give him until Monday or so to respond, some people access their accounts Mon-Fri.
|
|
|
|
Joined: Aug 2000
Posts: 178
Member
|
Member
Joined: Aug 2000
Posts: 178 |
No luck with contacting CTM. Anyone have it archived somewhere ? I really Really REALLY could use this modification.
Thanks,
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
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 
|
|
|
|
Joined: Aug 2000
Posts: 178
Member
|
Member
Joined: Aug 2000
Posts: 178 |
Thanks! I'll check back every hour on the hour!!
|
|
|
|
Joined: Mar 2000
Posts: 21,079 Likes: 3
I type Like navaho
|
I type Like navaho
Joined: Mar 2000
Posts: 21,079 Likes: 3 |
 Give me until this weekend, we're getting the house appraised today and I've been swamped with work here there and everywhere. 
|
|
|
|
Joined: Aug 2000
Posts: 178
Member
|
Member
Joined: Aug 2000
Posts: 178 |
Is it the weekend where you live too?  Hope your appraisel nets you more money or less taxes!
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 417
Joined: November 2001
|
|
Forums63
Topics37,575
Posts293,930
Members13,823
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|