Deny Posting Text and BBcode Until x Posts

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in here. No new MODs will be accepted into the MOD Database for phpBB2
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.

Rating:

Excellent!
0
No votes
Very Good
0
No votes
Good
2
100%
Fair
0
No votes
Poor
0
No votes
 
Total votes: 2

Extensions Robot
Extensions Robot
Extensions Robot
Posts: 28900
Joined: Sat Aug 16, 2003 7:36 am

Deny Posting Text and BBcode Until x Posts

Post by Extensions Robot »

Modification name: Deny Posting Text and BBcode Until x Posts
Author: alexi02
Modification description: If the user is below the post restriction and they post any text in the text list or use BBcode then their post is denied from being posted
Modification version: 1.0.2
Tested on phpBB version: 2.0.22

Download file: deny_posting_tex
File size: 6772 Bytes

Modification overview page: View


Selected tags:
  1. category
    1. Admin Tools
  2. phpbb
    1. 2.0.21
    2. 2.0.22
Support for this modification needs to be asked within this topic. The phpBB Team is not responsible or required to give anyone support for this modification. By installing this MOD, you acknowledge that the phpBB Support Team or phpBB MODifications Team may not be able to provide support.

This MOD has only been tested by the phpBB MOD Team with the phpBB version listed in the topic. It may not work in any other versions of phpBB.
Last edited by Extensions Robot on Mon Jul 02, 2007 6:44 pm, edited 2 times in total.
(this is a non-active account manager for the phpBB Extension Customisations Team)
MarkTheDaemon
Former Team Member
Posts: 2771
Joined: Thu Oct 20, 2005 2:42 am
Location: United Kingdom
Name: Mark Barnes

Post by MarkTheDaemon »

MOD Validated/Released

Notes:
User avatar
IanL
Registered User
Posts: 437
Joined: Sat Apr 24, 2004 1:18 am
Location: Southern California
Contact:

Post by IanL »

What do you mean by 'denies posting text' ? that makes it sound like the user cant make any post at all until their post count is at a certain number. And if they cant make any posts at all, well, then i dont see their post count ever getting high enough ;)

Not using bb code i understand (and like).
alexi02
Registered User
Posts: 271
Joined: Fri Mar 05, 2004 2:15 am
Location: Australia
Contact:

Post by alexi02 »

It means that they can't post specific text that you have specified in the ACP.
User avatar
IanL
Registered User
Posts: 437
Joined: Sat Apr 24, 2004 1:18 am
Location: Southern California
Contact:

Post by IanL »

alexi02 wrote: It means that they can't post specific text that you have specified in the ACP.


oh ok cool. so we get to see up a list of keywords that will get rejected?
kyle1745
Registered User
Posts: 173
Joined: Thu Nov 14, 2002 2:21 am

Post by kyle1745 »

Im not sure this is working properly.

I have thrown this into my test forum, and with a new test user I get "BBcode is not allowed until you have made 5 posts." By just posting a msg with the word "test" in it...

Is it this a possible this is a problem with 2.0.22?
dojo.ro
Registered User
Posts: 39
Joined: Wed Aug 04, 2004 11:42 am

Post by dojo.ro »

The problem now is that my signature which contains urls is not working and I have hundreds of posts, not just the few I set as requirement. all my posts are not with URL ...

Did I do something wrong? global $userdata, $user_ip; is found in more places in functions_post.php ... which is the right place?
Webmaster Tips & Tricks - forums, articles, tutorials, free exclusive graphics and forum themes
My blog
alexi02
Registered User
Posts: 271
Joined: Fri Mar 05, 2004 2:15 am
Location: Australia
Contact:

Post by alexi02 »

Thanks for your feedback.

There is a problem with the includes/functions_post.php file that keeps giving the BBcode is not allowed until you have made x posts error.

Find

Code: Select all

if ($post_message != $newmessage) {
Replace with

Code: Select all

if ($post_message != $bbencode_message) {
alexi02
Registered User
Posts: 271
Joined: Fri Mar 05, 2004 2:15 am
Location: Australia
Contact:

Post by alexi02 »

dojo.ro wrote: Did I do something wrong? global $userdata, $user_ip; is found in more places in functions_post.php ... which is the right place?


You would want the global $userdata, $user_ip; that is found after function submit_post
tigersoft
Registered User
Posts: 6
Joined: Fri Oct 13, 2006 5:08 pm
Contact:

Post by tigersoft »

Hi,

I am still sitting with same problem.

BBcode is not allowed until you have made 20 posts.

When i try to post some text, so i get the given message. Please help... Tried with a username that have over example given posts, he can post text. But all usersnames under given posts can not post normal text.

Thanks.
alexi02
Registered User
Posts: 271
Joined: Fri Mar 05, 2004 2:15 am
Location: Australia
Contact:

Post by alexi02 »

Have you tried the above bug fix?
tigersoft
Registered User
Posts: 6
Joined: Fri Oct 13, 2006 5:08 pm
Contact:

Post by tigersoft »

Now i have tried bug fix, i can post text now. And it works as disabled text words. example xxx word i put in. But posting bbcode is not being disabled.

And bbcode disabling is activated in settings.
alexi02
Registered User
Posts: 271
Joined: Fri Mar 05, 2004 2:15 am
Location: Australia
Contact:

Post by alexi02 »

Try echoing $bbencode_message and $post_message in functions_post.php before if ($post_message != $bbencode_message) {
tigersoft
Registered User
Posts: 6
Joined: Fri Oct 13, 2006 5:08 pm
Contact:

Post by tigersoft »

I have tried this code:

Code: Select all

echo $post_message;
echo $bbencode_message;
         if ($post_message != $bbencode_message) {
                 $bbcode_error = sprintf($lang['Deny_text_bbcode_error_bbcode'], $board_config['deny_post_restrict']);
But still same problem. Tried also to echo $post_message and $bbencode_message once at time but no better.
alexi02
Registered User
Posts: 271
Joined: Fri Mar 05, 2004 2:15 am
Location: Australia
Contact:

Post by alexi02 »

When you echo'ed $post_message and $bbencode_message were they the same?

$bbencode_message should be different from $post_message when BBcode has been posted.
Post Reply

Return to “[2.0.x] MOD Database Releases”