Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Integrating Jomsocial messaging

8 years 7 months ago
Licenses:
JomSocial Expired

ISSUE SUMMARY:
Tried to use the code snippet you are giving to integrate jomsocial messaging. I managed to show a link in frontend that obens a box with message window, but page keeps loading and after 2-3 seconds it ends up with " www.mydomain.de/# " which leads to start page.

Snippet I found:
include_once JPATH_ROOT.'/components/com_community/libraries/core.php';
include_once JPATH_ROOT.'/components/com_community/libraries/messaging.php';
// Add a onclick action to any link to send a message
// Here, we assume $usrid contain the id of the user we want to send message to
$onclick = CMessaging::getPopup($userid);
echo '<a onclick="'.$onclick.'" href="#">Send message</a>';

Chrome console shows error:
GET ajax.googleapis.com/ajax/libs/jqueryui/1...s/base/jquery-ui.css 404 ()

I guess it is an issue caused by wrong jquery loaded by my site?

Regards,
Daniel

8 years 7 months ago
Licenses:

HI, Daniel.

Thank you for contacting us.
Where did you find that snippet?


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
8 years 7 months ago
Licenses:
JomSocial Expired
8 years 7 months ago
Licenses:
JomSocial Expired

PS.: I was able to fix the query error but it did not fix the error with redirection to www.domain.de/#

8 years 7 months ago
Licenses:

HI, Daniel.

I assign developer to take a look.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
8 years 7 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi Daniel,

Can you provide me the stepsto test this action, please?

thank you!

8 years 7 months ago
Licenses:
JomSocial Expired

Hi Dimas,


Not easy. I have a custom component with a user list. I want to have a button in this user list to use jomsocial messanging. Since it did not work to insert the given code, I just use a button that leads to jomsocial profile - where user can use "sent message" button. But I cannot implement the code snippet in the user list since it does not work and I have only my life site and no testing surrounding, so all users would have the feature not working. Understand?
Please see image.
Regards,
Daniel

Attachments:
8 years 7 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi Daniel,

Please provide me the URL to access your screenshoot, you need upload your code to your staging site so we can test it .. I really need to test the "send message" on the live action directly, so I can you then :)

thank you

8 years 6 months ago
Licenses:
JomSocial Expired

Hi Dimas,

pls login and go to:
testberichte.reviews/?option=com_events&...9&user_type=approved

And click on link "Nachricht senden (in Entwicklung)" (see screenshot).
Thx!
Regards,
Daniel

Attachments:
8 years 6 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi,

Edit the html <a code to be like this :

<a onclick="joms.api.pmSend('1')" href="javascript:void(0)">Nachricht senden (in Entwicklung)</a>

I hope it will help :)

cheers!

8 years 6 months ago
Licenses:
JomSocial Expired

HI,

replacing
<a onclick="'.$onclick.'" href="#">Send message</a>
with
<a onclick="joms.api.pmSend('1')" href="javascript:void(0)">Nachricht senden (in Entwicklung)</a>
gave me a blank page when loading the url :-(
With no chrome errors.
Regards,
Daniel

8 years 6 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

change to be like this

<a onclick="'.$onclick.'"  href="javascript:void(0)">Nachricht senden (in Entwicklung)</a>

8 years 6 months ago
Licenses:
JomSocial Expired

HI,
getting near...
now message can be sent but it is sent to "a guest", not to the user with id set in code.

I have added two examples:
$onclick = CMessaging::getPopup($row-id);
echo '<a onclick="'.$onclick.'" href="javascript:void(0)">Nachricht senden (in Entwicklung)</a>';
echo "</br>";
$onclick = CMessaging::getPopup($row->id);
echo '<a onclick="'.$onclick.'" href="#">Nachricht senden (in Entwicklung)</a>';

First one works properly in meaning of opening popup but send message to "a guest" (see attachement), second works in terms of opening the popup with message to correct user but page keeps loading and ends up at start page (as described initially) .

Pls check.
THX,
Daniel

Attachments:
8 years 6 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi daniel,

I already logged and then I go to this page testberichte.reviews/?option=com_events&...9&user_type=approved but its redirected to another URL, so how can I test this issue again?

thank you!

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW