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.

Using JS Modules on website

10 years 1 month ago
Licenses:
JomSocial Active

Hello,
im trying to place JS DATING SEARCH Module on homepage (or it is basically about any page that is not Jomsocial type - like Article detail, Blog etc.). When I try to Submit the Search Form, it doesnt do anything - console says "Uncaught ReferenceError: joms is not defined". If I place the module on Jomsocial menu item page, it works well.
I guess reason is, that Jomsocial JS libraries are not loaded outside Jomsocial. Is there some way to make it work (otherwise it would make those modules almost useless :( )?

Thanks,
Pavel

10 years 1 month ago
Licenses:

Ahoj.

You could add those scripts manually ad wrapp them in php condition to stop them loading twice:

<?php if ((JRequest::getInt( 'Itemid' )) != '399'): ?>
<script src="/test/components/com_community/assets/release/js/loader.js" type="text/javascript"></script>
<script src="/test/components/com_community/assets/release_32/js/bundle.js" type="text/javascript"></script>
 <script src="/test/components/com_community/assets/vendors/toolkit.min.js" type="text/javascript"></script>
 <?php endif; ?>

Where 399 is menu item ID of JomSocial frontpage.

Make sure that you provide right path to those scripts - replace test on beginning.

I report that issue to our developers anyway.


- 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
10 years 1 month ago
Licenses:
JomSocial Active

Hello,
thank you for fast reply. I have tried it but it didnt help. Console now says: Uncaught TypeError: undefined is not a function
And module still doesnt submit the form.

Pavel

10 years 1 month ago
Licenses:

Ahoj.

I reported it as a valid bug for our developers.
Now, we need to wait for fix.


- 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
10 years 1 month ago
Licenses:
JomSocial Active

Ahoj.

thank you for feedback. Hopefully it will be fixed soon :)
Have a nice day.

10 years 1 month ago
Licenses:

Ahoj.

Please, make safe copy of this file:

ROOT/modules/mod_datingsearch/tmpl/default.php

Then replace original with patched file from package.


- 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

This message has an attachment file.
Please log in or register to see it.

The following user(s) said Thank You: Český WEB
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