- Posts: 23
- Thank you received: 0
Map shows link when printed
- Sarah Cooper
- Topic Author
- Offline
- Junior Member
-
Less
More
6 years 11 months ago #115856
by Sarah Cooper
Map shows link when printed was created by Sarah Cooper
Hi there,
When printing an individual event two things happen:
1. The location map has a link to google maps.
2. In the event properties, next to our location name it has a path.
How do we get rid of both 1 and 2?
Thanks in advance!
When printing an individual event two things happen:
1. The location map has a link to google maps.
2. In the event properties, next to our location name it has a path.
How do we get rid of both 1 and 2?
Thanks in advance!
- Tuan Pham Ngoc
- Away
- Administrator
-
6 years 11 months ago #115865
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Map shows link when printed
Hi
If you want to solve it, I am afraid of you will have to modify code. The idea is use the code below to check if the page is printed and only show the information you want:
#1. You will need to look at the file components/com_eventbooking/view/common/tmpl/event_properties.php, modify code to not show link (not using a tag) when the page is printed (base on the principle above)
#2. The file you need to modify is plugins/eventbooking/map/map.php, guess you need to remove the code below when the page is not in print status:
For doing these modifications, you need to know programming to do
Regards,
Tuan
If you want to solve it, I am afraid of you will have to modify code. The idea is use the code below to check if the page is printed and only show the information you want:
Code:
$print = JFactory::getApplication()->input->getInt('print', 0);
if ($print)
{
// Code applied for print page
}
else
{
// Code applied for standard page
}
#1. You will need to look at the file components/com_eventbooking/view/common/tmpl/event_properties.php, modify code to not show link (not using a tag) when the page is printed (base on the principle above)
#2. The file you need to modify is plugins/eventbooking/map/map.php, guess you need to remove the code below when the page is not in print status:
Code:
var contentString = '<?php echo $bubbleText; ?>';
var infowindow = new google.maps.InfoWindow({
content: contentString,
//maxWidth: 20
});
google.maps.event.addListener(marker, 'click', function () {
infowindow.open(map, marker);
});
infowindow.open(map, marker);
For doing these modifications, you need to know programming to do
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Away
- Administrator
-
6 years 11 months ago #115866
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Map shows link when printed
BTW, from our record, your subscription for Events Booking was expired about 8 - 9 months ago. So please purchase a new license of Events Booking to continue update to latest version and receive support from us when it's needed
Tuan
Tuan
Please Log in or Create an account to join the conversation.
- Sarah Cooper
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 23
- Thank you received: 0
6 years 11 months ago #115881
by Sarah Cooper
Replied by Sarah Cooper on topic Map shows link when printed
Thanks Tuan. But I have renewed our license in July. I will check the map code.
Thanks Sarah
Thanks Sarah
- Sarah Cooper
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 23
- Thank you received: 0
6 years 11 months ago #115882
by Sarah Cooper
Replied by Sarah Cooper on topic Map shows link when printed
Hi Tuan I am a bit confused. I can find the codes but not confident. Do you think you may be able to help a bit more?
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Away
- Administrator
-
6 years 11 months ago #115884
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Map shows link when printed
Hi Sarah
As your support has expired (and actually, code modification like this is not in scope of support), you can purchase a new license of Events Booking
Then submit a support ticket. We will do the modification directly on your site for you
Regards,
Tuan
As your support has expired (and actually, code modification like this is not in scope of support), you can purchase a new license of Events Booking
Then submit a support ticket. We will do the modification directly on your site for you
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Sarah Cooper
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 23
- Thank you received: 0
6 years 11 months ago #115885
by Sarah Cooper
Replied by Sarah Cooper on topic Map shows link when printed
Hi Tuan,
I bought a new license on 11 July 2018. so does not expire until 11 july 2019 - please see attatched image of licences.
I bought a new license on 11 July 2018. so does not expire until 11 july 2019 - please see attatched image of licences.
- Tuan Pham Ngoc
- Away
- Administrator
-
6 years 11 months ago #115886
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Map shows link when printed
Oh, OK. You can submit a support ticket so that I can ask our dev to help with this modification
Tuan
Tuan
Please Log in or Create an account to join the conversation.
- Sarah Cooper
- Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 23
- Thank you received: 0
6 years 11 months ago #115891
by Sarah Cooper
Replied by Sarah Cooper on topic Map shows link when printed
Thank you!
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Away
- Administrator
-
6 years 11 months ago #115902
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Map shows link when printed
Just want to update that this issue is sorted via support ticket
Regards,
Tuan
Regards,
Tuan
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.