Welcome, Guest. Please login or register. Please note that you need to register seperately to use this forum.
September 10, 2010, 03:42:26 PM
Jomres.net ForumsJomresThird Party pluginssplit image arive depart plugin for client user SRPCalendar
Pages: [1] 2
Print
Author Topic: split image arive depart plugin for client user SRPCalendar  (Read 2481 times)
pauldrijs
Jr. Member
**
Posts: 64


View Profile
« on: January 03, 2010, 07:25:26 PM »

I have created a plugin (see attached) for the SRPCalendar (similar to the one for the SRP dashboard) showing same-day arival & depart days as split half-day images showing the morning (for departure) as a different colour to the afternoon (for new arival) according to the booking state.

The SRPCalendar displays the calendar for ordinary client users. The only real difference is that for the client user (this plugin) intermediate changeover days within a block of booking are not indicated with the "/" as they are for the dasboard.



The thread which charts the development of the original plugin is in http://forum.jomres.net/index.php?topic=2293.30. The plugin is attached to one Vince's post there and can be downloaded from there.

This new plugin basicaly works but it still suffers from differences in the way that the various browsers display images in different ways and under different templates. So it may be necessary for you to edit the size of the images as best works for your template.

I plan to have a further look at trying to reduce the image display differences but from googling there does seem to be genuine differences between how the various browsers treat background images in cells and there does not seem to be a way of auto-scaling a background image within the cell. If someone knows a browser independent way of doing this then please let me know.

Let me know of problems.

Vince, Piranha,
Let me know if you think there is anything basically wrong in the way I have implemented the plugin or suggest improvements.

Also,
1. From googling about the image display variances between different browsers it seems that the "DOCTYPE" declaration is critical to browser behaviour but I couldn't see which jomres file generates it, any pointers welcome, also whether you think touching this will likely mess everything else up!
2.  Is there a way within the code to detect which type of browser is being used (if XXXXX.....). As some of the different behaviors are predictable.

All the best to you all and jomres for the New Year.
Paul.

[** POST NOTE: DOWNLOAD LATER VERSION ATTACHED TO LATER POST (dated 16/01/10) IN THIS THREAD **
** THE VERSION ATTACHED TO THIS EARLIER POST INCLUDES LOTS OF DEBUG TEST OUTPUT SO HAVE NOW DELETED/DETACHED FROM THIS POST**]
« Last Edit: May 23, 2010, 10:35:05 AM by pauldrijs » Logged
Piranha
Global Moderator
Hero Member
*****
Posts: 1251



View Profile WWW
« Reply #1 on: January 09, 2010, 12:07:26 PM »

Very nice. I`ll have a look at this as soon as I`ll have some time. I think the cell dimensions can be adjusted with some css to work on all templates.
Logged

Jomres Plugins, Templates & Customization Services on Jomres-Extras.com
Please don`t PM me for support.
For Jomres Lite support, please see here: http://www.opensourcesupportdesk.com/
jeyjey
Jr. Member
**
Posts: 84


View Profile
« Reply #2 on: January 16, 2010, 08:14:18 AM »

I am an EAgent PRO user and I have a regular online flats page with that cheap utility. I have a test page in wich I am testing the new component I've bought a week ago: Jomres. As I usually do I want to give an help to the community. So we can use my website to test the all situation and the plugin growing up. The link with the error is: http://www.isoladelgiglio.com/it/appartamenti-affitto/jomresprove.html where you can see the error. Please reply here soon because I need to learn JOMRES and I am stopping my job to let you analyze the plugin error. This plugin is important for me and I am waiting your needs if it is useful to you.
Situation:

Joomla 1.5.15
Jomres 4.4
Backend Calendar plugin
Frontend Calendar plugin
Rockettheme Synapse
Firefox LAST VERSION

Thanks.
Logged
pauldrijs
Jr. Member
**
Posts: 64


View Profile
« Reply #3 on: January 16, 2010, 01:46:12 PM »

Jeyjey,

Try the attached, absolutely no guarantees.
It is still "work in progress" and image display is not always right, particularly under  IExplorer.

BTW. I am an ordinary jomres user like you (well similar) who wanted this feature and have tried to learn and create it for myself and for my own use. However, I have shared it with the community as it is hopefully useful to others. If they can help improve it by test and feedback then great. Doing it is taking me away from my job, I am ok with this but do it in my own time at own pace.

Whilst I want the feature (not neccessarily my implementation) as a core feature of jomres I fully understand and agree with Vince why this is not possible/appropriate at this time and that a 3rd-party  plugin is best if not ideal approach. See explanation in earlier dashboard thread.

I have no connection with Jomres whatsoever other than I have bought it and like it. Vince (and others such as Piranha) have been very helpful in pointing me in the right direction as I have learnt but it is not yet fully there. So is not appropriate to criticise jomres if my plugin does not fully work right.

I believe the basic functionally works but before putting on live site would recommend anybody test it under your template for variety of browsers.

Paul.


 

* pdrijs_SRP17availabilitycalendar.zip (12.76 KB - downloaded 70 times.)
« Last Edit: January 16, 2010, 02:15:59 PM by pauldrijs » Logged
jeyjey
Jr. Member
**
Posts: 84


View Profile
« Reply #4 on: January 16, 2010, 03:07:35 PM »

Quote
So is not appropriate to criticise jomres if my plugin does not fully work right.
I don't want to criticise your plugin I love it! If my feedbacks are usefull I'll write them. Ok, thanks.  Wink
Logged
jeyjey
Jr. Member
**
Posts: 84


View Profile
« Reply #5 on: January 16, 2010, 03:16:10 PM »

 Kiss
It works fine! See the page for analyze the images: http://www.isoladelgiglio.com/it/appartamenti-affitto/jomresprove.html. Thanks.


* feedback.jpg (65.95 KB, 521x208 - viewed 106 times.)
Logged
pauldrijs
Jr. Member
**
Posts: 64


View Profile
« Reply #6 on: January 16, 2010, 05:03:09 PM »

Jeyjey,

Thanks for feedback is welcome, am glad it works for your template. I know for some templates the images don't always look right under Iexplorer (they normally look fine under FF), but yours looks right and same under both.

Doe the dashboard plugin (used for for PropMgr calendar etc) also look right on your system?

Paul.
Logged
jeyjey
Jr. Member
**
Posts: 84


View Profile
« Reply #7 on: January 16, 2010, 05:57:14 PM »

Yes it works very fine .... I am happy. Now surfers can see the weeks completely described. Thanks very mutch! Best regards.


* feedback_2.jpg (117.51 KB, 686x537 - viewed 118 times.)
Logged
pauldrijs
Jr. Member
**
Posts: 64


View Profile
« Reply #8 on: January 16, 2010, 11:53:17 PM »

Jeyjey,

Looking at your dashboard image (feedback 2) I see you do have some image distortion (a sort of "Z" effect on the changeover days) where there is a green line at the bottom of 14th Aug cell and red line at the bottom of the 21st Aug cell.  I hope to eventually issue a version where this doesn't happen but in the meantime if you want to eliminate it you could try by changing the size of the image files issued in with the plugin from 16w x 16h pixels to 16w x 18h pixels (may work, not certain). They can be found in the directory YOUR_ROOT\jomres\remote_plugins\drijs_dashboard. If you want to try this and don't know how to do it say so, I may be able to send you.

Paul.
« Last Edit: January 17, 2010, 12:00:22 AM by pauldrijs » Logged
extension
Sr. Member
****
Posts: 265


View Profile Email
« Reply #9 on: June 08, 2010, 05:01:16 PM »

Hi and thanks for an elegant plugin, it solved a lot of problems for one of my customers.

Is it possible, some how, to let the colored fields appear in the greyed (dimmed) area as long as the guests not has been booked out. Or at least keep the yellow triangle visible.

Please see room 5 and 6... -dates 6-7-8 of June. There should have been a yellow triangle on the 8th of June.


Best regards
Boris


* Billede 1.png (17.88 KB, 317x210 - viewed 40 times.)
Logged
pauldrijs
Jr. Member
**
Posts: 64


View Profile
« Reply #10 on: June 10, 2010, 12:24:23 AM »

Boris,

It has been some months since I did the plugin so I will have to look at it again to be sure what is possible. I remember there were some limitations at the transition from the grey (past dates) because it was not easily possible to tell whether there was a booking or not in the "past dates". I'll have a look at the weekend and let you know if anything is possible.

If I have understood what you want correctly I don't think it makes sense to show the full coloured cells of the bookings within the "past periond". In that case it may be better to do away with the grey "past-cells completely and show all in appropriate colours. Is that preferred or not?

I just want to check I understand what you want. In the example you mentioned for June 8th you would like to see at least a yellow triangle in the top left of the cell and a green triangle in the bottom right. ie. the same as for June 10th for the very first row (01). Please confirm this is corect understanding

Finally, do you need it for the SRP client view as well as the dashboard view?

No promises but I will see.

Regards
Paul.
Logged
extension
Sr. Member
****
Posts: 265


View Profile Email
« Reply #11 on: June 10, 2010, 09:09:46 AM »

Thanks for your reply...

You understand me correct. My customer also prefer to remove all the grey cells and replace them with the "original" colored cell colors. Is it possible to give the "today-row" an other color e.g. blue or grey?

Best regards
Boris
Logged
pauldrijs
Jr. Member
**
Posts: 64


View Profile
« Reply #12 on: June 13, 2010, 12:29:14 PM »

Boris,

This is a first step. It should now not grey-out the past-dates and should show bookings in the region that was previously greyed-out as normal coloured bookings.

I do not have any booking in "past dates" so is not yet possible for me to test whether it works or whether any unwanted behaviours so please check if it does what you are after and say where it does not. Please do not put on a live site unless you are totally satisfied is ok for you.

If it basically does what is need then maybe I will be able to look into highlighting "today" in some way.

I can think of one anomoly that may not be able to put right easily. Basically the very first day displayed on the calendar will probably not display as a "split" image even if it is an arrival or departure day. The "departure" information is actually stored in the booking against the previous day (last night) which I don't think is readily available in this part of the code. At least not without more serious investigation and possible database searches etc.

I also separately need to decide how to manage different variants of the plugin (some people will want the greyed-out past days and some like you will not). Will need advice from Vince/Piranha.

Finally, this is the update to the j00013dashboard.class.php dashboard plugin and not the SRP17 client plugin so the title of the post may be misleading. I assume from the image you sent it is the dashboard you need. Just unintsall the previous version of the plugin and install the new version attached via the jomres plugin manager (or overwrite the j00013 file).

Let me know how you get on.

Regards
Paul.






* drijs_dashboard.zip (10.52 KB - downloaded 18 times.)
Logged
extension
Sr. Member
****
Posts: 265


View Profile Email
« Reply #13 on: June 13, 2010, 01:24:10 PM »

Thanks a lot...

- I'll make a complete backup of the working site and test the plugin right away.

Best regards
Boris
Logged
extension
Sr. Member
****
Posts: 265


View Profile Email
« Reply #14 on: June 13, 2010, 01:45:14 PM »

Hi Poul,

This looks perfect for me, I have just spoken with my customer and he will take a look at it (within 30 min).
Only one minor comment: If it could be possible to give "today's date" another color it might give a faster overview  - but it's not a must.

By the way, is it possible to go backward to see previous booking/guests?

Once again thanks for your plugin

Best regards
Boris
Logged
Pages: [1] 2
Print
Jump to:  

augean-entrant