Support Forums - Classified Ads Script Osclass

Osclass plugin support => Ideas, improvements and tips => Topic started by: Sudo on November 03, 2017, 04:00:04 AM

Title: [SOLVED] MOD -- Display User wallet balance in tooltip
Post by: Sudo 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
Title: Re: Display User wallet balance in tooltip
Post by: Sudo 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
Title: Re: MOD - Display User wallet balance in tooltip
Post by: Sudo 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
Title: Re: [SOLVED] MOD -- Display User wallet balance in tooltip
Post by: MB Themes on November 03, 2017, 09:38:25 AM
@Sudo
Integrated in modified way, thanks for tip ;)
Title: Re: [SOLVED] MOD -- Display User wallet balance in tooltip
Post by: Sudo 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 ;)