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 6 months ago
Licenses:
JomSocial Expired

Hi,
Please try again.
Thx!

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

I found 2 code for send the message..
the first line is correct but the value is in correct always 1..


please you change the second line code, to be like this this



and remove the first code..

Attachments:
8 years 6 months ago
Licenses:
JomSocial Expired

Hi Dimas,

that does not work.
When the code is inserted once, it alsoways sends messages to user "1":
Example:
Now I inserted only:
$onclick = CMessaging::getPopup($row-id);
echo '<a onclick="'.$onclick.'" href="javascript:void(0)">Nachricht senden (in Entwicklung)</a>';

It returns:
<a href=' testberichte.reviews/index.php?option=co...=profile&userid=2396 ' target='_blank'><p class="btn btn-info">Kontaktieren</p></a></br><a onclick="joms.api.pmSend('1')" href="javascript:void(0)">Nachricht senden (in Entwicklung)</a></br>

Thus, the code "$onclick = CMessaging::getPopup($row-id);
echo '<a onclick="'.$onclick.'" href="javascript:void(0)">Nachricht senden (in Entwicklung)</a>';" just does not return the correct recipient. Therefor I added the other snippet with "#" to show you what both types of code return in source code.

The code:
$onclick = CMessaging::getPopup($row-id);
echo '<a onclick="'.$onclick.'" href="#">Nachricht senden (in Entwicklung)</a>';
does in fact return the correct recipient, but does not work for other reasons (keeps loading the page "domain.com/#".

You can check again. There is only code:
$onclick = CMessaging::getPopup($row-id);
echo '<a onclick="'.$onclick.'" href="javascript:void(0)">Nachricht senden (in Entwicklung)</a>';
At the moment.
Regards,
Daniel

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

Hi Daniel,

Your code is wrong,not $row-id.. but it should be like this :

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

8 years 6 months ago
Licenses:
JomSocial Expired

Hi Dimas,

THX, great!
1 Question: How can I use a joomla language string instead of "Nachricht senden"?
Regards,
Daniel

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

use JText::_() like this :

echo '<a onclick="'.$onclick.'" href="javascript:void(0)">'.JText::_('COM_COMMUNITY_INBOX_SEND_MESSAGE').'</a>';

our you can create your own languange string, and put it on override joomla language, since this is not jomsocial page so you cant use jomsocial string... but well you can try use jomsocial lang if you want but not sure it will work or not :)

8 years 6 months ago
Licenses:
JomSocial Expired

Great, THX,
Works fine!
Regards,
Daniel

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