Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1095)
Add permissions to group so you can allow them to add links in their posts (images or regular links)
Thanks Mod
Turkish translation
Errors.turkish.php
// Begin AntiSpam Mod
$txt['error_guest_spam'] = 'Üzgünüz, Ziyaretcilere mesajında linkler izin verilmiyor. Lütfen üye olunuz.';
$txt['error_member_spam'] = 'Üzgünüz.Linkler ekleme yetkiniz yok';
// End AntiSpam Mod
ManagePermissions.turkish.php
// Begin AntiSpam Mod
$txt['permissionname_add_links'] = 'Mesajlara link ekliyebilir';
$txt['permissionhelp_add_links'] = 'Bu izin kullanıcılara mesajlarında link ekleme yetkisi verir.';
// End AntiSpam Mod
thanks i will update it soon
Thank you!
Spanish translation
Errors.spanish.php
// Begin AntiSpam Mod
$txt['error_guest_spam'] = 'Lo sentimos, a los invitados no se les permite publicar enlaces. Si el vínculo es de importancia para su publicación, por favor regístrate primero.';
$txt['error_member_spam'] = 'Lo sentimos, no tienes permiso para publicar los enlaces.';
// End AntiSpam Mod
ManagePermissions.spanish.php
// Begin AntiSpam Mod
$txt['permissionname_add_links'] = 'Añadir enlaces a los posts';
$txt['permissionhelp_add_links'] = 'Esta autorización permite a los usuarios añadir enlaces a su post.';
// End AntiSpam Mod
great and useful mod, thanks for your work
vagrant.
I can't see anything to moderate this. Where should I be able to change these permissions?
Admin -> Permissions -> Modify(for any group) -> Add links to posts
It just isn't there :( .
do you other than English as default language ?
No, it's English. I have looked and looked and can't see anything about allowing links. I am getting an undefined error when members try to use IMG code, but I can't find anywhere I can fix it.
do you use UTF8 encoding ?
I don't know...the only thing I've modified are theme files and the index template. My "english" folder does say english-UTF8, but it isn't anything I did intentionally.
check that language files contain the strings
smfFolder/themes/default/languages/
Errors.english.php
ManagePermissions.english.php
and
Errors.english-utf8.php
ManagePermissions.english-utf8.php
If one set isn't there then there is no problem.
For Errors:
// Begin AntiSpam Mod
$txt['error_guest_spam'] = 'Sorry, guests are not allowed to post links. If this link is of any importance for your posting, please register first.';
$txt['error_member_spam'] = 'Sorry, you are not allowed to post links.';
// End AntiSpam Mod
For ManagePermissions:
// Begin AntiSpam Mod
$txt['permissionname_add_links'] = 'Add links to posts';
$txt['permissionhelp_add_links'] = 'This permission allows users to add links to their post.';
// End AntiSpam Mod
Thank you, that worked!
I'm getting this error after installing this mod...any idea?
8: Use of undefined constant add_links - assumed 'add_links'
File: /home/kkpsibk/public_html/forums/Sources/Post.php
Line: 1256
try to replace this
if(!allowedTo(add_links))
with this
if(!allowedTo('add_links'))
That fixed it...thanks!! :)
no problem
it was fixed in the package thank you for reporting.
I just got this error when I tried to upload the package.
The package you tried to upload either is not a valid package or has become corrupted.
I just tried to load it and got the same error:
The package you tried to upload either is not a valid package or has become corrupted.
sorry about that it should work now...
is there anyway to adapt this to just a simple method of saying less then 10 posts no links rather then dealing with mucking around with the membergroups
there are options to add permissions and remove them in 2 clicks only from selected membergroups it should be easy there isn't much work to do
ah got it all sorted out
had to set it up so that members got defaulted to the antispam group at rego which required the adding of Default_Membergroup_on_Registration mod
after that it was just a matter of setting up the groups
took a little bit of playing around with
good to hear that
thank you
iam translate portuguese
Errors.portuguese.php
$txt['error_guest_spam'] = 'Infelizmente, os visitantes não estão autorizados a postar links. Se esse link é de alguma importância para o poste, por favor registre primeiro.';
$txt['error_member_spam'] = 'Desculpe, você não tem permissão para postar links.';
ManagePermissions.portuguese.php
$txt['permissionname_add_links'] = 'Adicionar links para postes';
$txt['permissionhelp_add_links'] = 'Esta autorização permite aos utilizadores adicionar links para seu poste.';
nice work
thank you
i will add them to the package on next update (will work with smf2.0)
Will this work with v 1.1.5 if I modify the packageinfo file? Any incompatibilities?
Quote from: acadiaforum.net on June 12, 2008, 03:13:19 PM
Will this work with v 1.1.5 if I modify the packageinfo file? Any incompatibilities?
yes i would like to know this also, i absolutely think this is a must for a forum
please let me know
yea it should work with no problem however i will run some test to make sure it works 100%
Quote from: Slug1 on March 19, 2008, 11:08:09 PM
I just tried to load it and got the same error:
The package you tried to upload either is not a valid package or has become corrupted.
I had this too, but it was a breeze to install manually. Thanks for the great mod. We seem to have a few members simply join to post their affiliate links.
Not any more :)
How does one install it manually? (By 'one' I mean someone such as myself, who has limited coding skills)?
When I uploaded the mod as written, it appeared on the browse list, but didn't have an install option. So I uncompressed it, edited the install/uninstall lines to read 1.1.5 instead of 1.1.4, and recompressed it. Went back to Package Manager and to try to install it, but still no install option. Downloaded the edited .zip file to my computer, deleted the online version, and tried re-uploading. Got the 'not a valid package or has become corrupted' error message.
Please help, because this looks perfect for my spam-fighting needs.
Just use the package parser.. for the manual install instructions.
I had to set it to 1.1.4 to see the info, but it worked easy, there isnt many edits.
Will it be possible to uninstall it afterwards with Package Manager if it doesn't work out? Or would I have to do a manual uninstall going through and deleting everything?
I'm assuming you will have to manually uninstall.
Simply create a list (on paper?) of the files it edits.. back these up. If something goes wrong, simply upload the backups.
Another question --
Can anyone using this mod tell me if it can be configured to run locally (just on certain boards) rather than globally?
Any info on how to apply this mod to 1.1.5?
Thanks as we are having guests post links and this would help stop that.
Hi, thanks for the great mod.
It doesn't detect links like these:
name.blogspot.com
name.wordpress.com
bbc.co.uk
Hope these can be detected in the next version of the mod?
they don't show up as links anyway.
Serbian translation
Errors.serbian-utf8.php
// Begin AntiSpam Mod
$txt['error_guest_spam'] = 'Izvinite, gostima nije dozvoljeno da postavljaju linkove. ako je ovaj link važan , molimo vas,prvo se registrujte.';
$txt['error_member_spam'] = 'Izvinite, nije vam dozvoljeno da postavljate linkove.';
// End AntiSpam Mod
ManagePermissions.serbian-utf8.php
// Begin AntiSpam Mod
$txt['permissionname_add_links'] = 'Dodaj linkove u post';
$txt['permissionhelp_add_links'] = 'Ova dozvola, dozvoljava korisnicima da dodaju linkove u post.';
// End AntiSpam Mod
Any chance this will be converted to work on 2.0 beta 4? Would be nice.
Thanks
Poreman
This mod is great, but unfortunately it has a bug:
If you edit a post (as a member without the right to add links), and add a link, you've just successfully made a post with a link, even if you didn't had the right for that.
I've tested this using SMF 1.1.7 - manual install; it didn't worked automatically.
I forgot to mention that this is happening only when modifying the post using the button shown in the attachment.
Today, the following error appeared in my error log:
Quote8: Undefined index: message
File: /vservers/onceuponapla/htdocs/forum/Sources/Post.php
Line: 2391
I'm not sure if the user was trying to post a message or edit one, she had already posted, but line 2391 is right in the middle of function "antiSpam2." Here's the line:
if(preg_match('@(http://|https://|\[iurl=|\[url=|\[url\]|\[iurl\]|www\.|\[/url\]|\[/iurl\]|\[img\]|\[/img\])+@i',$_POST['message']))
Just tried it on 1.1.9 with several other mods. Works perfectly if you change the version number from 1.1.4 to 1.1.9 in package-info.xml.
The bug with quick editing posts is really easy to deal with: don't allow the membergroup to edit their posts. ;)
Quote from: Slug1 on March 19, 2008, 11:08:09 PM
I just tried to load it and got the same error:
The package you tried to upload either is not a valid package or has become corrupted.
+1
I edited package-info.xml on my local computer, changing 1.1.4 to 1.1.9, then I created a new Zip file containing package-info.xml and antiSpam_1_1.mod. When I attempt to upload this revised zip file I get
The package you tried to upload either is not a valid package or has become corrupted.
I even tried brutally using SFTP to pace the folder containing the 2 files and then the zip containing the folder containing the files in my ~/Packages folder but Package Manager insists on not believing that it is there.
Quote from: Croco on February 26, 2008, 03:41:23 PM
Admin -> Permissions -> Modify(for any group) -> Add links to posts
I have followed this instruction. But it seem there is a mix up somewhere.
I have Post based Groups in my forum and I cannot find them there. The groups are:
Newbie
Jr. Member
Full Member
Sr. Member
Hero Member
What I see at that destination you gave are my Member Groups
Guests
Regular Members
Administrator
Global Moderator
Moderator
All my post based groups are in the Regular Member group, so any setting I do for regular Members will affect all my Post Based Member Groups. How Can I prevent only Newbie from making posts that contain link?
Quote from: remi_naija on June 17, 2009, 08:17:03 AM
Quote from: Croco on February 26, 2008, 03:41:23 PM
Admin -> Permissions -> Modify(for any group) -> Add links to posts
I have followed this instruction. But it seem there is a mix up somewhere.
I have Post based Groups in my forum and I cannot find them there. The groups are:
Newbie
Jr. Member
Full Member
Sr. Member
Hero Member
What I see at that destination you gave are my Member Groups
Guests
Regular Members
Administrator
Global Moderator
Moderator
Go to Admin > Permissions > Settings and select
Enable permissions for post count based groups (?):
Thanks, man. You just saved me from The Confederation of Pro Spammers.
hi everyone i am using smf 1.1.10 @ babylon theme, please how can i manually install it .
thanks
Anyone tried this on SMF2.xx ?
thanks a lot
Will this version work with SMF 1.1.10?
Thanks
Quote from: Urbanite on August 27, 2009, 12:19:59 PM
Anyone tried this on SMF2.xx ?
Ditto. I have this working on 1.1.10 and depend on it. Would like to move to SMF2 but need the same functionality.
I am sorry I wasn't able to support it for a long time.
I will update it for both 1 and 2 soon
Stay toned :)
Is this mod valid for 1.1.11 version ?
Thank you
Has anyone got this working with 1.1.11 and the Babylon theme?
I'd like to know! I truly need this or something that does exactly this for the board! :D
It should work on Babylon as it doesn't edit any theme files.
Thank you for letting me know! I am willing to test it out now at least! :D
Testing it out and it appears to work great!
I manually installed it!
The only problem is since I am using the babylon instead of the standard template, when a person tries to post and is denied because of a link/image the error message is blank.
All a poster gets is: "The following error or errors occurred while posting this message: " with nothing after it.
Does anyone here know how to add it to the Babylon template error messages?
I'm busy trying to figure this out, and how to remove the 'link' and 'image' buttons for those without permissions (which is just the regular members so it can't be too hard to jury rig at least).
Just a quick heads up for anyone wanting to install this on 1.1.11 !
Install the Version Emulate mod first, here >>> http://custom.simplemachines.org/mods/index.php?mod=2113
Set it to 1.1.4, and it will install without any problem O:)
I have converted the mod over to the new format - you can install it on SMF 1.1.12 without using any emulate mod.
I've attached it to this post.
Please Note :
This is was a straight package conversion to the new XML format. I have not made any modifications to the code itself.
Use at your own risk, I offer no support - so please don't PM me.
------------
Now with that all said, I have this mod currently installed on my 1.1.12 forum and it works great.
After you install the mod, you will need to go to Admin > Permissions and select which groups are allowed to post links.
If a group is not allowed to post links, they will get this message when the click on the "Post" button :
The following error or errors occurred while posting this message:
Sorry, you are not allowed to post links.
Followed by the standard post box (so they can edit the text.)
Enjoy.
Quote from: Mayhem30 on December 22, 2010, 02:52:40 AM
I have converted the mod over to the new format - you can install it on SMF 1.1.12 without using any emulate mod.
I've attached it to this post.
Please Note :
This is was a straight package conversion to the new XML format. I have not made any modifications to the code itself.
Use at your own risk, I offer no support - so please don't PM me.
------------
Now with that all said, I have this mod currently installed on my 1.1.12 forum and it works great.
After you install the mod, you will need to go to Admin > Permissions and select which groups are allowed to post links.
If a group is not allowed to post links, they will get this message when the click on the "Post" button :
The following error or errors occurred while posting this message:
Sorry, you are not allowed to post links.
Followed by the standard post box (so they can edit the text.)
Enjoy.
by using that on the "regular members" all my 300.000 member will not be able to post links and thats not good! there should be some kind of option to limit the plugin feature to people with less than xxx posts. so that member with 1-5 posts will not be able to post links.
Thanks Mayhem30. I just updated the mod page.
Quote from: Phat^Trance on December 25, 2010, 06:08:00 AM
by using that on the "regular members" all my 300.000 member will not be able to post links and thats not good! there should be some kind of option to limit the plugin feature to people with less than xxx posts. so that member with 1-5 posts will not be able to post links.
Well you can specify groups that are limited to specific posts count.
So once a user registers he or she will be part of that group and that group will have a the option to prevent them from posting links. You don't have to use the regular group for that.
Cheers,
I have installed this mod on 1.1.12, and I've also set the permission on the regular members group, but now my users can't post any links, they just get the "Sorry" message. Any ideas?
Edit: I found what was causing the issue. I had local permissions instead of global set on all boards, that wasn't set to allow links.
Quote from: Croco on January 01, 2011, 10:03:08 PM
Quote from: Phat^Trance on December 25, 2010, 06:08:00 AM
by using that on the "regular members" all my 300.000 member will not be able to post links and thats not good! there should be some kind of option to limit the plugin feature to people with less than xxx posts. so that member with 1-5 posts will not be able to post links.
Well you can specify groups that are limited to specific posts count.
So once a user registers he or she will be part of that group and that group will have a the option to prevent them from posting links. You don't have to use the regular group for that.
Cheers,
i still cannot get this plugin to work, isntit possible to add the limit permission to a "Post count based groups" member gropue and not via the "Regular groups" permission?
i have already one group called newbie with 0 posts (default one) - then next step is at 10 posts. but the 0 posters STILL can post links. i cannot find a way in the permission setting to add the link limit permission to this post. check the attachment for more info.
hope to hear from you soon since i relaly need to get this plugin up and running. im getting tons of spam bots adding links to my forum :(
here are a few screenshots on how my board and member groups looks like. Please check them and read the info on the screenshots. can you help me?
thank you
anyone?
Ok check the shots and see if it makes sense.
I'd also recommend running this mod: Anti-Spam Verification Questions for SMF 1.1.7 (http://custom.simplemachines.org/mods/index.php?mod=1516)
The links restriction will slow up human spammers (since they mainly want to post links). The second mod (custom questions) will stop bots from registering. It runs with 1.1.12 even though it says it's for 1.1.7.
These two mods together seem to be an effective combination.
I don't worry about CAPTCHA much these days. It's ineffective IMO.
thanks
does the X mean that its still using the "old" permission`cause when entering that setting page all options seems to be on "X". even tho i have other settings in the member group
The X means Disallow permissions. The A means allow.
By default, SMF installs with Deny permissions disabled. Personally I'm not in favour of this because there are times when you need Deny. The reason it isn't enabled by default is that supposedly it would cause more problems for beginners.
Deny will override any permissions given elsewhere (ie: other group if a member is in more than one group). This means that Deny has to be used carefully if you don't want unintended results.
Disallow only disallows unless otherwise allowed. That makes it safer for people who don't check their permissions thoroughly (and really everyone should anyway).
The general rule of thumb is to use Disallow for most things and only use Deny when you don't have a choice.
oh ok, so deny will overwrite all other permissions while Disallow (X) use the standard permission that i already have added to the member group?
That should work. Best way to test it is to make a test account and try it.
thanks, i got the plugin up and running now.
Is it possible to change the "Sorry, you are not allowed to post links" message?
Yep. That should be in default/languages/Modifications.english.php.
Quote from: Antechinus on January 24, 2011, 01:22:02 PM
Yep. That should be in default/languages/Modifications.english.php.
i did a search for the text " you are not allowed to post links" in the Modifications.english.php file (Themes/default/languages/) but it couldnt find anything there.
are you sure that the error message is displayed there? i have attached my Modifications.english.php to this thread, feel free to take a look. thx
anyone?
Can anyone help to how I install this please?
thank you
I have used this for quite a while and it's great. Now I have occasion to recommend it to someone else I know who is running SMF. It would be perfect for the kind of Spam he's receiving but he is running SMF 2.0 RC4.
Is there any chance this would work or is there a way to make it work for SMF 2.0 RC4?
Thank you.
Installed this on 1.1.13 which lead to everyone not being able to post links.
So I go into permissions and then explicitly set all groups to 'Allowed' for posting links and the result? Still everyone cannot post links.
Uninstalled for now as that is obviously an epic fail.
Quote from: mark7144 on May 20, 2011, 12:20:34 PM
Installed this on 1.1.13 which lead to everyone not being able to post links.
So I go into permissions and then explicitly set all groups to 'Allowed' for posting links and the result? Still everyone cannot post links.
Uninstalled for now as that is obviously an epic fail.
If you have local permission on boards, you have to go into each board and set the permission there too
Hi,
I upgraded this mod for SMF 2.x. It seems to work fine.
I did not really change the mod's code (which could be seriously improved). What I did is to add french language on it (translated by myself), and actually the permission name "add_links" is already taken by SMF Links (http://custom.simplemachines.org/mods/index.php?mod=381) mod so I renamed it to "post_add_links".
I let the author of this mod to do what it needs to be done.
Enjoy!
DeathSign
if you want maybe you could take ownership of this MOD.
My country has been on revolution since March 15th and I really didn't have much time to spares since, then
I really appreciate your help :)
Thanks,
Hmm... I did 3 posts :o That's because of the temporary server issue here, sorry =)
This is a simple mod, I'd say why not ? ^^ But I don't know how you can do this, I've no mod yet ;)
Thank you too ::)
Needed for 2.0.2.............
Copied install file for SMF 2.0 from this post (https://www.simplemachines.org/community/index.php?topic=224019.msg3221472#msg3221472) into package and updated package-info.xml to use it and renamed it to version 1.3 - no other changes.
Installed on SMF 2.0.15 and works as advertised - just make sure you update permissions to explicitly 'allow' relevant membergoups to post links as default permission is to 'disallow' posting of links for all existing membergroups (even moderators and global moderators).
Quote from: GL700Wing on February 06, 2018, 08:25:27 PM
Copied install file for SMF 2.0 from this post (https://www.simplemachines.org/community/index.php?topic=224019.msg3221472#msg3221472) into package and updated package-info.xml to use it and renamed it to version 1.3 - no other changes.
Sorry but I had to removed the attachment. The mod does not display a license, so for that we assume the most restricted permissions where redistribution is not allowed without the permission from the author.
Quote from: Gazmanafc on February 07, 2018, 09:42:59 AM
Sorry but I had to removed the attachment. The mod does not display a license, so for that we assume the most restricted permissions where redistribution is not allowed without the permission from the author.
No problems - wasn't sure of the rules/requirements but thought it was okay as the mod owner had suggested someone else could take over ownership of the mod.
I want to restrict members from posting links. I know about Anti Spam Links Mod which I can use to restrict members from posting links, or posting only nofollow links...
But I want one specific member group to allow posting all types of links on my forums. For example, on my education forum, I created a member group "AMPS Student" which means this member group will be assigned to only school students.
This member group is not based on post count. Its private and admin must assign this group to different members.
I have restricted other member groups which are post count based groups from posting links. But I want to allow private member groups to post links even if they have only one post in the group.
Kindly guide me how can I do this.