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.

Enable Jomsocial Pop-ups on Other Component Pages

10 years 3 months ago
  • Jim's Avatar
    Topic Author
  • Jim
  • Offline
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 0
Licenses:
JomSocial Active Socialize Expired

Hi there,

I would like to be able to load any and all of the possible javascript pop-up boxes on other component pages.

- Notifications
- PM
- Friend Requests
- Photo Uploads
- ect

For example, I have a "Photo Upload" button that I would like to appear site wide in the header. Here is the custom module code I added:

<a href="javascript: void(0);"
		   		   onclick="joms.notifications.showUploadPhoto('0','0'); return false;"><span class="icon-upload-alt">Upload Photos</span></a>

It loads fine on all jomsocial pages. I have jreviews and easyblog installed on the site along with jomsocial. The popups work fine on EasyBlog, but nothing shows up when you are viewing a jreviews page.

Is there a certain library that needs to be loaded? What is the code that needs to be added to these other component pages in order to get the pop-ups to work?

Thanks in advance for your help.
Jim

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

Hi Jim,

Please you try load this library first :

require_once( JPATH_BASE .'/components/com_community/libraries/core.php');
$js		= 'assets/script-1.2.min.js';
CAssets::attach($js, '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