Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 12-27-2016, 07:08 PM
Snowhog's Avatar
Snowhog Snowhog is offline
 
Join Date: Oct 2011
Location: Andover, MN
Posts: 423
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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?
Reply With Quote
  #2  
Old 12-27-2016, 07:17 PM
Seven Skins's Avatar
Seven Skins Seven Skins is offline
 
Join Date: Sep 2008
Location: London, UK
Posts: 1,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #3  
Old 12-27-2016, 07:21 PM
Kane@airrifle's Avatar
Kane@airrifle Kane@airrifle is offline
 
Join Date: Jun 2011
Location: ZA
Posts: 181
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #4  
Old 12-27-2016, 07:28 PM
Snowhog's Avatar
Snowhog Snowhog is offline
 
Join Date: Oct 2011
Location: Andover, MN
Posts: 423
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Seven Skins View Post
That will not make any difference they can still type manually ..

[URL]www.site.com[/URL]
I don't think that is an issue for us, as we disallow use of BB code for all new registered users; they gain use of BB code when they get promoted (based on number of posts) into the next usergroup.
Reply With Quote
  #5  
Old 12-28-2016, 05:30 PM
Dragonsys's Avatar
Dragonsys Dragonsys is offline
 
Join Date: Jan 2008
Location: DFW, Texas
Posts: 743
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Snowhog View Post
I don't think that is an issue for us, as we disallow use of BB code for all new registered users; they gain use of BB code when they get promoted (based on number of posts) into the next usergroup.
If they cannot use BBCode, how are they posting links?
Reply With Quote
  #6  
Old 12-28-2016, 06:26 PM
Snowhog's Avatar
Snowhog Snowhog is offline
 
Join Date: Oct 2011
Location: Andover, MN
Posts: 423
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dragonsys View Post
If they cannot use BBCode, how are they posting links?
Thru the Link button in the Editor.

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.
Reply With Quote
  #7  
Old 12-28-2016, 06:51 PM
Dragonsys's Avatar
Dragonsys Dragonsys is offline
 
Join Date: Jan 2008
Location: DFW, Texas
Posts: 743
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Snowhog View Post
Thru the Link button in the Editor.
which uses BBCode. If they cannot post BBCode, then the link button won't get around it, as that check is performed in POST

You might want to double check the usergroup permissions & the forum permissions, which they are posting to.
Reply With Quote
  #8  
Old 12-28-2016, 07:09 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
if (is_member_of($vbulletin->userinfo, array(XYZ)))
{
    
$k1 0;
    
$k2 0;

    foreach(
$this->config['toolbar'] AS $arr_1)
    {
        if (
is_array($arr_1))
        {
            foreach(
$arr_1 AS $arr_2)
            {
                if (
$arr_2 === 'Link')
                {
                    unset(
$this->config['toolbar'][$k1][$k2]);
                    break 
2;
                }

                
$k2++;
            }
        }

        
$k1++;
        
$k2 0;
    }

Replace "X, Y, Z" with the comma-delimited list of usergroupids of those groups for which you wish to remove the link button.
Reply With Quote
Благодарность от:
Dragonsys
  #9  
Old 12-28-2016, 07:29 PM
Snowhog's Avatar
Snowhog Snowhog is offline
 
Join Date: Oct 2011
Location: Andover, MN
Posts: 423
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #10  
Old 12-28-2016, 07:34 PM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:39 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08251 seconds
  • Memory Usage 2,271KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_php
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete