php forum
php mysql forum
php mysql smarty
 
Page 1 of 2 1 2 >
Topic Options
#203145 - 05/08/04 09:33 AM [6.7] [beta] Post Count-Restricted Forums 3.1.0
CTM Offline
Moderator / Da Masta

Registered: 11/23/01
Posts: 2567
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

Top
#203146 - 05/08/04 03:32 PM Re: [6.7] [beta] Post Count-Restricted Forums 3.1.0
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25366
Loc: Texas
muchas gracias... very requested by a few wink
_________________________
- Allen wavey
- What Drives You?

Top
#203147 - 05/08/04 06:59 PM Re: [6.7] [beta] Post Count-Restricted Forums 3.1.0
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5092
Loc: Portland, OR, USA
Who, me? :X... GJ wink ..
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#203148 - 05/11/04 05:20 PM Re: [6.7] [beta] Post Count-Restricted Forums 3.1.0
CTM Offline
Moderator / Da Masta

Registered: 11/23/01
Posts: 2567
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

Top
#203149 - 05/11/04 05:43 PM Re: [6.7] [beta] Post Count-Restricted Forums 3.1.0
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
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
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#203150 - 05/12/04 02:36 AM Re: [6.7] [beta] Post Count-Restricted Forums 3.1.0
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5092
Loc: Portland, OR, USA
I liked mine...
"UBBDev, where you too can render your fresh UBB.Classic install completely useless"
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#203151 - 05/12/04 01:39 PM Re: [6.7] [beta] Post Count-Restricted Forums 3.1.0
CTM Offline
Moderator / Da Masta

Registered: 11/23/01
Posts: 2567
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

Top
#203152 - 05/12/04 07:13 PM Re: [6.7] [beta] Post Count-Restricted Forums 3.1.0
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5092
Loc: Portland, OR, USA
Thank god i didn't install it yet :x...
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#203153 - 05/13/04 02:26 AM Re: [6.7] [beta] Post Count-Restricted Forums 3.1.0
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Quote:
Originally posted by Gizzy:

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



*laughs at the idea of Gizzy installing a mod* tipsy
_________________________
Code monkey like Fritos

Top
#203154 - 05/13/04 04:12 AM Re: [6.7] [beta] Post Count-Restricted Forums 3.1.0
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5092
Loc: Portland, OR, USA
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...
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#203155 - 05/24/04 12:33 AM Re: [6.7] [beta] Post Count-Restricted Forums 3.1.0
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25366
Loc: Texas
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
_________________________
- Allen wavey
- What Drives You?

Top
#203156 - 05/24/04 06:43 AM Re: [6.7] [beta] Post Count-Restricted Forums 3.1.0
CTM Offline
Moderator / Da Masta

Registered: 11/23/01
Posts: 2567
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

Top
#203157 - 03/02/05 11:03 PM Re: [6.7] [beta] Post Count-Restricted Forums 3.1.0
Tiger66 Offline
Member

Registered: 03/31/04
Posts: 58
Loc: Israel
I added this mod but the number of posts I set in a forum doesn't stay saved and the restriction doesn't work

Top
#203158 - 03/03/05 03:53 PM Re: [6.7] [beta] Post Count-Restricted Forums 3.1.0
CTM Offline
Moderator / Da Masta

Registered: 11/23/01
Posts: 2567
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.

Top
#203159 - 03/03/05 08:10 PM Re: [6.7] [beta] Post Count-Restricted Forums 3.1.0
Tiger66 Offline
Member

Registered: 03/31/04
Posts: 58
Loc: Israel
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?

Top
#203160 - 11/06/05 04:53 PM Re: [6.7] [beta] Post Count-Restricted Forums 3.1.0
AshtarRose Offline
Journeyman

Registered: 09/22/05
Posts: 134
Loc: Orlando, FL
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.
_________________________
http://www.riddledindarkness.com * Yeah I need the Crazy Mods.

Top
#203161 - 11/12/05 06:16 PM Re: [6.7] [beta] Post Count-Restricted Forums 3.1.0
CTM Offline
Moderator / Da Masta

Registered: 11/23/01
Posts: 2567
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?

Top
#203162 - 11/13/05 11:57 PM Re: [6.7] [beta] Post Count-Restricted Forums 3.1.0
AshtarRose Offline
Journeyman

Registered: 09/22/05
Posts: 134
Loc: Orlando, FL
6.7.0
_________________________
http://www.riddledindarkness.com * Yeah I need the Crazy Mods.

Top
#203163 - 11/26/05 02:25 AM Re: [6.7] [beta] Post Count-Restricted Forums 3.1.0
AshtarRose Offline
Journeyman

Registered: 09/22/05
Posts: 134
Loc: Orlando, FL
anyone trying to fix this?
_________________________
http://www.riddledindarkness.com * Yeah I need the Crazy Mods.

Top
#203164 - 11/26/05 01:22 PM Re: [6.7] [beta] Post Count-Restricted Forums 3.1.0
CTM Offline
Moderator / Da Masta

Registered: 11/23/01
Posts: 2567
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

Top
#203165 - 11/26/05 10:10 PM Re: [6.7] [beta] Post Count-Restricted Forums 3.1.0
AshtarRose Offline
Journeyman

Registered: 09/22/05
Posts: 134
Loc: Orlando, FL
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
_________________________
http://www.riddledindarkness.com * Yeah I need the Crazy Mods.

Top
#203166 - 01/18/06 01:15 AM Re: [6.7] [beta] Post Count-Restricted Forums 3.1.0
God Offline
Member

Registered: 09/16/05
Posts: 44
I'm trying to do this for 6.6 and I can't find:

} # end MakeUBBERCookie

in ubb_lib.cgi

Top
#203167 - 01/18/06 02:24 PM Re: [6.7] [beta] Post Count-Restricted Forums 3.1.0
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
Add it to any end of a sub in ubb_lib, for example add it after:
Code:
} # end RequireUserLogin
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#203168 - 01/18/06 03:10 PM Re: [6.7] [beta] Post Count-Restricted Forums 3.1.0
God Offline
Member

Registered: 09/16/05
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?

Top
#203169 - 01/18/06 03:26 PM Re: [6.7] [beta] Post Count-Restricted Forums 3.1.0
God Offline
Member

Registered: 09/16/05
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:
quote:</font><hr />
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!<hr /></blockquote>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.

<blockquote><font class="small">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.

Top
#316648 - 01/26/08 04:18 AM Re: [6.7] [beta] Post Count-Restricted Forums 3.1.0 [Re: CTM]
Painfool Offline
Member

Registered: 08/14/00
Posts: 182
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 - mike@memphispcguy.com

Thanks!

Top
#316653 - 01/27/08 11:08 AM Re: [6.7] [beta] Post Count-Restricted Forums 3.1.0 [Re: Painfool]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25366
Loc: Texas
You might give him until Monday or so to respond, some people access their accounts Mon-Fri.
_________________________
- Allen wavey
- What Drives You?

Top
#316679 - 01/31/08 09:05 PM Re: [6.7] [beta] Post Count-Restricted Forums 3.1.0 [Re: CTM]
Painfool Offline
Member

Registered: 08/14/00
Posts: 182
No luck with contacting CTM. Anyone have it archived somewhere ? I really Really REALLY could use this modification.

Thanks,

Top
#316682 - 02/06/08 11:16 AM Re: [6.7] [beta] Post Count-Restricted Forums 3.1.0 [Re: Painfool]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25366
Loc: Texas
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
_________________________
- Allen wavey
- What Drives You?

Top
#316683 - 02/06/08 04:50 PM Re: [6.7] [beta] Post Count-Restricted Forums 3.1.0 [Re: AllenAyres]
Painfool Offline
Member

Registered: 08/14/00
Posts: 182
Thanks! I'll check back every hour on the hour!!

Top
#316684 - 02/07/08 01:04 PM Re: [6.7] [beta] Post Count-Restricted Forums 3.1.0 [Re: Painfool]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25366
Loc: Texas
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
_________________________
- Allen wavey
- What Drives You?

Top
#316694 - 02/10/08 02:38 PM Re: [6.7] [beta] Post Count-Restricted Forums 3.1.0 [Re: AllenAyres]
Painfool Offline
Member

Registered: 08/14/00
Posts: 182
Is it the weekend where you live too? smile

Hope your appraisel nets you more money or less taxes!

Top
Page 1 of 2 1 2 >


Moderator:  Charles, Gizmo