Disallow links before 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 the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
User avatar
tumba25
Former Team Member
Posts: 4430
Joined: Wed Jun 06, 2007 6:42 am
Location: Kokkola, Finland.
Name: Jari Kanerva
Contact:

Re: Disallow links before x posts

Post by tumba25 »

Yes, you need to put it in poting.php where the page is displayed. It would make more sense to have it show above the text box.
Need a mod/extension created/installed, other custom-coded solution or a server admin? https://tumba25.net
Ultima-X97
Registered User
Posts: 157
Joined: Sat Sep 16, 2006 2:49 pm

Re: Disallow links before x posts

Post by Ultima-X97 »

I hate to be a bother, but could you show me where I should put it?
Ultima-X97
Registered User
Posts: 157
Joined: Sat Sep 16, 2006 2:49 pm

Re: Disallow links before x posts

Post by Ultima-X97 »

Tumba, I have it working:

If you want to stop the user from posting links completely use this:

In "posting.php"

Find

Code: Select all

	// check form
Before Add

Code: Select all

// Ultima's custom link editing mod      
if (($user->data['user_posts'] < $config['links_after_num_posts']) && stristr($message_parser->message, 'www'))
	{
 		$error[] = $message .= "\n\n You must have at least 3 posts before you can post links";
	}
// End Ultima mod
Locked

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