![]() |
Hyperlink feature of editor being used to spam
Running vBulletin 4.2.3 Patch Level 2
The Basic and Enhanced Editor (we have the Enhanced Editor as the default when a user registers) has a Hyperlink button. We have been experiencing a number of (maybe the same person using different usernames) new registrations where the first post is responding to an existing post and 'almost' makes sense given the prior posts contents, but they always contain a hyperlink (the text varies) pointing to the same services website. If I remember correctly, changing the default editor under User Registration Options > Default Registration Options > Options > Message Editor Interface to Do Not Show Editor Toolbar is the only way to prevent this from happening without the new member going into Settings > General Settings and changing the editor to either Standard or Enhanced. Is there any way to make the Standard and Enhanced editor available as a function of Usergroups Promotion, forcing new registrations to use of the Basic editor only? |
That will not make any difference they can still type manually ..
www.site.com However there is mod here which can stop users from posting links ..search for "url posting" or something similar. |
https://vborg.vbsupport.ru/showthread.php?t=233979
--------------- Added [DATE]1482873781[/DATE] at [TIME]1482873781[/TIME] --------------- or, if it is the same url every time you can add it to your style RVM and change it to something arbitrary. |
Quote:
|
Quote:
|
Quote:
Use of BB Code as Yes or No only exists in the Blog and Signature sections of Usergroup settings; it isn't in Post/Thread section. So, the Editor is the vector for spamming with hyperlinks. |
Quote:
You might want to double check the usergroup permissions & the forum permissions, which they are posting to. |
If you wish to remove the link button from the toolbar, create a plugin hooked at "editor_construct" and use the Plugin PHP Code:
PHP Code:
|
I'm assuming that X,Y,Z simply means "a comma separated list of usergroup id's", and not simply "three different usergroup id's". Correct? What if I only want to remove the link for Registered Users (id: 2), the usergroup these spam posts are generated from? Would the array then take a single value?
|
Yes, it you want just usergroup 2 then just put a 2 in the array, but for example if you wanted usergroups 2,3, and 8 then you would put 2, 3, 8 in there. :D
|
Thank you.
Okay, created a test user. The default editor for all new registrants is the Enhanced Editor. I logged out and logged in as the new user. Started a new Thread and the Link button is still in the editor and is functional. Previewing the post shows an active hyperlink. :( |
Quote:
|
Code:
if (is_member_of($vbulletin->userinfo, array(2))) |
Are you certain your test user is a member of usergroup 2?
When you saved the plugin, did you make it active? |
Yes, the plugin is marked Active. The new user I created is in Primary Usergroup Registered User, which is usergroupid 2.
--------------- Added [DATE]1482963810[/DATE] at [TIME]1482963810[/TIME] --------------- What about using hook location editor_switch_wysiwyg_to_standard instead? What would the PHP code consist of for this for members of usergroupid 2? |
Try adding the following line to the top of the plugin I posted:
PHP Code:
|
That worked. The Enhanced Editor for my test user now doesn't contain the Link button. Thank you.
|
I have published a product here that will allow you to remove whichever buttons you want and select the affected usergroups:
Custom Toolbar I have cited you as a co-author. :) |
Thank you so very much.
Installed the MOD after making the prior plugin inactive. I'll check it out with my test user. I selected Link, Unlink, Html, and Php to be removed from the editor for Registered Users. --------------- Added [DATE]1483010822[/DATE] at [TIME]1483010822[/TIME] --------------- Works perfectly. The buttons I selected to be removed were not on the toolbar when I logged in with my test user. This is great! :up: |
Just noticed that in Custom Toolbar v1.1 under Buttons to Remove you have "Hold down the [CTRL] key to select multiple forums". That should be "Hold down the [CTRL] key to select multiple buttons".
|
Quote:
|
All times are GMT. The time now is 06:04 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|