Dan wrote:

Jay,
Perhaps a compromise. Since the "Address" button will also produce a map have the button label be "Address / Map"

Then we're agreed - that's why I proposed it 'as an option' - options are always a plus smile

I can report that this is indeed useful, thanks for adding it!

Personally I've hacked a line of code so that the button now says 'Map', rather than 'Address' - because I write out the address once so there's no need to press a button to see it, then repeat the address between the exclamation marks for search purposes. Might be useful inbuilt as an option for others?

I was referring to all displays (and the RSS feed); great to know you'll do it smile

Jay

All the LuxCal marketing I've seen refers to it as a calendar - and of course it does that.

My latest project actually requires an events list, but it was only by chance (and failed searching for a PHP events listing script) that I discovered that LuxCal can easily do that too.

Maybe worth mentioning explicitly on your website, and maybe elsewhere?

Sounds useful; will look out for that too!

How about adding a field so that a custom message can be displayed in the calendar & RSS feed if there are no events scheduled within upcoming period?

Hi Roel

Thanks again for the quick changes! I've added a couple more notes, using numbering as above:

6. Yes, line height can be changed, but this affects the gaps between all lines, not the gaps between the sections of the event (e.g. the separation between 'venue' and 'category', etc.). There's probably a more elegant way of doing it using divs, but styling the <br> tag works, e.g adding this to the CSS section.:
   br {display:block; margin-top:5px;}

7a. The header tag isn't always working as intended. If the date and title are on separate lines ($tt1Line = 0) then the H5 tag isn't applied to anything.

7b. Maybe the H4 and H5 tags should be reversed, so the title takes the more important tag?

Regards

Jay

Hi Roel

I've been giving it a try and it looks very good - many thanks!

I do have some feedback / suggestions, though, for consideration:

1) Due to the short length of the lines of text (as a result of the narrow width), the 'text-align:justify' and 'text-justify:inter-word' (line 233) aren't ideal, resulting in some large gaps between words, in particular when you get this:

        | for   a  demonstration   follow |
        | this                               url: |
        | http://www.luxsoft.eu/lcforum |
        | /viewtopic.php                      |

... so I'd suggest either left alignment by default, or a user option to select the alignment, rather than having to hack the code?

2) Again, due to line length, it might be useful to be able to select the date format used - so rather than 'Saturday 9 December', the option to use 'Saturday 9 Dec' or 'Sat 9 December'?

3) Line 30 - $evtWin selects whether clicking on the title opens an event window. It would be cool if another option was to be able to open the attachment (if one exists)

4) Lines 54 to 57 - Margins & Boarders. Maybe have this section come before the color settings? I was trying to make the border disappear by setting it to transparent, but setting $CBORD to hex #00 doesn't work - before finding there was an on/off switch in the next section.

5) Add an 'official' option to set a border corner radius?

6) Add an official option in the CSS to style the <br> tags in order to add a few pixels of padding between sections of the event text (as on my mockup)?

7) Line 263 - This adds an H5 tag to the date. However for search purposes, it should perhaps be the event title that takes the heading tag?

8) I see that I can format URLs by changing the inline CSS, but maybe there could be an official option to style this too?

Hope that's helpful - and once again, thanks very much for doing this (at all, let alone so rapidly)...

Jay

Yes, optional is always a good idea...

Thanks for considering it.

Hi Roel

That really is a very kind offer! Thanks!

I really don't mind on the technology behind it - whatever is easiest to create & maintain (option 2, by the sound of it) - but I'm personally am happy styling in CSS. Rather than go into lots of description, I've done a mockup to show the kind of thing I had in mind - see below. Hope that's useful? Will try to check back here over the weekend in case of any questions.

Jay

https://yapics.com/a3307rgEZ12

To increase visibility in web searches, it would help if events could be marked up with Google-approved structured data / Microdata / RDFa. It should be possible to automatically do this for several of the data entry fields - name, startDate, endData, etc - while others would need to be user-selectable...

For more, see https://developers.google.com/search/do … ypes/event

I love the flexibility of LuxCal, but would like to modify it a little to suit a narrow width iFrame.

The all-vertical format of the Sidebar is perfect, but it's limited to displaying date, time and title for each event; I'd like to be able to display the other event details too, without the need for a js hover-over (which doesn't work on a smartphone), but this would mean adding to the code of lcsbar.php - and what to add / modify isn't at all obvious to me.

An obvious alternative would be to use the 'Upcoming Events' list, since that already contains the full details for each event. However that is laid out in two columns, date on the left and everything else on the right, which isn't great when squeezed down to a narrow width, as there are only a few words on each line on the right, and lots of empty space on the left. In theory I guess the code in 'upcoming.php' could be modified to create a single column design, but the code is again rather obscure.

And I suppose an alternative would be to modify a copy of rssfeed.php - retaining just the code that generates the individual events.

Is there anyone with enough knowledge of the code / coding who could point me in the right direction with any of these? Or is it just too complex for a casual hacker...

Thanks Dan & Roel - good to have such quick replies!

I was actually using the full URL, just shortened it for my post - sorry for confusing you.

Having slept on it, it occurred to me that my .htaccess might be blocking access - and it was (with the directive DirectoryIndex home.html) so I've replaced that with a 301 from /index.html to /home.html and everything's good.

BTW, I found that I could access it without problem at /event/index.php, so guess that may be an alternative approach.

Have successfully installed LuxCal, I can see from the database that my URL should take the form "//mydomain/event/?cal=mycal" - however this brings up an error "You don't have permission to access /event/ on this server."

Folder permissions are set to 0755, so presumably not that - but not sure what else to try. Any ideas would be welcome.