Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Prevent new users from posting links
ar2rsawseen
New
I have found an article which discusses 9 Ways to Eliminate Spam in Your Community Forum
http://vanillaforums.com/blog/news/9-ways-to-eliminate-spam-in-your-community-forum/
And number 8 is:
Only allow members that have proven themselves and have a reputation to be allowed to post links. In Vanilla, it’s possible to prevent members with a low Rank from posting links, editing comments, etc. Ranks are earned by accumulating reputation points or making a certain number of posts.
But I could not find any information on how to achieve that with vanilla forum.
Has any one done that, any one can point me in right direction?
0
Comments
it could be done with a plugin through post parsing. You can look at plugins that do post parsing like Filter Star,LaTeX, etc then do the pastern match for links to strip them.
If you can't do it yourself you will most likely have to pay someone. You have the permission element, and you have the ranking automation.
grep is your friend.
That feature is available on the hosted version of Vanilla.
It is not in the OS version that these forums support.
That said, @x00 outlined a relatively easy way to do it via a custom plugin.
Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.
Ok I checked the example plugins and I have an idea on how to strip out the links, but is it possible to validate text before saving discussion and do not allow to post discussion at all, if there are links, by displaying error message.
As in, is it possible inside DiscussionModel_BeforeSaveDiscussion_Handler to tell not to save the discussion with reported error message?
or any other way to achieve it?
Never mind, found out that there is $Sender->Validation->ApplyRule
If any one interested, here is the resulting plugin:
Arturs, the best way to share your work is to package it as a plugin and upload it to the addons repository. it's quick and easy and it makes it easier for people to find your work.
Vanilla Wiki, Tastes Great! 31,000 viewers can't be wrong. || Plugin Development Explained
@hbf will do that, once I figure out how to create form to provide settings and save/load configuration
Site wide settings are generally stored in the
/conf/config.php
file. This is greatly simplified by using a controllers Form object and creating a ConfigurationModel object. For example this function, in a plugin class, will create a function on the Settings controller and process form data:This will render the settings view and save the input. My simplified settings view looks something like this:
Per user settings are generally stored in the
UserMeta
db table. The plugin class offers some convenience methods to make storing per user, per plugin settings a breeze. You still want to create a validation class and apply your rules, but rather than calling the$Sender->Form->Save()
method, you want to call the$this->SetUserMeta()
method. For a full fledged example, check out the signatures plugin source.Search first
Check out the Documentation! We are always looking for new content and pull requests.
Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.