[BETA] Deny Posting Text and BBcode Until x Posts 1.0.1

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
alexi02
Registered User
Posts: 271
Joined: Fri Mar 05, 2004 2:15 am
Location: Australia
Contact:

[BETA] Deny Posting Text and BBcode Until x Posts 1.0.1

Post by alexi02 »

MOD Title: Deny Posting Specific Text and BBcode Until x Posts
MOD 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
MOD Version: 1.0.1

MOD Features:
- Specify certain text that users below the post restriction can't post
- Allow or Disallow users below the post restriction to use BBcode
- Able to change the post restriction

MOD Download: Deny Posting Specific Text and BBcode Until x Posts 1.0.1 (6.61 KB)
Last Stable version: N/A

MOD Screenshot:
ACP , Posting & Posting Denied

MOD History:
2006-11-16 - Version 1.0.1
- Using sprintf() instead of preg_replace()
- Removed 'Delete' and 'Information' language entries as they are already in phpBB
- Changed <BR /> to <br /> in the tpl file
- Using intval instead of htmlspecialchars on the id
- Changed some brackets to be on newlines
- Added addslashes() to correctly insert \ and ' values
- Using bbencode_second_pass() and comparing it to the original message for any bbcode changes
- Added Admin checking so their posts aren't been checked for text or BBcode

2006-11-03 - Version 1.0.0
- Improved the code

2006-09-26 - Version 0.3.0
- Text List in ACP improved

2006-09-26 - Version 0.2.0
- ACP added

2006-09-23 - Version 0.1.0
- Initial Release (for phpBB 2.0.21)

Author Notes:
A quick solution to stop those spammers who post URLs on their first post.


Please post any problems or ways to improve this mod here.
As requested from http://www.phpbb.com/phpBB/viewtopic.php?t=447270

alexi02.
Last edited by alexi02 on Sat Nov 18, 2006 4:29 am, edited 2 times in total.
User avatar
kber
Registered User
Posts: 986
Joined: Sun May 07, 2006 9:22 am
Location: Egypt
Contact:

Post by kber »

i,ll chek it out
Hello All
alexi02
Registered User
Posts: 271
Joined: Fri Mar 05, 2004 2:15 am
Location: Australia
Contact:

Post by alexi02 »

2006-09-26 - Version 0.3.0
- Text List in ACP improved
Peter77sx
Registered User
Posts: 3260
Joined: Wed Nov 09, 2005 2:51 pm

Post by Peter77sx »

Hello, thanks for reading my request and recommending your MOD. it does exactly what I was looking for! I will be using this to help stop spammers/bots who get through registration and make thier posts. 8)


Already installed and works great. Very easy install - thank you! :)
User avatar
kber
Registered User
Posts: 986
Joined: Sun May 07, 2006 9:22 am
Location: Egypt
Contact:

Post by kber »

Code: Select all

Warning: main(): Unable to access ./../language/lang_english/lang_deny_text_bbcode.php in /home/....../public_html/forum/admin/admin_deny_text_and_bbcode.php on line 39
alexi02
Registered User
Posts: 271
Joined: Fri Mar 05, 2004 2:15 am
Location: Australia
Contact:

Post by alexi02 »

Hm, maybe try changing lang_deny_text_bbcode.php permission to 755?
User avatar
kber
Registered User
Posts: 986
Joined: Sun May 07, 2006 9:22 am
Location: Egypt
Contact:

Post by kber »

alexi02 wrote: Hm, maybe try changing lang_deny_text_bbcode.php permission to 755?

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

Post by alexi02 »

Ok, try 755 on admin_deny_text_and_bbcode.php. If that doesn't work then I'll change it to not use a language file and insert it in the existing language files.
User avatar
kber
Registered User
Posts: 986
Joined: Sun May 07, 2006 9:22 am
Location: Egypt
Contact:

Post by kber »

alexi02 wrote: 'll change it to not use a language file and insert it in the existing language files.

go on work on it as it still same erorr
Hello All
alexi02
Registered User
Posts: 271
Joined: Fri Mar 05, 2004 2:15 am
Location: Australia
Contact:

Post by alexi02 »

Here is v0.3.0 with no language file: v0.3.0 No Language File
User avatar
kber
Registered User
Posts: 986
Joined: Sun May 07, 2006 9:22 am
Location: Egypt
Contact:

Post by kber »

k
i,ll test it :)
Hello All
User avatar
nims
Registered User
Posts: 310
Joined: Sun Aug 13, 2006 12:29 pm
Contact:

Post by nims »

Hi,

I hv been refrd to this MOD for my problem.

I need the automatic hyperlink that still remains in the Bad Words censor to be removed. Basicaly I want to prevent / restrict URLs and emails in main forum messages but allow them in PMs.

Can this MOD help please ?

regards

Mak7
Outsource content writing - Freelance Content Writers
*** Everything related to kids - Kids ***
SEO- search engine optimisation melbourne
alexi02
Registered User
Posts: 271
Joined: Fri Mar 05, 2004 2:15 am
Location: Australia
Contact:

Post by alexi02 »

nims wrote: Basicaly I want to prevent / restrict URLs and emails in main forum messages but allow them in PMs.

Can this MOD help please ?


Yes, in the text list you should add: http, www, @, .com, .net, etc.
User avatar
nims
Registered User
Posts: 310
Joined: Sun Aug 13, 2006 12:29 pm
Contact:

Post by nims »

By doing this wont these be blocked in PMs as well ?
Outsource content writing - Freelance Content Writers
*** Everything related to kids - Kids ***
SEO- search engine optimisation melbourne
alexi02
Registered User
Posts: 271
Joined: Fri Mar 05, 2004 2:15 am
Location: Australia
Contact:

Post by alexi02 »

Nope. This mod is only added to functions_post.php in the submit_post() function which is used for posting a new topic/reply/poll or edit existing post/poll.
Post Reply

Return to “[2.0.x] MODs in Development”