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
<a href="<?php echo osc_admin_base_url(true); ?>?page=users&action=edit&id=. $user_id['fk_i_user_id'] . '&' . 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!
on :December 30, 2020, 9:48 am #386
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:
?page=users&action=edit&id=. $user_id['fk_i_user_id'] . '&' . osc_csrf_token_url() . '" target="_blank"
Thanks!
on :January 3, 2021, 10:37 am #393
<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>
on :January 3, 2021, 1:35 pm #394
You are the best, Calin!
Thanks a lot!