Skip to Content Skip to Menu

Add a facebook like poke button to user profile

  • thadeusz
  • thadeusz
  • OFFLINE
  • Posts: 6
  • Thanks: 0
  • Karma: 0
9 years 11 months ago #252904 by thadeusz
Hi there,

Is there a way to add a poke button to the user profile with the same functionality to Facebook's poke button? If user A clicks on the poke button of user B, then user B should get a notification similar to "You have 1 connection request" when someone tries to request a connection to user B, e.g. "2 user(s) have poked you". If user B clicks on that link ("2 user(s) have poked you"), then user B should be able to see who has clicked on their poke button.

I tried this:
Components > Community Builder > Field Management > New Field
Type: Fields Delimiter
Tab: Profile
Name: cb_poke
Title: Poke Button

In Edit Window add:
<FORM><INPUT TYPE="BUTTON" VALUE="Back" ONCLICK="function_poke()"></FORM>

Required?: No
Show on Profile?: Yes, on 1 line
Display field title in Profile?: No
Published: Yes

My problem: I have to write the function_poke().
My question:
1. How do I get the user name of the person who clicked on user B's poke button?
2. How do I realize the notification feature for user B?

Thanks in advance.

Regards

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

  • thadeusz
  • thadeusz
  • OFFLINE
  • Posts: 6
  • Thanks: 0
  • Karma: 0
9 years 11 months ago - 9 years 11 months ago #252951 by thadeusz
I realized it is better to create a cb plubin for that. So, the 1st question is solved.

Does anyone know the answer to the 2nd question? As you can see in the picture below, in the current settings you get 3 kinds of notifications:


- when someones PMs you
- when you get a connection request
- when someone posts on your profile wall

I want to add a 4th kind of notification:
- when someone clicks on the "Poke" button.

Does anyone know how to do it?
Last edit: 9 years 11 months ago by thadeusz.

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

  • thadeusz
  • thadeusz
  • OFFLINE
  • Posts: 6
  • Thanks: 0
  • Karma: 0
9 years 10 months ago #253453 by thadeusz
How can I save the information in joomla that a user has clicked on the poke button of another user?

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

Moderators: beatnantkrileon
Powered by Kunena Forum