Disallow guests to post URL's

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!
8
89%
Very Good
0
No votes
Good
1
11%
Fair
0
No votes
Poor
0
No votes
 
Total votes: 9

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

Disallow guests to post URL's

Post by Extensions Robot »

MOD Name: Disallow guests to post URL's
Author: h-o
MOD Description: In order to prevent spam by guests, they are not allowed to post messages with clickable URL's beginning with "[url", "http:" or "www.". The settings ("on" or "off") as well as the text to identify the URL's are configurable in the ACP (see the two screenshots in the "contrib" directory).

MOD Version: 1.0.1
Tested on phpBB Version: 2.0.21

Download File: guests_no_urls_1.0.1a.zip
mods overview page: View
File Size: 67670 Bytes



Support for this MOD needs to be asked within this topic. The phpBB Teams are not responsible or required to give anyone support for this MOD. By installing this MOD, 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 Apr 30, 2007 12:31 am, edited 1 time in total.
(this is a non-active account manager for the phpBB Extension Customisations Team)

TerraFrost
Former Team Member
Posts: 5957
Joined: Sun Dec 26, 2004 3:40 am
Location: Austin, TX

Post by TerraFrost »

MOD Validated/Released

Notes:

User avatar
irene_haydon
Registered User
Posts: 210
Joined: Sat Apr 15, 2006 3:37 pm

Post by irene_haydon »

Nice mod, but nowdays most of the people don't allow guest posting. You can make really usefull, if there are option that only members of certain group can post the links.

Irene

olpa
Registered User
Posts: 255
Joined: Tue Jan 25, 2005 6:44 pm
Location: Saint-Petersburg, Russia
Contact:

Post by olpa »

Good, this mod is a free alternative to bbAntiSpam. However, I think that usability of the latter solution is better :-)

spaceman33
Registered User
Posts: 34
Joined: Thu Jul 13, 2006 6:18 am

Post by spaceman33 »

irene_haydon wrote: Nice mod, but nowdays most of the people don't allow guest posting. You can make really usefull, if there are option that only members of certain group can post the links.

Irene


I am looking for something to do this.

Is it possible to adapt this mod to do that?

Maybe even replace the URL with something like [Censored Link] to make the URL not show, full stop?

spaceman33
Registered User
Posts: 34
Joined: Thu Jul 13, 2006 6:18 am

Post by spaceman33 »

irene_haydon wrote: Nice mod, but nowdays most of the people don't allow guest posting. You can make really usefull, if there are option that only members of certain group can post the links.

Irene


Sussed it, I believe.

With some help and patience from Brf, I can now make it so that only members of a particular usergroup can post hyperlinks on my board (usergroup ID 4). I previously cut out spammers just registering for the sake of putting web sites in their profile (was getting 6 a day up until I installed the mod, then I got 0), so the only way someone could spam me (I think) was to register and start posting hyperlinks in posts.

If you go to http://www.phpbb.com/phpBB/viewtopic.ph ... 92#2513292 , my post near the bottom shows the amendment to the code in this mod that will stop members that aren't of a particular usergroup from posting hyperlinks. Hopefully this will sort out the spamming problem now.

Only thing I have to do now is change the error message to something like "You are not an authorised member so you can't post hyperlinks" or something. No biggie...

Moolz
Registered User
Posts: 30
Joined: Tue Jan 24, 2006 7:24 am

Post by Moolz »

I was hoping for a mod that would just stop my board from posting links as clickable for anyone. I'd just like it to show the link but make it unclickable.

A fellow in this thread posted this to me but it does not work for me or anyone on my board even after deleting cookies, temp files etc.

codetiger wrote:

Code: Select all

This is the line you have to modify

<!-- BEGIN url --><a href="{URL}" target="_blank" class="postlink">{DESCRIPTION}</a><!-- END url -->

I think you can change it to

<!-- BEGIN url -->"{URL}" || {DESCRIPTION}<!-- END url -->

This will not give you any clickable link
This does not work.

So a solution in a mod would be awesome.

Sapphire Luna
Registered User
Posts: 4
Joined: Wed Nov 08, 2006 3:37 pm

Post by Sapphire Luna »

I've tried it, set 'Allow guest url' to no, and pressed submit. But everytime I return to the configuration page, it has returned to 'yes'. What's up?
*is a newbie*

kulinar
Registered User
Posts: 657
Joined: Thu Feb 17, 2005 7:31 pm
Contact:

Post by kulinar »

irene_haydon wrote: Nice mod, but nowdays most of the people don't allow guest posting.
That is right but for those people who allow posting (like me) that is a very cool feature. Now I can make more forums open for guests to wright because the only reason to make them writable by registered users is the fear of SPAM by guests.

Good job, h-o!

User avatar
Jesper Møller
Registered User
Posts: 249
Joined: Wed Jul 05, 2006 1:00 pm
Location: Copenhagen Denmark
Name: Jesper G.O. Møller
Contact:

Post by Jesper Møller »

A Danish translation of the MOD :wink:
##############################################################
## MOD Title: Danish translation for "Disallow guests to post URL's MOD"
##
## MOD Author: h-o < N/A > (N/A) http://www.phpbb.com/phpBB/profile.php? ... e&u=110020
##
## MOD Description: Danish translation for "Disallow guests to post URL's MOD" in
## lang_admin.php and lang_main.php.
##
## MOD Version: 1.0.0
##
## Installation Level: (Easy)
## Installation Time: 3 Minutes
##
## Files To Edit: 2
## language/lang_danish/lang_admin.php
## language/lang_danish/lang_main.php
##
## Included Files: (N/A)
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
##
## Author Notes:
##
## See install.txt in the root directory :-)
##
##############################################################
##
## MOD History:
##
## 2006-08-17 - Version 1.0.0
## - Initial release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################

#
#-----[ OPEN ]----------------------------------------------------------
#
language/lang_danish/lang_admin.php

#
#-----[ FIND ]----------------------------------------------------------
#

// That's all Folks!

#
#
#-----[ BEFORE, ADD ]---------------------------------------------------
#

// MOD Start: Disallow guests to post messages with url's
$lang['Disallow_guesturl'] = 'Forbyd Links i gæsteindlæg';
$lang['Disallow_guesturl_explain'] = 'Afgøre hvorvidt glster kan lave links eller skrive URL\'s i deres indlæg';
$lang['Disallow_guesturl_text'] = 'Tekst til identificering af link i indllg';
$lang['Disallow_guesturl_text_explain'] = 'Adskil med komma, Feks: www., http:';
// MOD End: Disallow guests to post messages with url's

#
#-----[ OPEN ]----------------------------------------------------------
#
language/lang_danish/lang_main.php

#
#-----[ FIND ]----------------------------------------------------------
#

//
// That's all Folks!

#
#-----[ BEFORE, ADD ]---------------------------------------------------
#

// MOD Start: Disallow guests to post messages with url's
$lang['Disallow_guesturl'] = 'Du skal være medlem for at skrive links i forumet.';
// MOD End: Disallow guests to post messages with url's

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
"Education is learning what you didn't even know you didn't know!"

"True knowledge exists in knowing that you know nothing."

User avatar
stickerboy
Former Team Member
Posts: 7349
Joined: Mon Mar 29, 2004 2:27 pm
Location: Airdrie, UK (127.0.0.1)
Name: Kenny Cameron
Contact:

Post by stickerboy »

Love the MOD thanks :D
Have it installed on 3 forums now - will wait and see if the psam drops.
Already have a few anti-spam MODs, but this one seems good :)


cherokee red
I'm a web-designing code-decrypting tech-support musician
|| Twitter || Flickr || phpBB Snippets ||
Formerly known as cherokee red

pierro78
Registered User
Posts: 58
Joined: Thu Aug 29, 2002 9:09 am
Contact:

Post by pierro78 »

superb mod ! thanks ! :D

BFTUK
Registered User
Posts: 15
Joined: Fri Nov 24, 2006 11:11 am

Post by BFTUK »

Would be a nice feature if you could select a minimum number of posts before a member can post a URL or signature.

bao mingguang
Registered User
Posts: 5
Joined: Mon Dec 11, 2006 12:14 am

minimum number of posts

Post by bao mingguang »

I agree, this is a wonderful mod. The number of spams from guest posters dropped to 0 on my (relatively new) site after I installed this. However, I still had the newly registered user problem to deal with.
Would be a nice feature if you could select a minimum number of posts before a member can post a URL or signature.

The change is quite simple. After you make these three small changes, you may wish to add a rank with 0 posts called "New Poster" and another one with the value of $minimum_posts called "Registered User" or something similar.
Of course, change the value of $minimum_posts to whatever you want.

Here's how I did it:
(assuming the mod has already been installed)

Code: Select all

#
#-----[ OPEN ]----------------------------------------------------------
#
includes/functions_post.php

#
#-----[ FIND ]----------------------------------------------------------
#
// MOD Start: Disallow guests to post messages with url's
	if (!$userdata['session_logged_in'] && $board_config['disallow_guesturl'])

#
#----[ CHANGE IT TO]
#
// MOD Start: Disallow guests or new posters to post messages with url's
	$minimum_posts = 3;
	if ($userdata['user_posts'] < $minimum_posts || !$userdata['session_logged_in'] && $board_config['disallow_guesturl'])

#
#-----[ OPEN ]----------------------------------------------------------
#
language/lang_english/lang_admin.php

#
#-----[ FIND ]----------------------------------------------------------
#
// MOD Start: Disallow guests to post messages with url's
$lang['Disallow_guesturl'] = 'Disallow URL postings for guests';
$lang['Disallow_guesturl_explain'] = 'Determines whether guests are disallowed to post messages with URL\'s in order to prevent spam';

#
#----[ CHANGE IT TO]
#
// MOD Start: Disallow guests and new posters to post messages with url's
$lang['Disallow_guesturl'] = 'Disallow URL postings for guests and new posters';
$lang['Disallow_guesturl_explain'] = 'Determines whether guests and new posters are disallowed to post messages with URL\'s in order to prevent spam';

#
#-----[ OPEN ]----------------------------------------------------------
#
language/lang_english/lang_main.php

#
#-----[ FIND ]----------------------------------------------------------
#

// MOD Start: Disallow guests to post messages with url's
$lang['Disallow_guesturl'] = 'Guests are not allowed to post messages with URL\'s.';
// MOD End: Disallow guests to post messages with url's
//
// That's all Folks!

#
#----[ CHANGE IT TO]
#

// MOD Start: Disallow guests to post messages with url's
$lang['Disallow_guesturl'] = 'Guests and new posters are not allowed to post messages with URL\'s.';
// MOD End: Disallow guests to post messages with url's
//
// That's all, Folks!
To be technically correct, code should be added to set $minimum_posts using the control panel. I'll leave it up to you whiz kids to sort that out. 8)
Last edited by bao mingguang on Sat Feb 03, 2007 12:40 am, edited 1 time in total.

kaiser101
Registered User
Posts: 2
Joined: Sat Nov 11, 2006 10:19 am
Location: Crows Nest Qld, Australia
Contact:

Post by kaiser101 »

Works well for my site. No spam posts anymore, just registrations.
Thanks

Post Reply

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