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.

Event Print out. - Wrong Link for google maps.

9 years 6 months ago
Licenses:
JomSocial Active iSEO Expired Socialize Expired

the Map is not coming out when I try to print out the event.

looks like the link is wrong...

It's pulling ... 'http:/MYURL.com/maps.google.com......' instead of ' maps.google.com ......'

How can I fix this problem?

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

Hi MJay,

This is valid bug, I already reported to our developer for this one.

thank you

9 years 6 months ago
Licenses:
JomSocial Active iSEO Expired Socialize Expired

Alright... but can you tell how to manually fix it for now or provide a patch to fix the problem?


Thank you.

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

Hi MJay,

I will let me know as soon as possible when I have the patch for this.

thank you

9 years 6 months ago
Licenses:
JomSocial Active iSEO Expired Socialize Expired

Any Updates?

Let me know.

Thank you.

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

Hi MJay,

For fixing this, please you open this file components/com_community/libraries/mapping.php, find this code :

const STATICMAP_URL = 'maps.google.com/maps/api/staticmap?';

change to :
const STATICMAP_URL = 'https://maps.google.com/maps/api/staticmap?';

and open this file components/com_community/views/events/view.html.php, find this code :
$config = CFactory::getConfig();
 $my = CFactory::getUser();
 // We need to attach the javascirpt manually

 $js = JURI::root(true) . '/components/com_community/assets/joms.jquery-1.8.1.min.js';
 $script = '<script type="text/javascript" src="' . $js . '"></script>';

 $js = JURI::root(true) . '/components/com_community/assets/script-1.2.min.js';

 $script .= '<script type="text/javascript" src="' . $js . '"></script>';

 $creator = CFactory::getUser($event->creator);
 $creatorUtcOffset = $creator->getUtcOffset();

replace to :
$config              = CFactory::getConfig();
 $my                  = CFactory::getUser();
 $js                  = JURI::root(true) . '/components/com_community/assets/joms.jquery-1.8.1.min.js';
 $script              = '<script type="text/javascript" src="' . $js . '"></script>';
 $js                  = JURI::root(true) . '/components/com_community/assets/script-1.2.min.js';
 $script              .= '<script type="text/javascript" src="' . $js . '"></script>';
 $creator             = CFactory::getUser($event->creator);
 $creatorUtcOffset    = $creator->getUtcOffset();

I hope it will help.

thx

9 years 6 months ago
Licenses:
JomSocial Active iSEO Expired Socialize Expired

It worked.

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