Skip to Content Skip to Menu

🌟 CB Editor Assistant 1.0.0 is here! Discover our new AI Joomla Plugin that wrote its story! (and this banner!)
Start at just $12.50/month* or 💸 save 30% with our 🛍️ Black Friday Intro Offer for your subscription's lifetime

[SOLVED] userlist show only friends

  • smFruen
  • smFruen
  • OFFLINE
  • Posts: 116
  • Thanks: 5
  • Karma: 3
8 years 1 month 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 1 month 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 1 month ago - 8 years 1 month 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 1 month 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