*

cass

  • ***
  • 48 posts
Trusted seller
« on: August 22, 2017, 07:21:32 PM »
That the administrator to certain users who have been certified can have a trust ID, this can go to the side of the nic and that is identified in the advertisement as shown by the image.

Another question as you can activate the osclass-pay popup

*

MB Themes

Re: Trusted seller
« Reply #1 on: August 22, 2017, 08:24:07 PM »
@iperion
You can use osclass pay plugin and add users to group Trusted, then integrate with your theme to show the badge as example.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

cass

  • ***
  • 48 posts
Re: Trusted seller
« Reply #2 on: August 23, 2017, 12:04:27 AM »
Great !!, I already bought the Osclass Pay plugin
And the advertising popup that you promote Osclass Pay plugin

Best Regards

*

Sudo

  • ***
  • 47 posts
Re: Trusted seller
« Reply #3 on: November 03, 2017, 02:32:28 AM »
I am adding trusted seller membership level.  What function do I call to get level of membership for user
so I can display badge on profile page and listings page?  OR what is best way to go about implementing this into template?
@iperion
You can use osclass pay plugin and add users to group Trusted, then integrate with your theme to show the badge as example.

*

MB Themes

Re: Trusted seller
« Reply #4 on: November 03, 2017, 10:42:20 AM »
@Sudo
Easiest way is to:
1) remember group id, let's say it is group 7
2) Now do comparison with user group:
Code: [Select]
<?php
  
if(osp_get_user_group() == 7) {
    ... 
my special code for trusted ...
  }
?>

  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Sudo

  • ***
  • 47 posts
Re: Trusted seller
« Reply #5 on: November 04, 2017, 02:31:50 AM »
Yes, we dug around and figured it out last night and implemented a 'badge' for listings, search and user profile.  We make changes directly
in template files.
@Sudo
Easiest way is to:
1) remember group id, let's say it is group 7
2) Now do comparison with user group:
Code: [Select]
<?php
  
if(osp_get_user_group() == 7) {
    ... 
my special code for trusted ...
  }
?>


*

MB Themes

Re: Trusted seller
« Reply #6 on: November 04, 2017, 12:30:50 PM »
@Sudo
Right you must modify template, but we tried to do plugin in way it is possible to integrate it into different functions...
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Re: Trusted seller
« Reply #7 on: March 01, 2018, 06:38:09 AM »
@Sudo
Right you must modify template, but we tried to do plugin in way it is possible to integrate it into different functions...
I managed to implement it using a plugin I got from another website. But you can do better with the ability to show icon on search page (grid/list) and main.php, I'll be waiting

*

MB Themes

Re: Trusted seller
« Reply #8 on: March 01, 2018, 09:25:06 AM »
@Ogba
You can use same code, but must modify functions.php in osclass pay plugin

Code: [Select]

// GET USER GROUP
function osp_get_user_group() {
  if(osc_is_web_user_logged_in()) {
    $group = ModelOSP::newInstance()->getUserGroup(osc_logged_user_id());
    return $group;
  }

  return 0;
}


into:
Code: [Select]
function osp_get_user_group($user_id = -1) {
  if($user_id <= 0) {
    $user_id = osc_logged_user_id();
  }

  if($user_id > 0) {
    $group = ModelOSP::newInstance()->getUserGroup($user_id);
    return $group;
  }

  return 0;
}

Then use function:
Code: [Select]
<?php
  
if(osp_get_user_group(osc_item_user_id()) == 7) {
    ... 
my special code for trusted ...
  }
?>

  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots