1. Osclass Forum
  2. Plugins
  3. Osclass support plugin - Missing feature

Osclass support plugin - Missing feature

Started by Traian, December 29, 2020, 11:55 am

  • 1

Traian

Osclass support plugin - Missing feature

on :December 29, 2020, 11:55 am #384

Hello,


Please note that the Osclass support plugin is missing a hugely important usability feature, and that is the admin ability to click on the user name in the support ticket and open the user Edit page where you can see all the user details (email, full name, IP etc.).


Right now you just get tickets form random people, then you have to go to the Users section, search for the name, pray to God there aren't users with the same names (which there are) and so on...


Why not have a simple click on their names and open the user edit page in a new tab?


In admin\pages\ticket.php at line 82

Code: [Select]
<a href="<?php echo osc_admin_base_url(true); ?>?page=users&action=edit&amp;id=. $user_id['fk_i_user_id'] . '&amp;' . osc_csrf_token_url() . '" target="_blank"><?php echo cbk_support_ticket_reply_name(); ?></a>

How to get the user ID and insert it in the link?


Thanks!

  • << Last edit: December 29, 2020, 1:13 pm by Traian >>
  • Quote

calinbehtuk

Re: Osclass support plugin - Missing feature

on :December 30, 2020, 9:48 am #386

This function will return the user id in the thicket

Code: [Select]
​h_cbs_ticket_user_id()


Traian

Re: Osclass support plugin - Missing feature

on :January 2, 2021, 10:22 pm #392

Yeah, I can't get it to work.


Any ideas on how to insert the actual user ID inside this link:

Code: [Select]
?page=users&action=edit&amp;id=. $user_id['fk_i_user_id'] . '&amp;' . osc_csrf_token_url() . '" target="_blank"


Thanks!

calinbehtuk

Re: Osclass support plugin - Missing feature

on :January 3, 2021, 10:37 am #393

Code: [Select]
​<a href="<?php echo osc_admin_base_url(true); ?>?page=users&action=edit&id=<?php echo h_cbs_ticket_user_id(); ?>"><?php echo cbk_support_ticket_reply_name(); ?></a>



Traian

Re: Osclass support plugin - Missing feature

on :January 3, 2021, 1:35 pm #394

You are the best, Calin!

Thanks a lot!:D

  • 1
Subscribe
X

Subscribe!

Subscribe to get the latest listings, updates and special offers delivered directly in your inbox.