• Resolved mohaelattar

    (@mohaelattar)


    after i update plugin you add register button but when i click on it redirect to 404 error page , how i custom url register button or can i activate register page u name ( tickets/userregister)

Viewing 2 replies - 1 through 2 (of 2 total)
  • I have the same problem. I join you here.

    Plugin Author JoomSky

    (@rabilal)

    Hi,

    Edit ../wp-content/plugins/js-support-ticket/includes/paramregister.php

    Find at line number 23

    $_key = $newkey . '/(my-tickets|add-ticket|'.$login.'|ticket-status|control-panel|print-ticket|ticket)(/[^/]*)?(/[^/]*)?(/[^/]*)?/?$';

    Replace with

                $userregister = ($changename === true) ? 'ticket-user-register' : 'userregister';
                $_key = $newkey . '/(my-tickets|add-ticket|'.$login.'|ticket-status|control-panel|print-ticket|ticket|'.$userregister.')(/[^/]*)?(/[^/]*)?(/[^/]*)?/?$';

    Find on line number 63
    $rules['(st-my-tickets|st-add-ticket|'.$login.'|st-ticket-status|st-control-panel|st-print-ticket|st-ticket)(/[^/]*)?(/[^/]*)?(/[^/]*)?/?$'] = 'index.php?page_id='.$pageid.'&jsstlayout=$matches[1]&jst1=$matches[2]&jst2=$matches[3]&jst3=$matches[4]';

    Replace with

          $userregister = ($changename === true) ? 'ticket-user-register' : 'st-userregister';
          $rules['(st-my-tickets|st-add-ticket|'.$login.'|st-ticket-status|st-control-panel|st-print-ticket|st-ticket|'.$userregister.')(/[^/]*)?(/[^/]*)?(/[^/]*)?/?$'] = 'index.php?page_id='.$pageid.'&jsstlayout=$matches[1]&jst1=$matches[2]&jst2=$matches[3]&jst3=$matches[4]';

    Find on line number 125

                case 'my-tickets':
                    jssupportticket::$_data['sanitized_args']['jstmod'] = 'ticket';
                    jssupportticket::$_data['sanitized_args']['jstlay'] = 'myticket';
                break;

    Replace with

                case 'my-tickets':
                    jssupportticket::$_data['sanitized_args']['jstmod'] = 'ticket';
                    jssupportticket::$_data['sanitized_args']['jstlay'] = 'myticket';
                break;
                case 'ticket-user-register':
                case 'userregister':
                    jssupportticket::$_data['sanitized_args']['jstmod'] = 'jssupportticket';
                    jssupportticket::$_data['sanitized_args']['jstlay'] = 'userregister';
                break;
    

    After edit, refresh permalinks.
    WP Admin > Settings > click on Permalinks and save without any changes.

    • This reply was modified 6 years, 4 months ago by JoomSky.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘after update register button’ is closed to new replies.