Skip to Content Skip to Menu

[SOLVED] fan instead of connections

10 years 9 months ago - 10 years 9 months ago #239527 by thewebsurfer
[SOLVED] fan instead of connections was created by thewebsurfer
hi, i'm tryng to make a Fan system
(with a "Became Fan!" or "Like" button with the substitution [menu caption="like!"] _UE_MENU_CONNECTIONS : _UE_ADDCONNECTION[/menu]).
i set off "mutual connection" and "auto add connections",

but in this way the user who press the button became "single" friend but not the user who get the "invisible" request: i want the opposite.

there is a way to make a Fan system?

i guess i need a little hack, am i wrong?
Last edit: 10 years 9 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
10 years 9 months ago #239565 by krileon
Replied by krileon on topic fan instead of connections
It's not really designed like that. For reverse behavior you'd need to implement a custom solution (there's an API call for it, just not a URL to do it). It'd probably be best to develop a plugin to provide that kind of behavior. Note we'll have Like features for CB 2.0 once we get the API implemented.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

10 years 9 months ago #239571 by thewebsurfer
Replied by thewebsurfer on topic fan instead of connections

krileon wrote: It's not really designed like that. For reverse behavior you'd need to implement a custom solution (there's an API call for it, just not a URL to do it). It'd probably be best to develop a plugin to provide that kind of behavior. Note we'll have Like features for CB 2.0 once we get the API implemented.


sorry for the ot, but there's some kind of date for cb2?how's the betatesting state?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
10 years 9 months ago #239582 by krileon
Replied by krileon on topic fan instead of connections

but there's some kind of date for cb2?

When it's done.

how's the betatesting state?

We've just released Beta 2. A Beta 3 and RC are planned before stable.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

10 years 9 months ago - 10 years 9 months ago #239591 by thewebsurfer
Replied by thewebsurfer on topic fan instead of connections
as rough hack i could edit the query and switch reference and member id (waiting for cb2)

i tried to edit the saveConnection query and _activateConnection query
Code:
$sql="UPDATE #__comprofiler_members SET description='".htmlspecialchars(cbGetEscaped($desc))."', type='".htmlspecialchars(cbGetEscaped($contype))."' WHERE referenceid=".(int) $connectionid." AND memberid=".(int) $this->referenceid;

but the connections works in the same way :blink: where is the query who makes the connection?
Last edit: 10 years 9 months ago by thewebsurfer.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
10 years 9 months ago #239604 by krileon
Replied by krileon on topic fan instead of connections
The connection request endpoints are within the below file.

/components/com_comprofiler/comprofiler.php

Review addConnection, removeConnection, denyConnection, and acceptConnection. Sorry, I can not advise you on core edits so you are on your own in regards to modifying these.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

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

Moderators: beatnantkrileon
Powered by Kunena Forum