Welcome, Guest
Username: Password: Remember me

TOPIC: Calendar popup icon - calendar.png

Calendar popup icon - calendar.png 3 years 6 months ago #3934

  • David H
  • David H's Avatar
  • OFFLINE
  • Jomres legend
  • Posts: 405
  • Thank you received: 18
Hi Vince et al

I hope you're well.

Joomla 1.5.22
Jomres 4.7.3
sh404SEF 2.2.2.941 (latest)

I've got an annoying (rather than critical) issue with the calendar icon, due to sh404SEF (I've looked all over their forums - awaiting feedback) rewriting urls to:

www.azurvillas.com/french-riviera/france.../images/calendar.png


jomres_icons.png



Which obviously ain't gonna work! Path should be: www.azurvillas.com/jomres/images/calendar.png

However, strange thing is that the icon only goes awol on the form generated via the 'Reserve Now' button: www.azurvillas.com/french-riviera/france.../holiday-rental.html and also the property list: www.azurvillas.com/

If you go to: www.azurvillas.com/french-riviera/france.../holiday-rental.html and click on the 'Availability' tab and click on a date, the icons appear on the form generated...hmmmm...:huh:

Has anyone else had this problem to your knowledge? Or can anyone else shed any light on it?

I know that it's probably a sh404SEF issue, but any input would be appreciated.

Kind regards

David
The administrator has disabled public write access.

Re: Calendar popup icon - calendar.png 3 years 6 months ago #3937

  • Dirk
  • Dirk's Avatar
  • OFFLINE
  • Getting there!
  • Posts: 63
Hi David i had the problem aswell..
the thing i did to solve it (probably not the right one but it works)

jomres/images/number1.png
../jomres/images/number1.png

just put 2 pionts and a slash infrond have to do alittle search your self but its worth it

Dirk
The administrator has disabled public write access.

Re: Calendar popup icon - calendar.png 3 years 6 months ago #3938

  • David H
  • David H's Avatar
  • OFFLINE
  • Jomres legend
  • Posts: 405
  • Thank you received: 18
Dirk wrote:
Hi David i had the problem aswell..
the thing i did to solve it (probably not the right one but it works)

jomres/images/number1.png
../jomres/images/number1.png

just put 2 pionts and a slash infrond have to do alittle search your self but its worth it

Dirk

Thanks for the tip Dirk, tried it but unfortunately to no avail.

I found the location: /jomres/libraries/jomres/functions/functions.php - around line 2102:

buttonImage: \''.get_showtime('live_site').'/jomres/images/calendar.png\',

as I say, tried ../ in front and adding full path but no-go.

Not sure if that's the only file referring to calendar.png though...Hmmmm...

I'll get back if I work out how to get the icon displaying.

David
The administrator has disabled public write access.

Re: Calendar popup icon - calendar.png 3 years 6 months ago #3939

  • Dirk
  • Dirk's Avatar
  • OFFLINE
  • Getting there!
  • Posts: 63
well your right... its not workin even in line 2181
$output.=" value=\"".$dateValue."\" id=\"x".$randomID."\"/>
<a class=\"dateinput_button\" href=\"#\" id=\"x".$randomID2."\" ><img src=\"".get_showtime('live_site')."../jomres/images/calendar.png\" width=\"20\" height=\"20\" border=\"0\" alt=\"dateinput\" align=\"top\" />

Does not work is i change it there ...

some body have an solution?
The administrator has disabled public write access.

Re: Calendar popup icon - calendar.png 3 years 6 months ago #3940

  • David H
  • David H's Avatar
  • OFFLINE
  • Jomres legend
  • Posts: 405
  • Thank you received: 18
Hi Dirk

Nope, not managed to work it out yet. I think is has to be because it's part of the datepicker function which generates a unique id for the arrival/departure inputs:

<td width="150"><script type="text/javascript">
jQuery(function() {
jQuery("#zMKTcsrROS").datepicker( {
dateFormat: "dd/mm/yy",
minDate: 0, maxDate: "+5Y",
buttonImage: 'jomres/images/calendar.png',
autoSize:true,
buttonImageOnly: true,
showOn: "both",
changeMonth: true,
changeYear: true,
numberOfMonths: 1,
showOtherMonths: true,
selectOtherMonths: true,
showButtonPanel: true,firstDay: 0,onSelect: function() {
ajaxADate(this.value,'%d/%m/%Y'); getResponse_particulars('arrivalDate',this.value,'zMKTcsrROS');
},beforeShowDay: isAvailable} );

});
</script>

<input type="text" size="10" name="arrivalDate" id="zMKTcsrROS" value="17/02/2011" readonly="readonly" />
</td>
<td width="150">Departure</td>
<td width="150"><script type="text/javascript">
jQuery(function() {
jQuery("#zMKTcsrROS_XXX").datepicker( {
dateFormat: "dd/mm/yy",
minDate: 0, maxDate: "+5Y",
buttonImage: 'jomres/images/calendar.png',
autoSize:true,
buttonImageOnly: true,
showOn: "both",
changeMonth: true,
changeYear: true,
numberOfMonths: 1,
showOtherMonths: true,
selectOtherMonths: true,
showButtonPanel: true,firstDay: 0,onSelect: function() {
getResponse_particulars('departureDate',this.value);
}} );

});
</script>
<input type="text" size="10" name="departureDate" id="zMKTcsrROS_XXX" value="18/02/2011" readonly="readonly" />
</td>

I've tried commenting the image out and changing it to text e.g. 'Click' but it doesn't like that!

David
The administrator has disabled public write access.

Re: Calendar popup icon - calendar.png 3 years 6 months ago #3941

  • Dirk
  • Dirk's Avatar
  • OFFLINE
  • Getting there!
  • Posts: 63
Hi David where is this file?
The administrator has disabled public write access.

Re: Calendar popup icon - calendar.png 3 years 6 months ago #3943

  • David H
  • David H's Avatar
  • OFFLINE
  • Jomres legend
  • Posts: 405
  • Thank you received: 18
Dirk wrote:
Hi David where is this file?

Hi Dirk

:woohoo: - got it sussed!! B)

Go here: jomres/libraries/jomres/classes/dobooking.class.php

Around line 2355 you see:

buttonImage: \'jomres/images/calendar.png\',

change it to:

buttonImage: \'/jomres/images/calendar.png\', - forward slash was missing.

Here's the result: www.azurvillas.com/french-riviera/france...p-6/reservation.html

I thought it must only be something simple. Luvverly!

Thanks for your input Dirk.

David
Last Edit: 3 years 6 months ago by David H.
The administrator has disabled public write access.

Re: Calendar popup icon - calendar.png 3 years 6 months ago #3952

  • Dirk
  • Dirk's Avatar
  • OFFLINE
  • Getting there!
  • Posts: 63
Together we┬┤ll manage :P
The administrator has disabled public write access.

Re: Calendar popup icon - calendar.png 3 years 6 months ago #3954

  • David H
  • David H's Avatar
  • OFFLINE
  • Jomres legend
  • Posts: 405
  • Thank you received: 18
Hi Dirk

Yep, every little helps! ;)

David
The administrator has disabled public write access.

Re: Calendar popup icon - calendar.png 3 years 6 months ago #3978

  • Vince Wooll
  • Vince Wooll's Avatar
  • OFFLINE
  • Moderator
  • Posts: 5204
  • Thank you received: 419
Off the top of my head, that forward slash wouldn't work if you're running Jomres in a sub-dir off your main site. The next ver of Jomres will have this in :

jomres.trac.cvsdude.com/Jomres_core_v4/changeset/1266
Please review Jomres.
Follow me on twitter
Do not send me PMs, if you need to contact me use the ticket system.
The administrator has disabled public write access.

Re: Calendar popup icon - calendar.png 3 years 6 months ago #4004

  • safe77
  • safe77's Avatar
  • OFFLINE
  • Jomres Guru
  • Posts: 282
  • Thank you received: 13
Hi,
I had same issue with calendar and :
jomres.trac.cvsdude.com/Jomres_core_v4/changeset/1266

did solve the calendar problem.

Thx Vince.
The administrator has disabled public write access.

Re: Calendar popup icon - calendar.png 3 years 6 months ago #4054

  • David H
  • David H's Avatar
  • OFFLINE
  • Jomres legend
  • Posts: 405
  • Thank you received: 18
safe77 wrote:
Hi,
I had same issue with calendar and :
jomres.trac.cvsdude.com/Jomres_core_v4/changeset/1266

did solve the calendar problem.

Thx Vince.

Hi safe77

I just tried it too, but no calendar.png - so reverted back to the forward slash!

Yes, thanks Vince.

David
The administrator has disabled public write access.
Time to create page: 0.221 seconds