*

reflexus

  • ****
  • 146 posts
Re: "verified user label " for user that buy member ship. ( Solved )
« Reply #30 on: December 18, 2017, 02:24:06 AM »
Quote
I just tried it on the template Veronika, and I want to say that everything works correctly, with login and without.

I can help you and put code for you, but no for free

you are so kidding me.

why do you think so?

*

Claso co.ltd

  • ***
  • 29 posts
Re: "verified user label " for user that buy member ship. ( Solved )
« Reply #31 on: December 18, 2017, 06:40:42 AM »
@ reflexus

Quote
I just tried it on the template Veronika, and I want to say that everything works correctly, with login and without.

I can help you and put code for you, but no for free

i think, you not different from me. code use the same .

see comment from @slicer   only you, it work well. i don't believe you
Quote
Used:

<?php
  if(ModelOSP::newInstance()->getUserGroup(osc_item_user_id()) > 1) {
    echo 'Verfied ';
   
  }
?>

in my testing:
1 = current user ID
If it were based on group ID it should be 3 but it doesn't work with group ID though



*

reflexus

  • ****
  • 146 posts
Re: "verified user label " for user that buy member ship. ( Solved )
« Reply #32 on: December 18, 2017, 07:08:39 AM »
@ reflexus

Quote
I just tried it on the template Veronika, and I want to say that everything works correctly, with login and without.

I can help you and put code for you, but no for free

i think, you not different from me. code use the same .

see comment from @slicer   only you, it work well. i don't believe you
Quote
Used:

<?php
  if(ModelOSP::newInstance()->getUserGroup(osc_item_user_id()) > 1) {
    echo 'Verfied ';
   
  }
?>

in my testing:
1 = current user ID
If it were based on group ID it should be 3 but it doesn't work with group ID though

I can show you that everything works fine, and if you do not believe, it's your problem

Site: http://gidra.de/gidra3/

User 1: [email protected]
Password: testing

User 2: [email protected]
Password: testing

User 3: [email protected]
Password: testing

User 3 is in Group Silver and have Verified label
« Last Edit: December 18, 2017, 05:20:03 PM by reflexus »

*

reflexus

  • ****
  • 146 posts
Re: "verified user label " for user that buy member ship. ( Solved )
« Reply #33 on: December 18, 2017, 05:20:48 PM »
@ reflexus

Quote
I just tried it on the template Veronika, and I want to say that everything works correctly, with login and without.

I can help you and put code for you, but no for free

i think, you not different from me. code use the same .

see comment from @slicer   only you, it work well. i don't believe you
Quote
Used:

<?php
  if(ModelOSP::newInstance()->getUserGroup(osc_item_user_id()) > 1) {
    echo 'Verfied ';
   
  }
?>

in my testing:
1 = current user ID
If it were based on group ID it should be 3 but it doesn't work with group ID though

See website

*

Claso co.ltd

  • ***
  • 29 posts
Re: "verified user label " for user that buy member ship. ( Solved )
« Reply #34 on: December 19, 2017, 05:07:49 AM »
i has been try it but it still show verified label

regard
« Last Edit: January 06, 2018, 06:21:26 AM by Green Stone Entertainment Production »

*

Claso co.ltd

  • ***
  • 29 posts
Re: "verified user label " for user that buy member ship. ( Solved )
« Reply #35 on: December 19, 2017, 05:15:55 AM »
@reflexus
what's your website

*

reflexus

  • ****
  • 146 posts
Re: "verified user label " for user that buy member ship. ( Solved )
« Reply #36 on: December 19, 2017, 06:37:07 AM »
i has been try it but it still show verified label

regard

where did you try? on my website or yours?

This is my test website: http://gidra.de/gidra3/

User 1: [email protected]
Password: testing

User 2: [email protected]
Password: testing

User 3: [email protected]
Password: testing

User 3 is in Group Silver and have Verified label

*

Claso co.ltd

  • ***
  • 29 posts
Re: "verified user label " for user that buy member ship. ( Solved )
« Reply #37 on: January 05, 2018, 08:04:28 AM »
@MB Themes

i want to show all member group ( 3 group members) silver, gold and Premium as verified member. how can i do ?
for one group it work well ( 
Code: [Select]
<<span class="membership-verified" title="Member Verified">
<?php
  
if(ModelOSP::newInstance()->getUserGroup(osc_item_user_id()) >3) {
    echo 
'<i class="fa fa-check-circle" aria-hidden="true"></i>';
  }
?>

</span>)

3= Group Premium Member

 

*

MB Themes

Re: "verified user label " for user that buy member ship. ( Solved )
« Reply #38 on: January 05, 2018, 09:45:18 AM »
Code: [Select]
<<span class="membership-verified" title="Member Verified">
<?php
  $group_id 
ModelOSP::newInstance()->getUserGroup(osc_item_user_id());
  if(
in_array($group_id, array(2,5,6,3))) {
    echo 
'<i class="fa fa-check-circle" aria-hidden="true"></i>';
  }
?>

</span>)


2,5,6,3 are IDs of groups that are identified as verified.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Claso co.ltd

  • ***
  • 29 posts
Re: "verified user label " for user that buy member ship. ( Solved )
« Reply #39 on: January 06, 2018, 06:35:44 AM »
Quote
<<span class="membership-verified" title="Member Verified">
<?php
  $group_id = ModelOSP::newInstance()->getUserGroup(osc_item_user_id());
  if(in_array($group_id, array(2,5,6,3))) {
    echo '<i class="fa fa-check-circle" aria-hidden="true"></i>';
  }
?>
</span>)

@MB Themes
thank you so much, it work fine

*

merry88

  • *
  • 3 posts
Re: "verified user label " for user that buy member ship. ( Solved )
« Reply #40 on: July 13, 2018, 11:44:07 PM »
I have this same interest as well. Can someone tell me where and how to place the code? I am using zara themes and osclass payment plugin that creates each group.

*

oneloveb

  • ****
  • 112 posts
Re: "verified user label " for user that buy member ship. ( Solved )
« Reply #41 on: July 14, 2018, 12:01:58 AM »
Hi, I also want to know exact place to place this code for membership user to have verified label

<<span class="membership-verified" title="Member Verified">
<?php
  $group_id = ModelOSP::newInstance()->getUserGroup(osc_item_user_id());
  if(in_array($group_id, array(2,5,6,3))) {
    echo '<i class="fa fa-check-circle" aria-hidden="true"></i>';
  }
?>
</span>)

Thanks in advance

*

oneloveb

  • ****
  • 112 posts
Re: "verified user label " for user that buy member ship. ( Solved )
« Reply #42 on: July 14, 2018, 11:39:28 AM »
@MB THEMES yOU DONT REPLY YOUR PM AND YOU DONT REPLY HERE WHY???????//////

*

MB Themes

Re: "verified user label " for user that buy member ship. ( Solved )
« Reply #43 on: July 14, 2018, 01:34:01 PM »
You have double << in code instead of single.
PMs are not for support, not watching them too much.
You can place code to item.php
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

merry88

  • *
  • 3 posts
Re: "verified user label " for user that buy member ship. ( Solved )
« Reply #44 on: July 14, 2018, 02:18:21 PM »
I pasted the code on item.php last line, but it did not work. Any guide please? Can someone upload an image of exactly what line to add the code and what the result look like in front end?