Page 1 of 5

Disallow links before x posts

Posted: Wed Apr 29, 2009 5:38 pm
by Extensions Robot
Modification name: Disallow links before x posts
Author: tumba25
Modification description: Gives the option to disallow users to post url's before they have posted x number of posts.
The number of posts required to post links is configurable in ACP > General > Post settings.
Modification version: 1.0.1
Tested on phpBB version: 3.0.4

Download file: disallow_links_before_x_posts_101.zip
File size: 23.32 KiB

Modification overview page: View

The phpBB Team is not responsible nor required to provide support for this modification. By installing this MOD, you acknowledge that the phpBB Support Team or phpBB Extension Customisations Team may not be able to provide support.

-->Modification support<--

Disallow links before x posts

Posted: Wed Apr 29, 2009 5:38 pm
by Paul
Modification validated/released

Notes:

Disallow links before x posts

Posted: Wed Apr 29, 2009 5:38 pm
by tumba25
Thank you MOD robot, MOD team and Paul.

The setting is in ACP > General > Post settings.
Image

Re: Disallow links before x posts

Posted: Wed Apr 29, 2009 6:14 pm
by RMcGirr83
Congrats Tumba25. Please correct me where wrong.
  • img bbcode will still work?
    appears that admins are affected whereas moderators (for the specific forum) are not?

Re: Disallow links before x posts

Posted: Wed Apr 29, 2009 6:19 pm
by tumba25
img-bbcode will still work, yes.
Admins should have global moderator permissions so they should not be affected.

Re: Disallow links before x posts

Posted: Wed Apr 29, 2009 6:26 pm
by RMcGirr83
tumba25 wrote: Admins should have global moderator permissions so they should not be affected.
If admin does not have global moderator permissions (aka not in the global moderator group) then it will affect them. Is that correct?

I was lead to believe that admins aren't automatically given global moderator permissions. Is that not the case?

Not complaining, just asking. ;)

Re: Disallow links before x posts

Posted: Wed Apr 29, 2009 7:09 pm
by tumba25
Admins are not automatically global moderators (I think). But if you don't trust your admins to moderate then you probably don't trust the to post links either. ;)

Re: Disallow links before x posts

Posted: Wed Apr 29, 2009 7:38 pm
by RMcGirr83
Question isn't whether or not you trust your admins, some may not want to be a moderator which doesn't mean they can't be an administrator. Simple enough fix really anyway.

Semantics I guess. :)

Re: Disallow links before x posts

Posted: Wed Apr 29, 2009 10:47 pm
by Tophon
Found a small bug.

When post count is set to a number, guests (and I am also assuming members below that postcount) will not see url and img tag combinations. It will just be the url tag and then the image, as opposed to a clickable image.

Re: Disallow links before x posts

Posted: Sun May 03, 2009 2:02 pm
by tumba25
Thanks, I'll take a look at this. I'm sure I did check this at some point, hmm.

Re: Disallow links before x posts

Posted: Sun May 03, 2009 7:07 pm
by Tophon
It was seen on leftys announcement mod so assuming the bug was also on posts with the same img/url combinations too.

Screen:
Image

Other than that little issue, a great mod!

Re: Disallow links before x posts

Posted: Tue May 05, 2009 1:10 am
by tumba25
I can't reproduce that. Tested both on a fresh install and in my test forum.

Guests sees the links as they are supposed to. And so do users that are not allowed to post links. Both with and without images. http://skripter.se/viewtopic.php?f=6&t=200

It must be some other MOD you have installed that are causing that to happen.

So sorry RMcGirr83, your admins will still not be allowed to post links. :mrgreen:

Re: Disallow links before x posts

Posted: Tue May 05, 2009 6:16 am
by glinjunk
Just installed this mod but when I went to the post setting screen the setting for the number of post is not shown. I have purged the cache multiple times. When I installed this on my test server at home I am able to configure the post number. I have installed the mod with AutoMod.

Re: Disallow links before x posts

Posted: Tue May 05, 2009 10:27 am
by RMcGirr83
tumba25 wrote:So sorry RMcGirr83, your admins will still not be allowed to post links. :mrgreen:
There's only one and you're "talking" to him.

BTW, how come moderators aren't affected but low life admins are?

Anyway a quick fix so that admins can post links would be, after installing this mod, find in each file this mod has you edit

Code: Select all

$auth->acl_get('m_', $forum_id)
and change it to this

Code: Select all

$auth->acl_get('m_', $forum_id) || $auth->acl_get('a_')
so there. :P

:lol:

Re: Disallow links before x posts

Posted: Tue May 05, 2009 12:32 pm
by tumba25
RMcGirr83 wrote:BTW, how come moderators aren't affected but low life admins are?
Someone, probably my dog, did forget them. Mostly admins are also moderators. I am at all my boards. And for those boards with more than one admin, all admins are also moderators. Admins want moderating rights.

I know it's not a big thing to fix, but because of what I said above I don't think it's worth a new version. That has been fixed locally and will be in the next version.