Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount! Get 20% off now with code SPOOKY-2024!

[SOLVED] userlist show only friends

  • smFruen
  • smFruen
  • OFFLINE
  • Posts: 116
  • Thanks: 5
  • Karma: 3
8 years 2 weeks ago #286915 by smFruen
Replied by smFruen on topic userlist show only friends
like this

( ( ( SELECT COUNT(*) FROM `#__comprofiler_members` AS conn WHERE conn.`memberid` AND conn.`pending` = u.`id` AND conn.`referenceid` = '[user_id]' AND conn.`accepted` = 1 ) = 0 ) >= 1 )

Please Log in or Create an account to join the conversation.

  • smFruen
  • smFruen
  • OFFLINE
  • Posts: 116
  • Thanks: 5
  • Karma: 3
8 years 2 weeks ago #286917 by smFruen
Replied by smFruen on topic userlist show only friends
( ( SELECT COUNT(*) FROM `#__comprofiler_members` AS conn WHERE conn.`memberid` = u.`id` AND conn.`referenceid` AND `pending` = '[user_id]' = 1 AND conn.`accepted`AND `pending` != 0 ) = 1 )

it is cloche what wrong

Please Log in or Create an account to join the conversation.

  • smFruen
  • smFruen
  • OFFLINE
  • Posts: 116
  • Thanks: 5
  • Karma: 3
8 years 2 weeks ago - 8 years 2 weeks ago #286923 by smFruen
Replied by smFruen on topic userlist show only friends
:) :) :) :) :) :) :)

Userlist showing
only friends/connection


only with accepted:
Code:
( ( SELECT COUNT(*) FROM `#__comprofiler_members` AS conn WHERE conn.`memberid` = u.`id` AND conn.`referenceid` = '[user_id]' AND conn.`accepted` AND `pending` = 0 ) != 1 ) = 0


with un-accepted:
Code:
( ( SELECT COUNT(*) FROM `#__comprofiler_members` AS conn WHERE conn.`memberid` = u.`id` AND conn.`referenceid` = '[user_id]' AND conn.`accepted` = 1 ) >= 1 )

Only users i Pending approval from
Code:
( ( SELECT COUNT(*) FROM `#__comprofiler_members` AS conn WHERE conn.`memberid` = u.`id` AND conn.`referenceid` = '[user_id]' AND conn.`accepted` AND `pending` != 0 ) != 1 ) = 0


users that want to be my friends / user i need to approv
Code:
( ( SELECT COUNT(*) FROM `#__comprofiler_members` AS conn WHERE conn.`referenceid` = u.`id` AND conn.`memberid` = '[user_id]' AND conn.`accepted` AND `pending` != 0 ) != 1 ) = 0

Only users i Pending approval from with a avatar
Code:
( ( SELECT COUNT(*) FROM `#__comprofiler_members` AS conn WHERE conn.`memberid` = u.`id` AND conn.`referenceid` = '[user_id]' AND conn.`accepted` AND `pending` AND `avatar` != 0 ) != 1 ) = 0

it works, like that

:):)and a big thank to krileon for help me to learn:):)
Last edit: 8 years 2 weeks ago by smFruen. Reason: more code
The following user(s) said Thank You: krileon

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum