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.