Mise à jour non officielle d’Events-Calendar v 6.4.1
Introduction
Il faut que je vous explique pourquoi et comment ce blog est né et surtout pourquoi cette version d’Events-Calendar est une distribution “non officielle”.Le jour où j’ai découvert le plugin Events-Calendar de Luke Howell, il n’y a pas si longtemps, j’ai immédiatement su que j’avais trouvé ce que je cherchais : une gestion d’événements dans un calendrier au style du widget standardisé de WordPress. De plus, et comme cela est bien pratique, Events-Calendar permet très simplement d’insérer dans un article ou une page un grand calendrier, dynamique lui aussi, vous informant par petits popups des événements enregistrés dans le Dashbord.
La localisation
Premier problème rencontré, Events-Calendar n’était pas dans ma langue maternelle, ni celle du blog auquel je le destinais. Rien n’avait été prévu pour l’adapter à une autre langue. Luke nous avait informés que c’était dans ses projets. Alors j’ai attendu. Mais rien ne venait. C’est alors que Luke annonce qu’il avait trouvé (enfin ?) un job, et donc qu’il aurait moins de temps à consacrer à ses créations L Je me suis dis : pourquoi je ne le ferais pas moi ? Et c’est ce que j’ai fais. Je me suis donc mis à consulter les sites et les tutoriels dédiés à la localisation. J’ai commencé par apprendre qu’il ne faut pas confondre traduction et localisation. Je prépare d’ailleurs un tutoriel complet sur ce sujet. Un tuto tel que j’aurais aimé le trouvé moi-même alors
J’ai attaqué le code. Après quelques nuits courtes j’ai pondu quelque chose qui fonctionnait. Ce qui m’a appris au passage beaucoup de choses sur le fonctionnement des plugins et les arcanes d’Events-Calendar.
La distribution
Satisfait de mon travail, je me suis dis que la communauté m’avait tant apporté qu’il était temps à mon tour de proposer modestement le fruit de mon petit travail. J’ai donc envoyé ma version à Luke. Qui l’a accueilli immédiatement avec enthousiasme. Luke s’est empressé de le mettre en ligne en version 6.4. Et c’est là que tout à commencé, que ma vie a changé ! Les commentaires sur le blog de Luke ont fusés de toutes parts. Je n’avais envoyé que la traduction française évidement avec le plugin. D’autres fichiers de langue ont été proposés. Mais des dysfonctionnements était aussi signalés : les textes était correctement traduits mais les dates, les jours de la semaine et les mois posaient des problèmes à certains. Me sentant quelque peu responsable, je me suis remis au travail.
setlocale() et strftime ()
Ces deux fonctions PHP sont très pratiques, mais elles posent quelques problèmes en matière de localisation. Je ne rentrerais pas dans les détails techniques ici (sauf si vous insistez). Sachez au moins qu’elles réagissent très différemment selon votre moteur PHP, et selon que vous soyez sur le site hébergé ou en local (avec un produit comme WampServer par exemple) Et j’en ai eu confirmation par un spécialiste français du PHP, pseudo nommé Otomatic. Il fallait donc adapter leur paramétrage en fonction de votre hébergeur. Pas très pratique pour le support d’un plugin n’est ce pas ?
La localisation dans WordPress
Evidement, comme Mijk, je me disais également que l’on pourrait directement effectuer la traduction des dates comme celle les textes, sans passer par PHP. Mais je ne trouvais pas cela normal. Alors je me suis demandé tout simplement : Mais comment fait WordPress pour contourner ce problème ?? Il suffisait d’aller voir : WordPress a ses propres fonctions de localisation des jours de la semaine et des mois. Et tout ceci est disponible dans une bibliothèque de fonctions (locale.php), prêt à servir. Et c’est comme cela qu’est née la version 6.4.1 d’Events-Calendar, que je me suis empressé d’envoyer à Luke Howell. Non sans l’avoir faite tester par mes contacts, ceux qui suivaient l’affaire de prêt. J’en profite d’ailleurs pour les remercier ici : Juanjo, Matthias et encore Mijk, qui a été d’un très grand soutien.
Pas de distribution officielle (pour le moment)
Mais Luke, pour des raisons qui le regarde, n’a pas mis cette version à disposition sur son blog et ne la pas non plus faite enregistrée dans le répertoire officiel des plugins. Alors j’ai laissé un commentaire, puis un autre, pour informer de son existence. Et je me proposais de l’envoyer par email à ceux ou celles qui me la demanderais. Mais vous êtes nombreux !
Pourquoi j’ai créé ce blog ?
Tout simplement parce que Luke désire abandonner complètement son plugin. Parce qu’il a publié une annonce pour candidature à sa reprise et que je me suis proposé. Et que pour cela il faut au moins un blog qui relaye la page du répertoire officiel des plugins. Voilà qui est fait. Et comme j’ai toujours autant de demandes d’envois pour sa dernière version, autant la mettre à disposition ici.
Téléchargement
Donc si vous êtes intéressé par ce formidable plugin c’est ici pour le téléchargement:
A noter
Events-Calendar est loin d’être un plugin abouti. Il peut en faire encore beaucoup. Sans pour autant tomber dans la complexité de ses concurrents. Si vous avez des idées à me soumettre, là aussi ne vous gênez pas. J’en ai quelques une en tête que j’exposerais plus tard. Si parmi vous il y a des candidats à l’écriture de ces évolutions, vous êtes les bienvenus !!












Hi there
I’ve no comprehension of French but thanks Google for (a rough) translation
This plugin has the potential to become a very nice plugin but now it still lack some key features (recurring events, linking to from event to post, event categories). It would be a good thing to provide importing of data from external sources (XML, ICAL).
I also think that this calendar could use some better default styling. And maybe consider turning off the tickbox and providing a better tooltip instead.
WordPress still lacks a good calendar plugin. Hope that Heirem and the community will develop this one.
I translated the plugin to Bulgarian and the files shall be added to the release.
Cheers!
One more thing that I noticed is that the settings for “length of days” don’t work well with UTF characters that use 2bytes to encode (such as Cyrillic letters) because the default setting of ‘3′ produces one and a half character. That’s why I had to set that to ‘6′ in order to have the name of days to display with 3 letters.
That’s rather inconvinient… Why not use PHP Date formatting for that option as well?
Finally fully working transimition release
Thank you, buddy, for your enthusiasm and lot of work.
Dear Iv,
I am a little disappointed about the Google traduction and layout, although I was not expecting to perform miracles. Tell me whether this method of internationalization of a blog is good for navigation. I guess to return to the page in french to leave a comment should not be very practical. But anyway I do not see myself administer a blog in 12 languages!
Your ideas for developments of Events-Calendar its obvious and natural. But also call for skills that I did not have myself for the moment
So we’ll see if we will find good souls to lend help.
Before knowing the Luke Howell’s Events-Calendar I tested other plugins well known. For example:
Event Calendar 3:
http://wpcal.firetree.net/
Who is no longer supported by its author and that is more compatible since version 2.5 of Wordpress. Moreover, no timetable largely available;)
Calendar for WordPress:
http://www.kieranoshea.com/projects/calendar/
Very well done, with a beautiful large calendar. But not dynamic, not “AJAX”. And limited in functionality.
Wpng-calendar:
http://code.google.com/p/wpng-calendar/
Version owner Google, very well done. But the calendar is linked to a Gmail account and implementation really too burdensome.
But these versions can give us lessons for “our” Events- Calendar, in order to improve it.
Thank you for your translation.
I place this evening in the update.
The function PHP date () does not allow for internationalization to my knowledge. That is why it is no longer in the plugin which is part of the text of a date. So for weekdays and the names of months. The fact is that you found a solution to your problem long name days shows that things have been well thought through Luke
Amicalement
Heirem
Dear Mijk,
It’s a bit thanks to you too!
For your energy, your natural requirement and your insight;)
Let us therefore OK?
It is a lot of work yes, but I also wildly fun!
Yours
Heirem
Hi there,
I am having a weird problem with the plugin. On one of the sites I installed it the dates do not match with the weekdays. For example 2nd August 2008 is Saturday but on the Events-cal it appears as Friday.
I tested on two other servers but there the dates are correct. I am not sure what the nature of that issue might be…
Here are some details about the problematic server:
* OS: Linux
* Server: Apache/1.3.41 (Unix) PHP/4.4.8 mod_gzip/1.3.26.1a mod_log_bytes/1.2 mod_bwlimited/1.4 mod_auth_passthrough/1.8 FrontPage/5.0.2.2635 mod_ssl/2.8.31 OpenSSL/0.9.7a
* Hostname: stampingbella.com
* IP:Port: 72.52.163.195:80
* Document Root: /home/stamping/public_html
PHP
* v4.4.8
* GD: bundled (2.0.28 compatible)
* Magic Quotes GPC: On
* Memory Limit: N/A
* Max Upload Size: 20M
MYSQL
* v4.1.22-standard-log
* Maximum No. Connections: 400
* Maximum Packet Size: 1023 KiB
* Data Disk Usage: 3.7 MiB
* Index Disk Usage: 484 KiB
Here you can see a couple of screenshots:
http://druuf.com/images/uploads/events-calendar-bug00.png
http://druuf.com/images/uploads/events-calendar-bug01.png
And the live site URLs are:
http://stampingbella.com/blog/?page_id=389 <— with issue
http://test.druuf.com/wordpress/ <— running fine
Has anyone encountered something like that? I’d appreciate any help on the issue.
Thanks
Thank you for your updates - it fixed the issue I had with the months not working!
Now, if I could figure out a way to change the event to link to the related post that was created, it would be perfect for my needs.
Can you tell me which file generates the events?
Oh! I found the line I need to change
Line 135 in ec_calendar.class.php
$calendar .= “$day“;
to
$calendar .= “$day“;
Unfortunately, $postID is not available. How can I pass that to this page?
$calendar .= “<td”.$dayID.”><div class=\”dayHead\”>$day</div><div id=\”events-calendar-”.$day.”Large\”></div></a></td>”;
to
$calendar .= “<td”.$dayID.”><div class=\”dayHead\”>$day</div><a href=\”http://www.pikespeakashrae.com/?p=”.$postID.”\”><div id=\”events-calendar-”.$day.”Large\”></div></a></td>”;
Dear Maida,
I did not understand exactly what link you want to make between the calendar and a event. I think guess that clicking on an event calendar (widget or large ?) you want to display the associated post in the content, isnt’it?
The variable postID can not be used outside the loop. Except to make a specific treatment as explained here:
http://www.mydigitallife.info/2006/06/24/retrieve-and-get-wordpress-post-id-outside-the-loop-as-php-variable/
I’m maybe not still well awake, but I think more detailed explanations help me to help you
Heirem
Congratulations to the new supporter of that cool plugin! Actually there have always been lots of problems with the plugin as far as xhtml-validation is concerned. I’ve tweaked version 6.4 to make it fully valid and fix all problems. Maybe you could use this and add your 6.4.1-features in that? Would be great..
Dear Heirem,
When you create an event, and check the box for “Create Post for Event” then Event Calendar creates a post related to that event
I would like for the link for an event in the large calendar to point to the post that was created.
In ec_management.class.php, the function display() gets the latest $postID
$post_id = wp_insert_post($data);
$results = $this->db->getLatestPost();
$postID = $results[0]->id;
I need to get the $postID that is created for that specific event to create the link.
Does that make sense?
@Andy
Thank you! With great pleasure Andy! It is a very good initiative on your part. I had not even paid attention to it!
I invite you to send me your version (I’ll send you a message first) and I will watch your work and ready to merge the two versions.
@Maida
Yes it’s clearer now! And I find the idea rather good
The postID is registered in the table (prefix)_eventscalendar_main.
It is not get but put in ec_management.class.php, at the place that you indicated.
But I looked at what can be done.
In fact we need to go in ec_js_class.php. In the calendarData() you can see:
foreach($this->db->getDaysEvents($sqldate) as $e) :
if(($e->accessLevel == ‘public’) || (current_user_can($e->accessLevel))) {
$title = $e->eventTitle;
$description = $e->eventDescription;
$location = isset($e->eventLocation) ? $e->eventLocation : ”;
$startDate = $e->eventStartDate;
$endDate = $e->eventEndDate;
$startTime = isset($e->eventStartTime) ? $e->eventStartTime : ”;
$endTime = isset($e->eventEndTime) ? $e->eventEndTime : ”;
$output .= “$title“;
}
endforeach;
This is the place that you have to add a link ($output .= “$title“) to the post, but respecting the permalinks of the site. The PostID, if exist, not enough
I will deepen the thing and see what I can do ok?
But if you also happen to your side, make me know ..
Cordially
Heirem
Hey there,
Been looking forward to fix the Big Calendar and Widget AJAX Tooltip trasnlations and with this 6.4.1 version was fixed only the Big Calendar issue.
But anyway, I think you are doing a great job.
I have an answer concerning another stuff:
In the Big Calendar all the events appear “justified” in every cell and that makes them unreadable sometimes.
What do I have to change to justify that to the left?
Hope you can help me…
Thanks in advance.
Juanjo Gonzalez
Ok, sorry for the last question.
I just added text-align: left; to the #wp-calendarLarge td { and it was done.
Now I would like to add a bullet ( - ) before every entry in the large calendar cause I have some different events in the same day and its difficult to read.
I still be trying to do it.
Tnx,
Juanjo Gonzalez
Attention. Le fichier ‘ec_js.class.php’ de la version 6.4.1 a une mise a jour pour la localisation du ‘tooltip’ en mode liste d’evenements mais les fichiers events-calendar-fr_FR.mo et events-calendar-fr_FR.po ne sont pas a jour avec ce changement. A voir pour les autres langues….
Merci!
Un commentaire:
Effectivement avoir la possibilité de rediriger vers le PostID de relié dans la table des evenements (si il y en a un) au click sur le calendrier ou la liste d’evenements serait un GROS plus.
$myPostID = $this->db->getEvent($eventID)->postID; | retourne le posID associe?
get_post($myPostID)->guid(); |retourne le Permalink du post?
C’est une idee… Je vais faire plus de test autour de ca….
Voila…
First, there is a known conflict between Event Calendar and the Role Scoper plug in. The author of Role Scoper proposed a fix that works well for me, and I thought you might want to incorporate it in the next build
See: http://agapetry.net/forum/role-scoper/set_current_user-problem/page-1/
On the link to related post topic -
Thank you Heirem and Patrick for your ideas.
I found that if you use the $postID URL, it will automatically translate to your permalinks structure.
For example, if I type:
http://www.pikespeakashrae.com/?p=79
Then this page appears in my browser:
http://www.pikespeakashrae.com/2008/07/13th-annual-fall-golf-tournament/
So simply using
‘http://www.yourdomain.com/?p=’ appended with ‘$postID’ for the link is enough.
in ec_js_class.php in the calendarData () does it make sense to add
$myPostID = $e->postID;
to get the postID and then
$output .= “<li><strong><a href=\”http://www.pikespeakashrae.com/?p=$myPostID\”>$title</a></strong></li>”;
I tried this, but it did not output the link for me.
I’m eager to figure this out - so any help would be appreciated.
Thanks Heirem and Patrick for your ideas to get this idea working.
I have found that it is okay to use the postID - it will automatically follow the rules of the permalinks.
So http://www.pikespeakashrae.com/?p=79 will give you http://www.pikespeakashrae.com/2008/07/13th-annual-fall-golf-tournament/
Using the function calendarData() inside ec_js_class.php, I tried modifyin this block of code:
foreach($this->db->getDaysEvents($sqldate) as $e) :
if(($e->accessLevel == ‘public’) || (current_user_can($e->accessLevel))) {
$title = $e->eventTitle;
$myPostID = $e->postID;
$description = $e->eventDescription;
$location = isset($e->eventLocation) ? $e->eventLocation : ”;
$startDate = $e->eventStartDate;
$endDate = $e->eventEndDate;
$startTime = isset($e->eventStartTime) ? $e->eventStartTime : ”;
$endTime = isset($e->eventEndTime) ? $e->eventEndTime : ”;
$output .= “<li><strong><a href=\”http://www.pikespeakashrae.com/?p=$myPostID\”>$title</a></strong></li>”;
but that did not work for me. Any ideas?
Additionally, there is a conflict between Event Calendar and another plug in - Role Scoper.
The author there proposed a change in the event calendar code that worked well for me
See: http://agapetry.net/forum/role-scoper/set_current_user-problem/page-1/
Perhaps this change could be rolled into the next build?
Dear Maida,
Because if you’re so pressed, I took the time to look at lending while my son was sleeping
Besides, I sent you on a false trail. So forgive me for this is the result.
1 - Rollback all you done in ec.js.class.php / calendarData() !!
2 - Look at calendarDataLarge()
3- Around ligne 219, just before this :
4- Insert this :
5- At line 224, just below the line javascript which begins like that :
$('#events-calendar-<?php echo $d;?>Large')6- Replace $title by $titlinked
It’s works for me !!
ps :
- the is not mandatory
- Your comments required my approval to be published. Because of their content I suppose.
- For your other comment I will look at, like all that proposed here, as soon as possible.
Cordially
Heirem
Dear Dragunoff,
I will present my excuses, because with my inexperience, I did not see that your comment dragged awaiting moderation.
For this reason, it did not appear on the blog before today!
Indeed your problem is disturbing!
I really have no idea in advance of the cause of this anomaly well illustrated. But I will carry out tests and at least try to identify the area code where you should consider your eyes …
As soon as I get the material I submit to you to contact you.
Yours
Heirem
Heirem,
Thanks from across the earth! You are spending some serious time on this.
One of the things I was hoping for was exactly what Maida was wanting. I tried your fix a number of different times, but every time I am getting a parse error. went through your code and tried it a few times, still can’t get it working.
Also, I was hoping to restyle the event list widget, but I can’t seem to change the date styling. I need a day and Month, the month being the three letter abbreviation. If i can get that, i can style the rest, just can’t seem to figure out how to change month from a number to the abbreviation.
Thanks again!
jonahzona
Yay! Thank you SO much! It works!
jonahzona - there is an extra " in the first line of the code that is probably causing the problem.
Should be
$idPost = isset($e->postID) ? $e->postID : ”;
if ($idPost == ”) {
$titlinked = “<strong>$title</strong>”;
} else {
$titlinked = “<strong><a href=\\\”" . get_option(’siteurl’) . “?p=” . $idPost . “\\\”>$title</a></strong>”;
}
Thank you, thank you, thank you Heirem - I really appreciate the time you took to do that.
I think it is a brilliant feature that really enhances the plug in.
Maida,
thanks for the help, but still having issues. Can’t seem to figure out the problem. I tried your code too, still getting a parse error. Thanks again though. I’ll keep working on this.
Bonjour!
Je trouve que c’est un plugin extraordinaire et je suis contente de voir qu’il existe une traduction. Par contre, je ne trouve pas comment activer la version française, pouvez-vous m’aider?
Merci!
Still having trouble with the hack to make the event point to the event post. I have tried everything, including rewriting the syntax error by error. Still no luck.
Maybe i have a different file than you guys, I have downloaded 6.4.1, and i don’t have a call of if ($ output!=”) at 219. There is one at 167 and one at 270.
Am i missing something simple that I am just not seeing?
Thanks.
Bonsoir Valkyrie,
Normalement, avec la version que je propose, tu n’as rien à faire que d’activer Events-Calendar dans ton interface d’administration Wordpress. Mais bon la normalité…
Pour que tu puisses disposer de tes calendriers “normalement” il faut :
- Que tes versions PHP et MySQL soient compatibles avec Wordpress.
- Que tu utilises une version de Wordpress égale ou postérieure à la 2.2.
- Que ton installation Wordpress soit en français. C’est à dire que le fichier fr_FR.mo soit bien présent dans le répertoire “languages” de l’arborescence Wordpress.
- Que tu ais bien vérifié dans les options d’Events-Calendar que tous les champs sont bien renseignés.
- D’autre part, méfis toi des serveurs locaux comme WAMP ou XAMPP qui produisent parfois des résultats un peu cocasses.
Maintenant si tout ceci est respecté, et que tu rencontre encore des problèmes, alors soient plus précise dans ta question. Peut-être en m’envoyant une image copie d’écran ou un lien vers ton blog que je regarde ce qui t’arrive.
Cordialement
Heirem
Dear friend,
I really sympathise with your pain!
Indeed it’s a very unusual problem.
What I suggest to you: I’m available tomorrow afternoon, time for France. I will address your problem among others. Will you also available? We could communicate by email. Where perhaps as-you a MSN address to entrust me?
In the meantime, why don’t you send me YOUR “ec.js.class.php” file that I consider lending?
Best regards
Heirem
Jonah, how interesting about the line numbers.
I inserted my code at line 195 - and updated at line 206 (which was line 200 before I inserted the new code.
I figured the discrepancies were because Heirem probably has been tweaking his version since the last build.
When did you download your 4.6.1? I downloaded and installed mine on 7/30
Check and see if this is the same file you have: http://www.maida.net/clients/downloads/events-calendar-heirem-6.4.1.zip
Feel free to contact me through my website - http://maida.net/contact.html
Maida
Wow, on a du changement! C’est super.
Thanks Heirem and Maida for the Link to the Post of the Event in the Large Calendar! I like it. But I’m still looking for a way to put a link to the PostID on the SideBar calendar if there is one and act as before if not.
Is it simple to do the same trick?
Thanks,
Patrick
Bonjour Patrick,
Malheureusement, avec le calendrier en widget, donc dans la sidebar, je ne vois pas comment faire la même chose puisque le click d’un évènement y déclenche l’ouverture de la ThickBox. Sans passer par un choix, un menu contextuel par exemple, je ne crois pas qu’on puisse faire pointer un lien vers deux destinations
Cela pourrait tout de même faire partie d’une évolution du plugin. Par exemple en ajoutant une option du genre “Envoyer le click d’un événement du calendrier en widget vers un article associé, quand il existe, plutôt que par l’ouverture de la thickbox”. Il faudrait peut-être organiser un sondage
Cordialement
Heirem
Hi Heirem,
this plugin is what I was looking for to publish events on our blogg.
The installation has been pretty easy - the calendar appears in the blogg, but I´m not able to add events to it. Means: If I´m creating a new one it does not appear in the calendar. Neither in the admin area nor in the calendar in the blogg. (the option “create a post for this event” works).
I´m not very much into the techique behind, but maybe you are able to give a tip to a newbie.
thanks,
Thomas
sorry, forgot to tell, I´ve installed WorPress Version 2.6 and Eventcalendar 6.4.1
Thanks,
Thomas
Hi and thank you for picking up the reigns with this plug in. I am having trouble getting it to work properly with both lightbox and thickbox plugins activated. I post alot of photos on my sites and I really prefer lightbox. Is there a way to solve the conflict or to enable lightbox to work on the plug in in lieu of thickbox?
@Saint Lover: Just open js_class.php and change line 54 to whatever you need with lightbox. I dont’ use lightbox but lightview and it worked quite easy..
@Heirem: looks like I’m not the only one who wants options for different boxes
By the way, how’s implementing my code working?
Dear Andy,
Want to clarify your question Andy ? I do not entirely understand what you mean. Excuses me, I am talking about a lot of options and possible outcomes. Want to talk about choice on the thickbox or link to a PostID?
It really necessary for me to quickly make this blog multi-lingual quickly and that I write a post on possible developments to be undertaken now! To know what the reactions of others. I liked the transfer of account between Luke and I have done before

Hi Heirem,
I find Events calendar plugin wery easy to install and use.
I just translated it on Serbian. Archive with PO and MO files is here:
http://www.rjadcenko.com/filez/events-calendar-serbian-lang.rar
Also I have bug to complain:
- on popup window there is no time only the labels are there
- clicking on event link do not open associated post
- events associated post are always created in default category, can we define some other category for events?
regards
Ljev Rjadcenko
http://www.rjadcenko.com
The postID-idea is also quite interesting but I was talking about an option in the settings which “box” to use: thickbox, lightbox, slidebox, lightview. Whatever. I’ve given you the code for lightview already and maybe other users can help you with the other code. In the settings it should then be possible to choose which kind of “popup-window” the user wants to have (do that thickbox isn’t a must)
Ljev Rjadcenko > Thank you very much for the Serbian translation file ! I charge to add it in the current version.
- As you well verified that all fields options were briefed? Have you a link where the calendar is installed and where the error is clearly visible?
- It’s normal. Simply because it is a change that has been developed and it has not yet been incorporated into the current version. The next version, which should be distributed shortly, will allow other possibilities. I work on it;)
- It’s normal too. This will be one of the new options. For the moment you can do that:
- Open ec_management.class.php, line 56.
- Change
- For
Andy > I understand your question better. It should be a drop-down list of different scripts available that displays pop-up. But I dont see the interest anymore … It’s just to solve the problems of conflicts?
Heirem
Maida,
Thanks for the file, it was different than the one I had. I inserted the code at line 195 and I am still getting a parse error. Totally confused now.
I am uploading an image to show you before and after the code placements, maybe you can see what’s wrong?
http://tinyurl.com/5as4sf
Thanks for the help, again.
BTW, Heirem, do you have a donate section? I have a vested interested in the development of this plugin, and will totally be willing to donate some cash.
Thanks.
Dear Jonah,
1- I saw the image and I understand better your parse error ! The better solution is to send you my own ec.js.class.php. I’ll do that after this comment.
2- I dont accept for the moment donations for myself. This will not change anything on my investment in this plugin;) It’s really very nice to thinking. But the one who has done most of the work to achieve Events-Calendar is certainly Luke Howell, the author ! So I invite you to leave a PayPal donation by clicking on his own blog : http://www.lukehowell.com/
Thanx for him.
Cordially
Heirem
Heirem,
Thanks! Works like a charm! Beautiful! Wonderful! Fanstastic!
Now, if I could bother you for one last question, then I will leave you alone for at least 24 hours.
I stated in a previous post that I want to restyle the way the list widget displays the date.
Any hints as where I go to do this? I startd at splitDate, but couldn’t figure out where it was calling the code for the actual date. Is it normal PHP date codes?
Just so you understand, I want the month to be M not m, in otherwords, I want the first three letters of the month rather than the digit.
But, even if you can’t get to that today, thanks for the file.
Keep up the good work.
Bonjour Heirem,
Thomas a laissé un post plus haut qui est resté sans réponse mais qui m’interpelle également. En effet avec un Wordpress 2.6 et la dernière version d’Events Calendar je rencontre un problème.
Installation sans message d’erreur. Activation également.
Par contre les évènements créés ne s’affichent pas dans le calendrier… Ceux avec lesquels on crée un article non plus mais l’article est bien là…
En me promenant sur des forums ça et là, j’ai retrouvé plusieurs utilisateurs confrontés au même symptôme…
En tous cas bravo pour la prise en main et le travail sur le pluggin…
Carine
Jonah > I’m really happy that what I sent to you works:)
I’ll tell you the truth: I never even handled the widget of Events in the format list, even for the translation! Why? Because the first time I’ve used it did not work! I had reported to Luke but he did not respond. I know very badly this part of the script. But I intend to catch up with me for the next version;) Pending I invite you to look at the side of the PHP function: ucfirst () :
Carine > J’ai répondu indirectement à Thomas
Cela m’est arrivé également dans mes nombreux tests avec Events-Calendar. J’en ai retiré plusieurs enseignements / réflexes :
- Bien vérifier que tous les champs dans les options sont renseignés. C’est un problème “historique” inhérent à EC.
- Si tout va bien de ce coté là, alors le problème se situe dans les relations entre le plugin et la base de données. Avec une versions de MySQL particulière - je ne sais plus laquelle désolé - j’avais du jongler pour arriver à ce que cela marche.
- Mais comme tu me précise que la demande de création d’un article est honorée, alors c’est que l’enregistrement en BdD se fait bien. Et là c’est un problème qui avait été rencontré avec la version 6.3 et qui a normalement été résolu avec celle que je propose.
Carine, ce ne sont que des pistes, j’en conviens. Si tu ne t en sorts pas alors je te propose de me fournir plus d’éléments après que tu ais vérifié ce que je t’ai indiqué.
Cordialement
Heirem
Thanks Heriem.
I lied. One last question. And this could make me sound really dumb.
Any way to make the day of the week start on Sunday on the large calendar? I looked through briefly and didn’t have time to dig. Just thoughtI I would ask.
You rock.
Heirem,
Thanks for the tip on ucfirst. Tried a couple things, they didn’t work, but I thought you should know where i was going.
I know that the call for the date in the Widget List is the first thing defined in ec_calendar.class. With your hint at ucfirst, I saw that there is another call besides $month, and that being $month_name. I tried replacing all instances of $month in the Widget List section with $month_name, and nothing changed.
Just to be sure I was in the right place, I replaced all instances of $month in the widget list section to $day as a test. Sure enough, it changed the first digit in the date to the day instead of the month.
Still stuck. No huge hurry, just trying to figure this thing out. I will let you know if I come up with anything.
BTW, the reason I want to do this is so I can have a list of upcoming events that is styled like the one on this site:
http://www.calvaryprescott.com
That is the site I am moving from e107 to Wordpress. I am attempting to get the upcoming events styled in a similar way.
Thanks.
Dear Jonah,
- Setting the beginning of the week takes place in the general options of Wordpress itself;)
- I told you above that I am not yet able to help you right now. But I note that the link you sent me because I feel like you that the list of events that have been given is very pretty. This could be part of the possible evolutions of EC.
Cordially
Heirem
Thanks again Heriem.
I will REALLY leave you alone now.
Andy > Thanks to the EC release that you had changed to make it more consistent with XHTML, and you sent me, I was able to correct the approximations that you had noticed, plus others that I found myself. However, I didn’t accept your personal informations
All this will in the next version among other changes.
I have also appreciated the use of Lightbox and I understand better now what you wanted to tell me recently
Friendly
Heirem
Hi Heirem,
Here is the link for error about pop-up window, with no actual start and end time, only the labels are there:
http://arkonamaja.com/cms/?page_id=26
Also with publishing post associated with event I don’t mean this:
, ‘post_status’ => ‘draft’ //’publish’
- For
, ‘post_status’ => ‘publish’ //’draft’
I mean that it will be good to have define some other category for events? I use News as default category and when I create event and create post associated to event they all go to News category and I want to have choice to put them in the category called Events
I’ve installed the plugin v 6.4 onto a site i’ve worked on, the start and end times don’t appear in the rollover on the events with the large calendar.
can anyone help with this issue?
Also in IE 6 when changing months, the whole content of the calender is moved up with the first row covering the Month title.
Ljev Rjadcenko > Wow ! What a beautiful design on your blog!
I look at on your problem with attention. I will send you by e-mail an amended version of events-calendar. You will be nice to keep me informed as soon as possible of the results … Thanx
Dataman I council you to install the version 6.4.1 instead of the 6.4 version only. Like Ljev, have you a URL you can submit to me, so I look at your problem ?
Hi Heirem,
Just was wondering if you had any updates as per dragunoff issue posted here on July 31, 2008 at 0:28 (that you initially replied to on August 2, 2008 at 17:12).
Thanks!
Dragunoff said earlier:
I am having a weird problem with the plugin. On one of the sites I installed it the dates do not match with the weekdays. For example 2nd August 2008 is Saturday but on the Events-cal it appears as Friday…
Having the same problem in my site.
Weekdays dont match with dates.
Using wordpres 2.6 with Events Calendar 6.4.1.
I just noticed I am having the same issue with the dates. (Also WP 2.6 and EC 6.4.1)
If I set my WP setting so that my week starts on Sunday, then the event calendar will actually start my week on Saturday.
If I set my WP setting so that my week starts on Saturday, then the event calendar will start my week on Friday.
If the starting day of the week would match the WP setting, then the dates would be on the correct day of the week.
I think the issue is in ec_calendar.class.php - there is a line of code that appears in each display function (lines 62, 112 and 162)
I think we may need to round up or down, I’m not sure.
I might be off, but it would be worth looking into.
I’m headed out of town in the morning, and I won’t have time to look at this again until I’m back on Monday.
Maybe someone else could take a look and see if this might fix the issue. Right now I need to finish packing and get to bed for a 7 AM flight!
Hi,
I have big problem with my Events Calendar installation. I mean there is something wrong with AJAX I guess. Probably because my wordpress installation is in folder /website. After pressing next, previous or event I get “Index of” my server.
Any help?
Thanks,
Zbyszek
Hi Hirem,
I install attached files from second email, but again, start and end time is not showing in popup window.
But link to event post is now working!
thanks,
Ljev
Maida, Dragunoff, Juanjo, Emurad >
Maida, the variable $weekday is not the issue. The synchronization between the name of the day and date is here:
$first_day = get_option('start_of_week'); $first_of_month = gmmktime(0,0,0,$month,1,$year); $day_names = array(); for($n=0,$t=(3+$first_day)*86400; $n<7; $n++,$t+=86400) $day_names[$n] = ucfirst($wp_locale->get_weekday(date('w',$t)));My problem is that, working on this anomaly past few days, since Dragunoff has reported to me, I cant reproduce it. For me it works very well on all blogs on which I do test! Under these conditions it’s very difficult to find a cause;) I have made several assumptions and conducted various tests, but I’m still lost.
The only possible solution, in my view, is that I am in contact with one of you, by email or MSN, to submit tests and that you give me immediate results. Who am among you devote to it then?
I’d like to finish with these problems before leaving on vacation. Find solutions, in addition to those I have already obtained, to propose a version 6.4.2 of Events.
I await your proposals. You can contact me directly by email.
Thank you.
Heirem
Ljev Rjadcenko >
Dear Ljev,
I am lost with your answer. I really thought that the problem viewing hours beginning and end would be in the “tooltip”.
I suppose, but confirms to me anyway, that when you created an event, these hours beginning and ending register correctly?
If you try to modify any of these dates, how it happens?
There also would be the best way we can communicate more quickly, where although you give me access to the administration interface of your blog for some times. By creating an account for me by example.
Cordially
Heirem
Zbyszek >
I can maybe help you, if you tell me what is your Worpress version and the list of plugins that you use in. If you communicate to me the URL of your blog, it will be better
Best regards
Heirem
Hi, I got two errors.
1. If I am trying to get other date format for large calendar than default one (j.n.Y f.e.), my page is breaked (widget admin also) and I am getting that alert:
Review your Large Calendar Date Format in the Events-Calendars options… 2. Locale day names (abbreviations) on widget are not OK - see my web. (Names onlarge cal are OK).
Any idea?
Sri, I add: WP 2.6…
Pepawo >
The months names and days of the week names came from Wordpress itself onto Events-Calendar code.
But, did you version 6.4.1 of the plugin ?
Are you encoding “utf8″ ?
Otherwise I invite you to contact Mijk that produced the file translation cs-CZ for Events-Calendar.
Best Regards
Heirem
Heirem:
I’ll be glad to help you with the weekdays missplacing problems.
In adition, my blog is in Spanish and I’ll have no problem to give you admin access to check what’s wrong inside.
Contact me via email or MSN using this address:
juanjogonzalez[ a t ]gmail.com
Regards
Hello Heirem,
Well, my site is http://www.argostest.co.uk. - It’s website for testing. I’m using Wordpress 2.5.1, plugins hmm lots of them
Dashboard Widget Manager
Role Manager
Quotes Collection
Broken Link Checker
Events Calendar
Exclude Pages from Navigation
Executable PHP widget
Fold Page List
Fun with Sidebar Tabs
HeadSpace2
KB Advanced RSS Widget
More fields
cform
Yet Another PhotoBlog
But I don’t think my problem is because of other plugins, maybe permitions, maybe path?
If you go on my site the calendar is on home page at the bottom. Try to click on event and you will see what happens.
Thans a lot for your time. Polish translation is almost ready.
Zbyszek >
Hello !
It is with great pleasure that I receive your file translation into Polish. Please send me on my email, thank you.
For your problem, I looked and I think a problem of redirection DNS site.
Could you do this little test please :
- Put in your theme, for example after the header, this piece of code:
<?php echo get_option('siteurl');?>- Then send me the result that appears on the site.
A soon
Heirem
Cuckoo!
To enter your next comment, go here!