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.

Private Messaging Code

10 years 4 months ago
  • Alex's Avatar
    Topic Author
  • Alex
  • Offline
  • Fresh Boarder
  • Posts: 14
  • Thank you received: 0
Licenses:
JomSocial Expired

Hi,

Is there a way to take the JS code for private messaging and put it into the template of another component? What I'm trying to do is PM inside a directory listing (SobiPro). I like how the popup appears inside the JS component, is this possible inside another component?

I tested copying the PM code on a page...the button was there, but the popup didn't happen. Here's the code I copied:

<div class="span4 text-right">
<a class="btn" onclick="joms.messaging.loadComposeWindow('940')" href="javascript:void(0);">
<span>Send Message</span>
</a>

Thanks so much,
:)

10 years 3 months ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

Hi Alex,

Just make sure you already load the Joms.messaging javascript library.. maybe it will fix this...

Sorry I cannot help you too much with this issue, since this is not beyond our support.. I suggest you search the 3rd party developer to help this.

thx

10 years 3 months ago
  • Alex's Avatar
    Topic Author
  • Alex
  • Offline
  • Fresh Boarder
  • Posts: 14
  • Thank you received: 0
Licenses:
JomSocial Expired

Where do I find the Javascript library? :)

10 years 3 months ago
  • Alex's Avatar
    Topic Author
  • Alex
  • Offline
  • Fresh Boarder
  • Posts: 14
  • Thank you received: 0
Licenses:
JomSocial Expired

Hi,

Where is the joms.messaging JavaScript library located? I can't seem to find it.

Thank you,
:)

10 years 3 months ago
  • Dimas Tekad Santosa's Avatar
  • Dimas Tekad Santosa
  • Visitor
  • Thank you received: 0
Licenses:

Please you try load this library :

require_once(JPATH_BASE .'/components/com_community/libraries/core.php');
CAssets::attach('assets/joms.jquery-1.8.1.min.js', 'js');
CAssets::attach('assets/script-1.2.min.js', 'js');

for load javascript function Joms.messaging, you need these files joms.jquery-1.8.1.min.js and script-1.2.min.js

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