*

Sudo

  • ***
  • 47 posts
[SOLVED] MOD -- Display User wallet balance in tooltip
« on: November 03, 2017, 04:00:04 AM »
Would be good in admin panel (when displaying LOG for payments plugin) to add users wallet balance if any and membership level (if any) to tool tip displayed when hover over 'User ID' entry in row.  If I figure out how to do it, will post MOD.  It currently shows userID, email and reg date.
Cheers!
@Sudo
« Last Edit: November 03, 2017, 04:27:57 AM by Sudo »

*

Sudo

  • ***
  • 47 posts
Re: Display User wallet balance in tooltip
« Reply #1 on: November 03, 2017, 04:27:37 AM »
Figured it out and added.  Hit me up if you want the MOD.

Would be good in admin panel (when displaying LOG for payments plugin) to add users wallet balance if any and membership level (if any) to tool tip displayed when hover over 'User ID' entry in row.  If I figure out how to do it, will post MOD.  It currently shows userID, email and reg date.
Cheers!
@Sudo

*

Sudo

  • ***
  • 47 posts
Re: MOD - Display User wallet balance in tooltip
« Reply #2 on: November 03, 2017, 05:13:36 AM »
find in /osclass_pay/admin/log.php
(line 57)
if($l['fk_i_user_id'] <> '' && $l['fk_i_user_id'] > 0) {

delete everything until:
  } else {

replace with:
     // @SUDO MOD to display credits bal
                     $wallet = osp_get_wallet($l['fk_i_user_id']);
                     $credit = $wallet['formatted_amount'];
                     // @SUDO MOD to display credits bal
                     $user = User::newInstance()->findByPrimaryKey($l['fk_i_user_id']);
                     // @SUDO MOD to display credits bal
                     $utitle = osc_esc_html(@$user['s_name'] . '<br/>' . @$user['s_email'] . '<br/>' . __('Reg. date', 'osclass_pay') . ': ' . @$user['dt_reg_date']." Credit Bal ".$credit);
                    //  $utitle = osc_esc_html(@$user['s_name'] . '<br/>' . @$user['s_email'] . '<br/>' . __('Reg. date', 'osclass_pay') . ': ' . @$user['dt_reg_date']);
                    // ENDOF @SUDO MOD to display credits bal


Figured it out and added.  Hit me up if you want the MOD.

Would be good in admin panel (when displaying LOG for payments plugin) to add users wallet balance if any and membership level (if any) to tool tip displayed when hover over 'User ID' entry in row.  If I figure out how to do it, will post MOD.  It currently shows userID, email and reg date.
Cheers!
@Sudo

*

MB Themes

Re: [SOLVED] MOD -- Display User wallet balance in tooltip
« Reply #3 on: November 03, 2017, 09:38:25 AM »
@Sudo
Integrated in modified way, thanks for tip ;)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Sudo

  • ***
  • 47 posts
Re: [SOLVED] MOD -- Display User wallet balance in tooltip
« Reply #4 on: November 04, 2017, 02:33:27 AM »
No Worries!  Glad to help out and glad I wont have to migrate it back in when update comes out :)

@Sudo
Integrated in modified way, thanks for tip ;)