Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC:

OpenStreet Maps for all Events 3 years 7 months ago #24006

  • AlainR
  • AlainR's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 20
  • Thank you received: 5
>>>>>>>>> english version below <<<<<<<<<
Bonjour.
J'ai lu avec intérêt ce fil, car mon client cherche justement cette fonctionnalité.
Après un contact privé avec Bluefox, il me dit ne plus avoir le temps de développer cela.
Adepte de solution alternative à Google, je me suis souvenu du module OsModul...dont j'ai découvert d'autres secrets, comme la possibilité de faire apparaître plusieurs points sur la même carte.
Ainsi, j'ai développé un petit script "maison" qui permet d'ajouter des paramètres à ce module, en fonction des lieux des événements futurs de JEM.
Pour le moment, l'ID et le titre du module sont codés en dur, on pourrait imaginer 2 champs à compléter puis valider avant l'exécution du script.

Idéalement bien sûr, il faudrait que ce script fasse partie intégrante de OsModul, mais pour le moment mes connaissance en PHP sont telles quelles :unsure: ;)

Le script doit se trouver dans le même répertoire que le fichier configuration.php et est à exécuter manuellement après l'ajout d'événement(s) dans JEM ou à exécuter via une tâche cron.

@ la suite...


EDIT 11.7.2017 : avec cette nouvelle version, il est maintenant possible d'ajouter l'ID du module à modifier et également de choisir d'afficher uniquement les lieux, sans tenir compte des événements :
p.ex:
writeOsModul.php?id=130
or
writeOsModul.php?id=130&venue=only


>>>>>>>>> english version <<<<<<<<<

Hello.
I read with interest this thread, because my client is looking for this functionality.
After a private contact with Bluefox, he tells me to have no time to develop this.
As an alternative to Google, I remembered the OsModul module ... which I discovered other secrets, such as the possibility of showing several points on the same map.
So I developed a small "home" script that allows you to add parameters to this module, depending on the location of future JEM events.
At the moment, the ID and the title of the module are hard coded, we could imagine 2 fields to complete and validate before the execution of the script.

Ideally of course, this script should be an integral part of OsModul, but for now my knowledge in PHP are as follows :unsure:;)

The script must be located in the same directory as the configuration.php file and must be run manually after adding event (s) in JEM or running via a cron job.

@ the following...


EDIT 11.7.2017 : It is now possible to add the ID of the module to be modified on the fly and to choose to display all locations only, regardless of events:
Eg:
writeOsModul.php?id=130
or
writeOsModul.php?id=130&venue=only
Attachments:
The following user(s) said Thank You: jojo12

Please Log in or Create an account to join the conversation.

Last edit: by AlainR. Reason: Updated file

OpenStreet Maps for all Events 3 years 7 months ago #24010

  • jojo12
  • jojo12's Avatar
  • Away
  • Moderator
  • Moderator
  • Posts: 3333
  • Karma: 45
  • Thank you received: 363
Wow, looks very good! It works, even if I get some errors (and I don't know why)
Notice: Undefined index: text in .../modules/mod_osmod/helper.php on line 111
Notice: Undefined index: name in .../modules/mod_osmod/helper.php on line 112
on JEM 2.3.0 stable in latest Joomla (3.9.22) Protostar php7.4.5

Please Log in or Create an account to join the conversation.

OpenStreet Maps for all Events 3 years 7 months ago #24013

  • AlainR
  • AlainR's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 20
  • Thank you received: 5
Thank you for your return.
Is the error displayed when I run my script or elsewhere? To which call of what page?
Try to edit the module and save it, there may be a problem with the way my script saves your module options...

Please Log in or Create an account to join the conversation.

OpenStreet Maps for all Events 3 years 7 months ago #24014

  • jojo12
  • jojo12's Avatar
  • Away
  • Moderator
  • Moderator
  • Posts: 3333
  • Karma: 45
  • Thank you received: 363
I tried on a other site, there I don't get error notices but:
I have more venues with events. I don't understand, why only some are shown.
In the popups some events are in the wrong popup on the wrong venue and I don't understand, why.
#pin1{(47.392647,8.042717),,{#pin1,click}};
#pin4{(46.996899,6.943966),,{#pin4,click}};
#pin5{(46.778534,6.606572),,{#pin5,click}};
#pin9{(47.482155,8.224808),,{#pin9,click}};
#pin12{(47.579353,7.640631),,{#pin12,click}};

#pin1{<p>24 Sep 2017 : <b>Taizéfeier Aarau</b><br />Stadtkirche Aarau</p><p>17 Dec 2017 : <b>Taizéfeier Aarau</b><br />Stadtkirche Aarau</p><p>12 Nov 2017 : <b>Taizéfeier Aarau</b><br />Stadtkirche Aarau</p><p>27 Aug 2017 : <b>Taizéfeier Aarau</b><br />Stadtkirche Aarau</p>};
#pin4{<p>16 Jul 2017 : <b>Prière commune de Taizé Neuchâtel</b><br />Chapelle de la Maladière</p><p>29 Oct 2017 : <b>Ökumen. Taizégebet Windisch</b><br />Ref. Kirche  Windisch</p><p>26 Nov 2017 : <b>Ökumen. Taizégebet Windisch</b><br />Ref. Kirche  Windisch</p>};
#pin5{<p>3 Aug 2017 : <b>Chamblon</b><br />Chapelle de Chamblon</p><p>17 Jul 2017 : <b>Taizégebet Riehen</b><br />St. Franziskus</p><p>24 Jul 2017 : <b>Taizégebet Riehen</b><br />St. Franziskus</p><p>31 Jul 2017 : <b>Taizégebet Riehen</b><br />St. Franziskus</p><p>7 Aug 2017 : <b>Taizégebet Riehen</b><br />St. Franziskus</p><p>14 Aug 2017 : <b>Taizégebet Riehen</b><br />St. Franziskus</p><p>21 Aug 2017 : <b>Taizégebet Riehen</b><br />St. Franziskus</p><p>28 Aug 2017 : <b>Taizégebet Riehen</b><br />St. Franziskus</p><p>4 Sep 2017 : <b>Taizégebet Riehen</b><br />St. Franziskus</p><p>11 Sep 2017 : <b>Taizégebet Riehen</b><br />St. Franziskus</p><p>18 Sep 2017 : <b>Taizégebet Riehen</b><br />St. Franziskus</p><p>25 Sep 2017 : <b>Taizégebet Riehen</b><br />St. Franziskus</p><p>2 Oct 2017 : <b>Taizégebet Riehen</b><br />St. Franziskus</p><p>9 Oct 2017 : <b>Taizégebet Riehen</b><br />St. Franziskus</p><p>16 Oct 2017 : <b>Taizégebet Riehen</b><br />St. Franziskus</p><p>23 Oct 2017 : <b>Taizégebet Riehen</b><br />St. Franziskus</p><p>30 Oct 2017 : <b>Taizégebet Riehen</b><br />St. Franziskus</p><p>6 Nov 2017 : <b>Taizégebet Riehen</b><br />St. Franziskus</p><p>13 Nov 2017 : <b>Taizégebet Riehen</b><br />St. Franziskus</p><p>20 Nov 2017 : <b>Taizégebet Riehen</b><br />St. Franziskus</p><p>27 Nov 2017 : <b>Taizégebet Riehen</b><br />St. Franziskus</p>};<p>7 Sep 2017 : <b>Chamblon</b><br />Chapelle de Chamblon</p><p>5 Oct 2017 : <b>Chamblon</b><br />Chapelle de Chamblon</p>};
#pin9{<p>24 Sep 2017 : <b>Ökumen. Taizégebet Windisch</b><br />Ref. Kirche  Windisch</p>};
#pin12{<p>10 Jul 2017 : <b>Taizégebet Riehen</b><br />St. Franziskus</p>};
on JEM 2.3.0 stable in latest Joomla (3.9.22) Protostar php7.4.5
Attachments:

Please Log in or Create an account to join the conversation.

OpenStreet Maps for all Events 3 years 7 months ago #24015

  • AlainR
  • AlainR's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 20
  • Thank you received: 5
Do you have latitude and longitude fields completed for all your venues ?
Perhaps I should add a verification not to take venues when long. or lat. are with 0.000000 completed...
The following user(s) said Thank You: jojo12

Please Log in or Create an account to join the conversation.

OpenStreet Maps for all Events 3 years 7 months ago #24016

  • jojo12
  • jojo12's Avatar
  • Away
  • Moderator
  • Moderator
  • Posts: 3333
  • Karma: 45
  • Thank you received: 363
Thanks, I start my holydays today. I will have time to experiment.
EDIT:
yes, I have some venues with no coordinates /or coordinates =0
I changed some, and replayed writeosmodul but no changes in the map

In a special case for me:
In addition how to set markers, if there is not yet added an event to the defined venue ?
on JEM 2.3.0 stable in latest Joomla (3.9.22) Protostar php7.4.5

Please Log in or Create an account to join the conversation.

Last edit: by jojo12.
  • Page:
  • 1
  • 2
Time to create page: 0.294 seconds

Donate

If you find JEM useful and if you use it on your site, please consider a donation to the project.

Private Messages

You are not logged in.

Follow us......