Jump to content

mobbdeep

Members
  • Posts

    31
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by mobbdeep

  1. 9 hours ago, Blesta Addons said:

    i have tested the code now, you can use this regex

     

    
                'cpanel_domain' => [
                    'format' => [
                        'rule' => [[$this, 'validateHostName']],
                        'message' => Language::_('Cpanel.!error.cpanel_domain.format', true)
                    ],
                    'test' => [
                        'rule' => ['substr_compare', 'test', 0, 4, true],
                        'message' => Language::_('Cpanel.!error.cpanel_domain.test', true)
                    ],
                    'block' => [
                        // 'if_set' => true,
                        'rule' => ['matches', '/^((?!.ga|.tk|.td|.cf).)*$/'],
                        'message' => 'this domain is not alowded'
                    ],
                ],

     

    This worked. Thank you!

  2. 8 hours ago, Blesta Addons said:

    if you are using cpanel module, open the file /components/modules/cpanel/cpanel.php and  change the line from

    
                'cpanel_domain' => [
                    'format' => [
                        'rule' => [[$this, 'validateHostName']],
                        'message' => Language::_('Cpanel.!error.cpanel_domain.format', true)
                    ],
                    'test' => [
                        'rule' => ['substr_compare', 'test', 0, 4, true],
                        'message' => Language::_('Cpanel.!error.cpanel_domain.test', true)
                    ]
                ],

    to

    
                'cpanel_domain' => [
                    'format' => [
                        'rule' => [[$this, 'validateHostName']],
                        'message' => Language::_('Cpanel.!error.cpanel_domain.format', true)
                    ],
                    'test' => [
                        'rule' => ['substr_compare', 'test', 0, 4, true],
                        'message' => Language::_('Cpanel.!error.cpanel_domain.test', true)
                    ],
                    'block' => [
                        'if_set' => true,
                        'rule' => ['matches', '/(.ga|.tk|.td|.cf)/'],
                        'message' => 'this domain is not alowded'
                    ],
                ],

    not tested. but it might work

    This did not work. I can still choose any of those extensions and proceed onto the order form.

  3. Hello,

    It would be nice to have the ability to merge tickets when a client opens more than one ticket regarding the same issue. Also, have replied to tickets automatically set to "Awaiting Reply." Manually updating tickets can be a bit time consuming especially when they build up in the queue over time and then having to organize them.

    Thanks!

×
×
  • Create New...