RS EVENT multiday
Description | Functions | Parameters | Installation | Comments
For the latest stable release (Version 1.2), please see the plugin directory at wordpress.org
Please, consider to make a donation to support this plugin.
“RS EVENT multiday” is a WordPress-Plugin to show events on your blog. It is based on RS EVENT by Robert Sargant. This new version can also deal with events, that last for several days. Furthermore, it offers four different output formats.
Latest version: 1.2
The WordPress-Plugin “RS EVENT multiday” can be downloaded at the Plugin Directory of wordpress.org:
RS EVENT multiday at wordpress.org
Description
“RS EVENT multiday” is a modification of “RS EVENT” by Robert Sargant.
The plugin offers the possibility to add a “RS EVENT multiday” widget to the sidebar of your blog. It allows you to show a list of upcoming and/or past events.
“RS EVENT multiday” includes three different functions, which can be used in templates. rs_event_list(), rs_event_post(), rs_event_id()
-
rs_event_list()
This is the function used for the widget. Of course, it can be used in templates as well. It prints an unordered list of events according to the parameters given to it (see below). Both, theul-tagand theli-taginclude class=”rsevent”, so you can costumize the output with stylesheets. Furthermore, the output can be customized with the parameters “html_list_v1″, “html_list_v2″, “html_list_v3″ and “html_list_v4″.
For details see the parameters-section below. -
rs_event_post()
This function should be used in the single-post-template (usually the file single.php of your theme) inside the Loop. It prints the date of the event. The output can be customized with the parameters “html_post_v1″, “html_post_v2″, “html_post_v3″ and “html_post_v4″.
For details see the parameters-section below. -
rs_event_id()
This function returns an array with IDs of posts, which include event-data. This array of IDs can then be used in other functions.
Each function can be customized by parameters.
title
(string) The widget-title in your sidebar. Not used, when the function is added to a template.
default value: ‘Upcoming Events’
timespan
(integer) The maximum distance into the future events will be retrieved for, in days.
default value: 365
history
(integer) The maximum distance into the past that events will be retrieved for, in days. This can also be set to a negative negative number, e.g. -2 to prevent events that are occuring in the next two days from appearing.
default value: 0
date_format_1
(string) The style in which the date is formatted. date_format_1 is Used for single-day events, for end date of multi-day events within the same year, for start date and end date of multi-day events not within the same year. Note: ‘second’ cannot be entered for event time and must not be used because of variable $fake_second (used to mark empty time value.
default value: ‘d.m.Y’
date_format_2
(string) The style in which the date is formatted. date_format_2 is used for start date of multi-day events within the same year.
Note: ‘second’ cannot be entered for event time and must not be used because of variable $fake_second (used to mark empty time value.
default value: ‘d.m.’
time_format
(string) The style in which the time is formatted.
default value: ‘H:i’
html_list_v1
(string) Used for rs_event_list(). Formats the output, if first date and time of an event is entered with “multi-day”-option off.
html_list_v2
(string) Used for rs_event_list(). Formats the output, if first date but no time is entered with “multi-day”-option off; if %TIME% is used here anyway (which usually does not make any sense), output of %TIME% equals “–:–”.
html_list_v3
(string) Used for rs_event_list(). Formats the output, if “multi-day”-option is on and first date and end date is entered.
html_list_v4
(string) Used for rs_event_list(). Formats the output, if “multi-day”-option is on but no end date is entered.
html_post_v1
(string) Used for rs_event_post(). Formats the output, if first date and time of an event is entered with “multi-day”-option off.
html_post_v2
(string) Used for rs_event_post(). Formats the output, if first date but no time is entered with “multi-day”-option off; if %TIME% is used here anyway
(which usually does not make any sense), output of %TIME% equals “–:–”.
html_post_v3
(string) Used for rs_event_post(). Formats the output, if “multi-day”-option is on and first date and end date is entered.
html_post_v4
(string) Used for rs_event_post(). Formats the output, if “multi-day”-option is on but no end date is entered.
max_events
(integer) The maximum number of events to show. If this is set to 0, then all events will be shown.
default value: 0 (i.e. show all)
group_by_date
(integer) If this is set to No (value: 0), then each event will be separated into individual list element. If this is set to Yes (value: 1), then the Date Formatting is checked for each post. Events with the same Date Formatting value are grouped together in a single li-element, with the date first and subsequent posts separated by break rules (br-tag). By setting the Date Formatting to different values, you can group by different date properties, e.g. use “Y” to group by year, or “W Y” to group by week.
default value: 0 (i.e. “no”)
no_events_msg
(string) The output when the are no events within the set timespan.
default value: ‘no upcoming events’
sort_order
(string) Whether to list the events in ascending (value: ‘ASC’) or descending (value: ‘DESC’) date order.
default value: ‘ASC’
category
(integer) Show only events listed against posts in the category with this ID number. If this is set to 0, then all events will be shown.
default value: 0 (i.e. show all)
Customizing the html-output
The values “html_list_vX” and “html_post_vX” can be styled both for the widget and within templates. Simply use html-code and the following parameters:
%URL% the URL of the post with the event
%DATE% the start-date of the event, formatted as date_format_1 in _v1, _v2 and _v4 and as date_format_2 in _v3.
%ENDDATE% the end-date of the event, formatted as date_format_2
%TIME% the event time, formatted as time_format.
%TITLE% the title of the post.
%LOCATION% the location of the event or any other information you might want to add
%FULLTEXT% the entire text of the post.
%EXCERPT% the post excerpt.
Installation
This section describes how to install the plugin and get it working.
- Download the zip-file and unpack it.
- Upload the folder
rs-event-multidayto the/wp-content/plugins/directory of your blog. - Activate the plugin through the ‘Plugins’ menu in WordPress
- Add the Widget “RS EVENT multiday” to your sidebar and customize it AND/OR
- Place the function rs_event_list(), rs-event-post() and/or rs-event-id() in your template(s) and customize it.
See “Description” for details.
**************************************************************
Copyright 2009 Florian Meier (email : fm-web@dalking.de)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see http://www.gnu.org/licenses/.
**************************************************************
Thanks so much for the fantastic plugin! I’ve been looking for something just like this for a long time.
I am integrating it into a Thematic child theme, which means I can’t touch my template files. Therefore I need to wrap rs_event_post() into a function to get it to display on my on my single.php template. I have this working, but had to edit your files to return the output of this function, rather than echo it.
I’d be happy to send you my edits if you’re interested. Thanks again for the great plugin!
Michelle
April 24th, 2009 at 01:03 Uhrpermalink
@Michelle
Thanks for your edits. I think about incorporating them into the next version!
Florian
April 25th, 2009 at 09:42 Uhrpermalink
Hallo Florian,
bin gerade auf Dein Plugin gestoßen und habe es installiert.
Nur, wie kann ich Events darin eintragen?
Ist es korrekt, dass das Plugin nicht unter “Einstellungen” oder an vergleichbarer Stelle angezeigt wird und ich entsprechende Einstellungen vornehmen kann?
Herzliche Grüße,
Jan
Jan
April 28th, 2009 at 00:20 Uhrpermalink
Hi.
I’m not very good at this. Anyhow, I have installed and activated the plugin. But the event-list only shows when I’m logged in as my user (doesn’t show when logged out).
What could be wrong? Suggestions? I want the events to be visible to anyone who enters the page
Risington
April 28th, 2009 at 14:43 Uhrpermalink
@Jan
It is correct. The plugin does not show up under “Settings” (Einstellungen), since the plugin is much easier to handle
Just edit any post (or start “new post”) and you should find a RS Event meta box among all the other panels (e.g. custom fields, discussion, excerpt). Open it and enter any date. Save the post and that is it. The post should now show up in your list or your widget, if it fits the parameters.
Florian
April 28th, 2009 at 18:18 Uhrpermalink
@Risington
Well, the reasons for that problem can be quite complex. However, I have just been at http://www.risington.no/ and I could see the upcoming events as a widget in your sidebar. Since I was not logged in, it seems the problem is solved. If you want to post any further information on the problem or on the solution on this site, I would be very grateful.
Florian
April 28th, 2009 at 18:23 Uhrpermalink
Super Plugin! I have tried many things before and that’s it!!!
Where can I change the missing translations e.G. “no upcoming events” in a list or “read more” which I cannot find in the delivered *po-file. Please help. Should I mess with the *.php-file?
Tim
Mai 23rd, 2009 at 00:24 Uhrpermalink
Hi,
after Deleting Event of the Post it gives me following Error:
Warning: gmdate() expects parameter 2 to be long, string given in /homepages/17/d34765588/htdocs/jusos/wp-content/plugins/rs-event-multiday/rs-event-multiday.php on line 568
Vielen Dank für das Plugin
Stefan
Stefan
Mai 23rd, 2009 at 19:12 Uhrpermalink
Any ideas to kill the mistake?
by the way,
in your readme.txt is a mistake there is
‘date_format_1′ => ‘m|d|Y’,
‘date_format_2′ => ‘m|dd. m.
‘html_list_v1′ => ‘%DATE%, %TIME%%TITLE%‘,
after:
‘date_format_2′ => ‘m|dd. m.
we need a ‘,
Greetings
Stefan
Stefan
Mai 23rd, 2009 at 19:21 Uhrpermalink
@Tim
Hmm, I just had a look at the German .po-File again and I found a translation for “no upcoming events”. However, there is none for “read more”. This is, because “read more” is just part of a default value. You can change the values easily:
1. If you use RS EVENT multiday as a widget, just go to the widget control panel and change the values there.
2. If you use RS EVENT multiday in your template, just pass on some variables. Here is an example:
< ?php
$argsevent = array(
'html_list_v1' => ‘%TITLE% < a href="%URL%">weiterlesen< /a>‘,
‘html_list_v2′ => ‘%TITLE% < a href="%URL%">weiterlesen< /a>‘,
‘html_list_v3′ => ‘%TITLE% < a href="%URL%">weiterlesen< /a>‘,
‘html_list_v4′ => ‘%TITLE% < a href="%URL%">weiterlesen< /a>‘,
‘no_event_msg’ => ‘hier gibt es zur Zeit nix’,
‘max_events’ => 4,
);
rs_event_list($argsevent);
?>
Florian
Mai 23rd, 2009 at 19:45 Uhrpermalink
@Stefan
First of all, thanks for showing me the mistakes at the readme-file. I see, that I messed up the whole line
I will correct them as soon as possible.
Now, to your problem: I would need some further information. Can I have a look at your site? What is your URL?
Do you use RS EVENT multiday as a widget or as part of your template? Do you pass on any user definied parameters to the plugin?
Florian
Mai 23rd, 2009 at 20:04 Uhrpermalink
Hi Florian,
thanks for the fast respondence.
The Site is the developement of Jusos Nuernberg, it´s
http://jusos-nuernberg.de/index.php?wptheme=entwicklung
There is a switch in the url, that wptheme= thing. You see the correct Version if you see your Plugin on the right, first of the sidebar.
Beginning with a “ZZZXX”, ending with “XX” (marks just for me…)
if not, you´re browser gives your the “produktion”.
I use it as part of the template, it´s something like
$argsevent = array(
‘timespan’ => 60,
‘date_format_1′ => ‘m|d|Y’,
‘date_format_2′ => ‘m|dd. m.’,
‘no_events_msg’ => ‘Keine Termine eingetragen’,
‘html_list_v1′ => ‘%DATE% um %TIME% Uhr %TITLE%‘,
‘html_list_v2′ => ‘%DATE% %TITLE%‘,
‘html_list_v3′ => ‘%DATE% bis %ENDDATE% %TITLE%‘,
‘html_list_v4′ => ‘%DATE% (mehrtägig)%TITLE%‘,
);
rs_event_list($argsevent);
this. But after your answer I tried out with rs_event_list(); only, but it didn´t work neither.
In my opinion it hasn´t got anything to do with the kind of implementation on the site, because before i delete the time of event in some posts it works.
Thank you
Stefan
Stefan
Mai 24th, 2009 at 14:10 Uhrpermalink
It´s definitely about deleting of Event at post. I killed the Errormistake by edit post and reset that Event
Stefan
Mai 24th, 2009 at 16:18 Uhrpermalink
Thanks Stefan. Indeed, there has been a bug. I wonder if I have ever deleted an event myself?! Why didn’t I notice it myself?!
Nevertheless, I think I have solved the problem and you (and all the others) can download the new latest version of RS EVENT multiday (1.0.1) above.
admin
Mai 26th, 2009 at 16:54 Uhrpermalink
Hi! Real good plugin, may be in next version will be a good calender, that could show multi-day events?
Jerzy Stanislavski
Mai 29th, 2009 at 11:52 Uhrpermalink
I would love to have a calendar in my plugin. However, I fear I have no idea how the code might look like for the calendar. If anyone can help me with that, I would be more than happy.
admin
Juni 2nd, 2009 at 23:05 Uhrpermalink
Hi, I don’t know if you are aware but the original RS Event was heavily used in the themes created by Tim @ LivingOS. When it was clear that it was no longer being updated and didn’t work with recent versions of WP I took it upon myself to bring it up to date and also add a few minor enhancements. Tim kindly republished the plugin back on his site for the benefit of the community.
The things I fixed were – 2.7 compatibility, preset current year, allow for no time set, a bug in the time zone code and keep todays events visible until the day is ended.
The enhancements you have made look very interesting (I have not taken a close look yet) and, I suspect, more substantial than that. It would make sense if we merged the two versions., what do you think?
Rick
Juni 4th, 2009 at 23:13 Uhrpermalink
@Rick
Thanks for your message. Please, have a close look at the code and especially at the changelog.txt. Then, you should see, that RS EVENT multiday bases on Version 0.9.7 as it is puplished on LvingOS.
So I think, the two versions are merged already.
If you have any new ideas for future versions of RS EVENT multiday, feel free to contact me. The only thing I want to avoid is the same mess we had with RS EVENT, when a number of developers worked on the plugin and just published it anywhere on the internet, most of the time not using a new name or even a new version-number (I found the RS EVENT Plugin on at least 4 different pages in 3 different versions). That is why it was very important to me to register RS EVENT multiday at the plugin database of wordpress.org.
admin
Juni 6th, 2009 at 08:07 Uhrpermalink
Hi Florian – I have had a chance to look at it and try it out and it is absolutely GREAT. The only thing that confused me was that you had changed the default formats. I will let Tim know to drop my version and point to yours on the WP download site. Then there won’t be quite some many competing ones to confuse people.
A few small suggestions.
The readme.txt needs cleaning up to remove leftover HTML.
On the edit post page multi-day event could be a check box.
It could be clearer that Time is not relevant for multiday events.
The new-line before the year selector is not needed.
The descriptions of the date and time formats are not clear. I think what they should say is
**date_format_1**
*(string)* The style in which the date is formatted. date_format_1 is Used for single-day events, for the end date of multi-day events and for the start date of multi-day events if the two dates are NOT within the same year.
*default value: ‘d.m.Y’*
**date_format_2**
*(string)* The style in which the date is formatted. date_format_2 is used for the start date of multi-day events if the two dates are within the same year.
*default value: ‘d.m.’*
**time_format**
*(string)* The style in which the time is formatted.
Note: ‘second’ cannot be entered for event time and must not be used because of variable $fake_second (used to mark empty time value.
*default value: ‘H:i’*
In practice I would prefer single day events to use date_format_2 unless one or both dates are not THIS year, but that may just be my personal preference.
Finally, an example of using rs_event_post would be helpful – I did get it to work but it took a couple of attempts.
Thanks for a first class plugin and the work you have put into it. An extensive example of it in use can be seen at http://stmatthews-bristol.org.uk/ where it is used twice on the sidebar, two sections under What’s on and in the Resources ==> Event archives. It is the old version at the moment but I am working on putting in your improved version as soon as I have completed the testing.
Rick
Juni 6th, 2009 at 18:11 Uhrpermalink
It’s not so hard to find free calendar code… but i don’t know what data type using wordpress… and where calendar must search information… look for GNU code in ajax calendar (might be found in plugins directory)
Jerzy Stanislavski
Juni 14th, 2009 at 19:27 Uhrpermalink
Hallo Florian,
ich vermute du sprichst deutsch, der TLD nach zu urteilen. Ich habe eine Erweiterungsbitte:
1: Essentiell bei einem Date ist oft auch die Lokalität – ich administriere mehrere Seiten, bei allen mit Dates hab ich ein Meta Feld mit Namen “Location”, in das die Location eingegeben werden kann.
Sowohl bei den alten Versionen als auch bei deiner füge ich dann einfach die Zeile:
‘%LOCATION%’ => get_post_meta($event->id, ‘Location’, True),
im replacements Array ein – und ich kanns simpel ausgeben.
Auch dieses andere große Event Plugin, dass ich aus anderen Gründen nicht verwende, nutzt die Syntax mit “Location”.
Super wärs also, diesen Filter einzubauen – er sollte Leute nicht stören, die es nicht verwenden. Dann muss ich nicht bei Updates jedesmal die Zeile einfügen =)
Aber vielleicht könnte man das dynamisch machen, dass das Plugin zb. bei allen unbekannten %VARIABLEN% automatisch nach einem passenden Metafield sucht – damit könnte man flexibel bleiben und noch viele andere Sachen ermöglichen.
2. Ich habe eine “References”-Seite, auf der ich vergangen Events, zb. die letzten 10, auflisten will – nur geht das weder mit dem Original noch mit deiner Version.
Wenn ich History auf 9999, timespan auf 0, Limit auf 10 stelle, dann gibt er mir die 10 ältesten, nicht die 10 letzten Events aus.
Damit das geht, muss man die Zeile 506 nach Zeile 538 verschieben, und auf den querystring2 ändern, also:
if($max_events != 0) { $query_string2 .= ” LIMIT {$max_events}”; }
Bisher hab ich keine Fehler feststellen können, sollte man aber noch ausführlich testen.
Würde mich sehr freuen, wenn die beiden Verbesserungen in der nächsten Version wären =)
Danke für deine Aufmerksamkeit,
lg,
Thomas
Pampfelimetten
Juni 24th, 2009 at 15:19 Uhrpermalink
@Thomas (Pampfelimetten)
(Tja, ich spreche tatsächlich deutsch, bevorzuge aber trotz aller sprachlichen Schwächen, meine comments hier auf Englisch zu verfassen, da sich das Plugin ja mittlerweile international großer Beliebtheit erfreut. Werde das nun auch in diesem Fall machen, aber ich denke, du kommst damit klar.)
I like your idea with the new “location” option. I think I might add it in version 1.2. I am already working on it, but the release might still take another few weeks, since I am pretty busy at work at the moment.
What you mention under number 2 of your comment might be right. I will have a close look at it and see what I can do.
admin
Juni 25th, 2009 at 13:23 Uhrpermalink
I am using your plugin on this page: http://www.richtig-rot.net. Everytime an event is the last post in the blog, it shows up a blank page. Only the “Prev Link” apears on the frontpage. What did I do wrong?
Jörn Vanselow
Juli 6th, 2009 at 23:20 Uhrpermalink
@Jörn Vanselow
I am sorry, but I have no idea what might be wrong, here. Can you please post the code you use at your index.php to show the events. Or just send it to me via email. You can find the address at “Impressum”.
admin
Juli 7th, 2009 at 10:11 Uhrpermalink
Hi!
ich hab dein plugin auf meinem lokalen testblog installiert, obwohl ich wp version 2.8 nutze. scheint alles zu funktionierten, bis auf die tatsache, dass er nur “no upcoming events” anzeigt, obwohl ich in einem artikel das meta feld ausgefüllt habe.
Hast du irgendwelche Infos von Users die es schon mit WP 2.8 probiert haben? Wäre über Hinweise sehr dankbar, da ich zur Zeit noch Posts und Events getrennt verwalten muss (Plugin: EVENTS) und jedesmal quasi die doppelte Arbeit habe…
LG
Daniel
Daniel
Juli 22nd, 2009 at 11:27 Uhrpermalink
edit:
das “privat” attribut ist das problem…gibt es eine möglichkeit auch private gekennzeichnete posts als event anzuzeigen?
Daniel
Juli 22nd, 2009 at 11:48 Uhrpermalink
@Daniel
I just had a look at pokerfisch.info and it seems to me, that you have already solved the problem yourself. As I clicked on the links at the rs-event-widget, I could not get to any page.
Now, just change the settings at the widget panel in the backend and remove the %URL% from the output settings.
It would be great, if you can post the solution for your problem here.
admin
Juli 22nd, 2009 at 15:32 Uhrpermalink
Hi, Florian.
Congratulations on a useful plugin.
Would you consider adding one line of code to make it compatible with Role Scoper?
Kevin Behrens
August 1st, 2009 at 13:03 Uhrpermalink
I have translate “read more” in the Sidebar Widget in my language. But on Multiday Events it still shows “read more”. where is that? In the “event-rs-multiday.php” i do not find!?
Gabriel
August 7th, 2009 at 20:35 Uhrpermalink
@Gabriel,
as usual, I would need some more information. Can you please give me the URL of your homepage, where you use my plugin. And can you please send me all the settings you made at the sidebar widget panel.
admin
August 10th, 2009 at 16:07 Uhrpermalink
Hi Florian,
ich habe viele, viele Termine.
Ich würde gern eine Übersichtsseite machen, in welcher man künftige termine monatsweise anklicken kann:
Termine im Januar
Termine im Februar
Termine im März
usw.
hast Du eine Idee für eine Lösung?
Tschüß
Nepf
nepf
September 2nd, 2009 at 13:24 Uhrpermalink
Hi Florian,
thanks for this plugin!
I like it especially, because the data is saved in the postmeta table. I would try to combine your plugin with the TDO-Mini-Forms-Plugin, which allows to post directly from Homepage – not only from the admin-dashboard.
Do you have a description; how to produce the meta_values for the _rs_event_start, _rs_event_array and _rs_event_ts in postmeta-table?
Additionally to the event-location (Thomas / Pampfelimetten mentioned) it might be helpfull to have a field “event-webpage” to link to an external webpage of the event.
Thanks
Bernhard
Bernhard
September 13th, 2009 at 13:36 Uhrpermalink
I am sorry, that I did not answer immediately, but I was away for holidays.
admin
September 14th, 2009 at 19:17 Uhrpermalink
@nepf
Irgendwie denke ich grad vermutlich wieder viel zu kompliziert, aber ich komm grad nur auf Lösung, die wahnsinnig aufwendig sind hinsichtlich Datenbank abfragen. Denn leider ist ja das Datum und somit das Monat nicht einfach so in der Datenbank hinterlegt. Aber hier mal ein erster Gedanke:
Einfachste Lösung (wenn auch mit etwas Aufwand verbunden) wäre, wenn du (1.) zusätzlich zum Einstellen eines Termins noch ein Costum Field (=Benutzerdefiniertes Feld) eingibst. Beispiel für einen Termin im Oktober 2009 Name: eventmonth, Wert: 1009. Beispiel für Termin im im Februar 2010 Name: eventmonth, Wert: 0210.
Wenn du immer nur Termine innerhalb der nächsten 12 Monate angeben willst, kannst du auf die Jahreszahl ja sogar ganz verzichten.
(2.) Dann musst du dir für jedes Monat eine eigene Seite mit eigenem template oder eine Seite mit unterschiedlichen Abschnitten (HTML-Anker) mit ebenfalls eigenem template erstellen.
(3.) Im template führst du dann erstmal die Funktion rs_event_id() aus und holst dir damit erstmal die ID’s der einzelnen Artikel mit Terminen. Dabei kannst du ganz normal alle Paramter benutzen. Die ID’s speicherst du dann am besten in einer Variablen.
(4.) Dann kommt ein Loop oder eben ein ganz klassischer WP-Abruf von Aritkel aus der Datenbank. Hier benutzt du die Variable aus 3. und nennst dann als weitere Bedingung, dass eben da costom-field einen bestimmten Wert haben muss. Bin grad nicht voll im WP-Denken drin, so dass ich nicht ganz fit bin, was Datenbank-Abfragen im Loop oder auch außerhalb des Loop betrifft, aber unter codex. wordpress.org findest du sicher Antworten.
Soweit nun mein erster, zugegeben etwas komplexer Vorschlag. Eine Alternative wäre, wenn du die DB-Abfrage mit dem von RS EVENT multiday erstellten Custom Field Wert _rs_event_array steuerst. Einfacher wird das aber sicher nicht, höchstens vielleicht eleganter.
Wenn mir noch was einfällt, meld ich mich.
admin
September 14th, 2009 at 20:02 Uhrpermalink
@Bernhard
Thanks for your good ideas. I think about adding options for a event-webpage with the next release of RS EVENT multiday.
The meta-values of RS EVENT multiday are set in the function rs_event_save of the plugin (line 360 to 425).
You get further information on setting meta-values with WordPress in the codex: http://codex.wordpress.org/Function_Reference/add_post_meta
If the meta-value starts with _ (e.g.: _rs_event_start), the value is not visible at the edit panel of posts under custom fields.
admin
September 14th, 2009 at 20:09 Uhrpermalink
Hi Florian,
Urlaub muss sein!
Der letzte Absatz deiner Antwort @nepf berührt meine Frage, wie die Werte für die _rs_event-Schlüssel gebildet werden.
Die _rs_event_start und_rs_event_ts sind kann man sich wahrscheinlich direkt aus dem Datum (und der Uhrzeit??) errechnen? Für mich schwierig wirds beim Array.Welche Funktion benutzt du dafür?
Danke – Bernhard
Bernhard
September 14th, 2009 at 20:19 Uhrpermalink
@Bernhard
Naja, dass mit dem Errechnen von Datum und Uhrzeit ist nicht so ganz einfach, da sie mit der PHP-Funktion gmdate (siehe v.a. Zeile 574ff.) bzw. gmmktime (z.B. Zeile 390f.) umgewandelt sind und daher immer erst rückgewandelt werden müssen (vgl. z.B. Zeile 142). Soviel zu den Werten von Uhrzeit und Datum.
Was nun die einzelnen Werte betrifft, so sieht es wie folgt aus:
(1.) _rs_event_start: Enthält den Wert für den Beginn von Datum und Uhrzeit des Events. Wird als einzelner Value benötigt, da die Events danach sortiert werden. Umgewandelt durch gmmktime (Zeile 391)
(2.) _rs_event_ts: Enthält entweder Datum und Uhrzeit des Beginns des Events ODER Datum und Uhrzeit des Endes des Events, je nachdem, ob der Event mit Beginn oder mit Ende der Veranstaltung aus der Liste geworfen werden soll. Daher ist auch hier ein eigener value wichtig.
(3.) _rs_event_array: Enthält, wie der Name schon sagt, einen Array mit ALLEN Werten, die irgendwie mit dem Event verbunden sind, also Start- und evtl. auch End-Datum/Zeit, ob mehrtägig oder nicht usw. Nur die Werte des Arrays werden für die weitere Ausgabe bzw. Verarbeitung verwendet. Der Array wird in Zeile 405 zusammen gesetzt und in der Variablen ts_values gespeichert, die dann in Zeile 414 als meta-value abgelegt wird.
Ich hoffe, das hilft nun weiter. Falls nicht, einfach nochmal melden.
admin
September 14th, 2009 at 22:46 Uhrpermalink
Hi Florian,
can you think of a way to get the event dates & time into the RSS feed.
It has become common for our authors to create events and rely on the RS Event Multiday values to tell people when it is happening and not mention it in the text. But people who only get the RSS feed can’t find out when it starts because it is not there.
P.S. the plugin works perfectly in WP 2.8.4
Rick
September 17th, 2009 at 16:01 Uhrpermalink
@Rick
I have not really solved your problem, but at the codex on wordpress.org I have found a site, that might be interesting for you:
http://codex.wordpress.org/Customizing_Feeds
Please let me know, if this was helpful for you.
admin
September 18th, 2009 at 10:39 Uhrpermalink
Thanks Florian – I will read this up and do some experiments over the next week. One problem seems to be that the feed templates are not integrated into the theme system so it may involve some hacking of the WP core.
Rick
September 18th, 2009 at 11:47 Uhrpermalink
Right – I have done some research. First you have to persuade your theme to use a custom feed template – I have documented that on my blog here http://west-penwith.org.uk/blog/archives/892
No you can insert the RS-Event stuff. The way I did it was to replace the section with
‘D j M Y’,
‘date_format_2′ => ‘D j M’,
‘time_format’ => ‘g:ia’,
‘html_post_v1′ => ‘ — %DATE% @ %TIME%’,
‘html_post_v2′ => ‘ — %DATE%’,
‘html_post_v3′ => ‘ — %DATE% to %ENDDATE%’,
‘html_post_v4′ => ‘ — %DATE% onwards’,
);
rs_event_post($rs_event_arg);
} ?>
You have to be careful because XML is very very fussy.
Rick
September 23rd, 2009 at 23:10 Uhrpermalink
I will do that again with pseudo code!
Now you can insert the RS-Event stuff. the way I did it was to replace the [title] section with
[title][?php the_title_rss();
if (function_exists(rs_event_post)) {
$rs_event_arg = array
(
'date_format_1' => 'D j M Y',
'date_format_2' => 'D j M',
'time_format' => 'g:ia',
'html_post_v1' => ' — %DATE% @ %TIME%',
'html_post_v2' => ' — %DATE%',
'html_post_v3' => ' — %DATE% to %ENDDATE%',
'html_post_v4' => ' — %DATE% onwards',
);
rs_event_post($rs_event_arg);
} ?>[/title]
Let’s see if that is better.
Rick
September 23rd, 2009 at 23:13 Uhrpermalink
I have made the swedish translation.
On what email do you want the files?
Thanks for a great plugin!
Bengt Jönsson
Oktober 3rd, 2009 at 12:17 Uhrpermalink
@Bengt
Thanks for your support. I would love to include your translation into RS EVENT multiday Version 1.1, which should be published in November (hopefully).
Please send it to the email-address, which is shown under “Impressum” (fm-web….)
admin
Oktober 6th, 2009 at 23:56 Uhrpermalink
Hi,
i really like this plugin because of the approach to handle events as posts what let me use several other post-related plugins.
but one thing i’m wondering:
do you know a way to list the events in the backend “edit posts”-list by the event date, not by the date of publishing?
or even show the event date in an additional column of the table?
would be much easier to handle a big number of events…
grz
-m
Martin
Oktober 8th, 2009 at 21:03 Uhrpermalink
@Martin
great to hear, that the RS EVENT multiday is helpful for you.
Well, I am pretty sure there is a way to show the event date at the “edit posts”list in the backend, as there is always a way when working with PHP and wordpress. However, I fear, that you have to change and adapt some of the files in the wp-admin (and maybe even in the wp-includes) folder. Believe me, it did it in the past and it is no fun because with every WP update, you might have to do it again.
At the moment, I do not see any other way and I do not think that there might be a plugin for that.
admin
Oktober 8th, 2009 at 22:08 Uhrpermalink
Hey there, I’m the original developer of the RS Event plugin, three or so years ago. While a bit bored I searched google for what happened to some of my old projects, and came across this.
I am very happy to see people like you have taken the the basic bare bones of the plugin, and developed it into something much better and being used by a great number of people. Things like this make me realize how great the GPL licence really is. Thank you!
Robert Sargant
November 16th, 2009 at 13:54 Uhrpermalink
Hi,
Problem seit spätestens 2.8.5 – Das Plugin scheint verantwortlich zu sein, dass der WYSIWYG-Editor (beim feste Seiten Bearbeiten) nicht mehr funktioniert. Auch nach dem Update auf 2.8.6 besteht das Problem weiterhin.
Vielen Dank,
Sebastian
Sebastian
November 18th, 2009 at 17:02 Uhrpermalink
Hauptproblem war wohl PHP5, das von meinem 1&1-Hoster nur seltsam unterstützt wird. Nachdem ich die htaccess-Datei gefixt habe, läuft auch das Plugin wieder…
Sebastian
November 18th, 2009 at 17:16 Uhrpermalink
@Robert Sargant
We really appreciate your work. Thanks.
Rick
November 24th, 2009 at 17:50 Uhrpermalink
@Robert Sargant
Thanks for your message. I am really glad that you like what happened to your plugin.
RS Event was exactly what I was looking for some months ago because it had a simple but great code. Thus, I am very happy that so many people helped to improve it and it is a honor for me, to offer this new multiday version to the wp-community.
admin
November 25th, 2009 at 16:01 Uhrpermalink
First: Thanks for the awsome plugin.
Is there a chance to make a newline or break between the day and the month in the output of %DATE%?
Or mabe get DIVs instead of LIs as output.
Cheers,
krs
krs
Dezember 4th, 2009 at 21:37 Uhrpermalink
@krs
As far as I can see, there is no chance to handle your problem with the %DATE% output (just by changing the code of the plugin).
However, if you want to change the LIs into DIVs, you must not use the function rs_event_list() or the widget. Use the function rs_event_id() and then use the array within a loop. By doing so, you can configure all the stuff with wordpress template tags.
If this does not work for you, feel free to change the code of the plugin. To reach your aim, it should only need minor changes.
admin
Dezember 4th, 2009 at 22:15 Uhrpermalink
How can i set the event guide so that visitors can add their own event? Is that possible?
Malin Fabbri
Dezember 19th, 2009 at 15:34 Uhrpermalink
@Balin Fabbri
Well, visitors cannot add their own event. Adding an event is similar to adding a post, so only logged in persons, who can publish posts, can add an event
admin
Dezember 20th, 2009 at 15:44 Uhrpermalink
is there a way to list the events in a post or page?
Steven
Dezember 31st, 2009 at 15:17 Uhrpermalink
@Steven
It is no problem to list the events on a page. Just create a template with the function rs_event_list() (and the parameters you want) in the code.
It is a little bit more complicated to integrate it the events on a post. You have to create a certain category (e.g. catpost) and then you have to edit the single.php of your theme with the template tag is_category and the function rs_event_list()
You should be familiar with php and the code, especially template tags, to do all these operations. If you are not, google might be helpful.
admin
Januar 2nd, 2010 at 13:23 Uhrpermalink
Basic Question Where are you going to enter the events? Do I need to create a category named “events” and post my events in that category?
Stone Deft
Januar 13th, 2010 at 09:48 Uhrpermalink
Please, read all the other stuff here first and you will see, that it is pretty easy. So for the last time: There are no categories needed or anything else like that. Events are simple posts and you just have to edit the dates at the “edit post” page. That’s all.
admin
Januar 13th, 2010 at 11:05 Uhrpermalink
Hallo Florian,
Welche Möglichkeiten gibt es die Ausgabe des Plugins mit in den RSS Feed einzubinden? mit der hier in den Kommentaren genannten Variante komm ich nicht voran.Es wird immer nur der letzte Event in dem letzten Post ausgegeben.
Leider ist der RSS Output von WP immer noch auf den reinen Content beschränkt und schliesst nicht den kompletten Output einer z.B. single.php ein.
Gruß Sven
Sven
Februar 6th, 2010 at 22:05 Uhrpermalink
Hi Sven,
I am sorry, but I have to admit, that I do not use RSS quite a lot. Thus, I cannot tell you, how RSS really works and what it uses. So, this might be a general WordPress issue.
All I can tell you about my plugin is as follows:
It just uses custom fields (“Benutzerdefinierte Felder”) which are named: _rs_event_array , _rs_event_start , _rs_event_ts
The _ prior to rs_event just says, that it does not show up at the edit post page as a visible custom field. However, you can find it in your database as a post-meta to your post.
So you just have to find a way, that RSS accesses the meta data of your post.
admin
Februar 8th, 2010 at 14:39 Uhrpermalink
Hallo!
Tolles Plugin, das genau das macht, was ich brauche. Nur eines nicht: Events können ausschließlich auf Basis von Posts erstellt werden – jedoch nicht auf Basis von Seiten
Gibt’s nen Fix, mit dem ich Events auf Seitenbasis steuern kann?
Danke für eine kurze Info!
Andreas
Februar 11th, 2010 at 16:01 Uhrpermalink
@Andreas
All you have to do in oder to mark pages as events is to add the following code to the plugin-file rs-event-muliday.php inside the function rs_event_add_custom_box (line 108-111) :
add_meta_box(‘rs_event_sectionid’, ‘RS EVENT multiday’, ‘rs_event_sidebar_controls’, ‘page’, ‘advanced’);
Please, be aware that this change might get lost with a future automatic updates of the plugin.
admin
Februar 11th, 2010 at 16:25 Uhrpermalink
Hello,
Congratulations for this great plugin, it’s the best event manager for wp I could find
However I’ve got a little stuck since I’m new to php:
I’m trying to display both the date and the tags associated to posts (on a category page).
I’ve tried adding tags to rs_event_list (), to be displayed next to the date, but with no success. Is there a way to do this?
Or to list the event’s date inside the regular category loop, since here displaying tags it’s pretty simple..
Thanks in advance!
Horia
Februar 12th, 2010 at 15:39 Uhrpermalink
There are ways to display both the date and the tags, but the plugin is not able to do this.
So you have to make yourself familiar with the loop (seems, you have already done this), template tags and templates itself. You will find all the information you need at codex.wordpress.org. It ist just too complex to explain it step by step here in the comments.
I just want to remind you, that the plugin offers the functions rs_event_post and rs_event_id as well. These two functions might be helpful to you, if you want to create certain templates.
admin
Februar 12th, 2010 at 15:47 Uhrpermalink
Thanks for your fast reply. Yes, using rs_event_post lists the date inside the loop, it’s exactly what I needed! I thought it only works on single posts.
I’m almost ready with the romanian .po, I’ll send it to you later if you’d like to include this too.
Thanks
Horia
Februar 12th, 2010 at 16:05 Uhrpermalink
Fantastic — thanks for the fast reply! Is there a chance to have the page integration included in the next version/in updates? Or is there a particualr reason not to use pages as events?
Andreas
Februar 12th, 2010 at 19:09 Uhrpermalink
@Andreas
Well, I liked your idea and I really think about integrating the page option in the next release. Maybe I split it up in two separate plugins, so everyone can choose on his/her own, if he/she needs it.
At the moment, I cannot see any particular reason. It just might limit the performance of your wp installation.
However, I appreciate, that I could help you.
admin
Februar 12th, 2010 at 19:13 Uhrpermalink
I have installed the plugin and it works well, thanks.
Now I am going to look for a solution to show the events on a separate “event page” in my case called “wichtige Termine”.
But up to now I did not found a template for that purpose. And I am looking for a short description how I have to code.
Thanks in advance for any hint.
herg37
herb37
Februar 13th, 2010 at 11:24 Uhrpermalink
@herb37
Well, I guess there is no template that fits exactly to your purpose, since WP always works as a combinaton of the wordpress-installation itsself, the theme you choose and the plugins you choose. So you might have a very unique wordpress installation, which means, that you have to create your own templates that work with the plugins you need.
First, you should see, if the theme you use supports templates. Usually it does.
The easiest way is, to copy the page.php of your theme, rename it (e.g. tmpl_eventpage.php) and mark it as a template with the code right at the beginning of the file:
< ?php
/* Template Name: Eventpage */
?>
. This might differ in the theme you use.
Next step is to integrate the function rs_event_list() into the code of your template and pass some parameters, if you want to. You can find an example at the very bottom of this page: http://wordpress.org/extend/plugins/rs-event-multiday/
If you want to learn more about templates in wordpress you should start at:
http://codex.wordpress.org/Stepping_Into_Templates
Some other helpful pages are:
http://codex.wordpress.org/Pages especially the chapter “Page Templates” and “Creating Your Own Page Template”
Some personal stuff:
Ich finde deine Seite “Internetportal Würzburg” richtig gut und freue mich sehr, wenn mein Plugin für ein solches Projekt einen Beitrag leisten kann! Da ich selbst in der kirchlichen Jugendarbeit tätig bin, finde ich auch so etwas wie die Freiwiligenbörse eine super Sache. Echt klasse!!!
Und in diesem Sinne nun ein herzliches “Würzburg Helau” aus Würzburg und nach Würzburg
admin
Februar 15th, 2010 at 10:51 Uhrpermalink
I’ve just noticed that the category restriction is not available in the widget.. is there a simple way to add this option? Thanks
Horia
Februar 15th, 2010 at 15:40 Uhrpermalink
Florian:
I’m just starting with WP and I am lost in the RS Events mutiday installation process
Is there a place where I can find more detailed instructions for the installation and configurations of the Plug in? (Something like “RS Events multiday for Dummies”)
Thanks for your help
Edgar
Edgar
Februar 15th, 2010 at 20:36 Uhrpermalink
Can I write only the last n archived items?
Joco1114
Februar 15th, 2010 at 23:54 Uhrpermalink
@Horia
Sorry, but I cannot see any simple way to manage that problem. The only way might be to edit your sidebar.php manually.
@Egar
How do you get along with other wp plugins? There is no simplier plugin than the RS EVENT mulitday widget. And the installation instructions here on this page are already for “dummies”.
Please, make yourself familiar with codex.wordpess.org
@Joco1114
I guess no. But I cannot really see what you are aiming at. Sorry
admin
Februar 16th, 2010 at 14:06 Uhrpermalink
Ok, thanks. Anyway I would like to see the past items only.
Joco1114
Februar 16th, 2010 at 15:31 Uhrpermalink
@Joco1114
Well, that should not be much of a problem. Try to work with the timespan parameter and history parameter (see above).
Example:
Set history to 365 (one year into the past) and timespan to 0.
admin
Februar 17th, 2010 at 10:48 Uhrpermalink
Thank you, meanwhile I did it, almost the same way.
Joco1114
Februar 17th, 2010 at 12:26 Uhrpermalink
1.In which file should I inset the configurations?
2.I have an Events page in my site, how can I get published all the events on that page?
Edgar
Februar 22nd, 2010 at 02:19 Uhrpermalink
You can set configuration, when you call the event list:
‘%DATE% @ %TIME%%TITLE%%EXCERPT%» more ’,
‘html_list_v2′ => ‘%DATE% (full day event)%TITLE%%EXCERPT%» more ’,
‘html_list_v3′ => ‘%DATE% @ %TIME% – %ENDDATE%%TITLE%%EXCERPT%» more ’,
‘html_list_v4′ => ‘%DATE% – %ENDDATE%%TITLE%%EXCERPT%» more ’,
‘no_event_msg’ => ‘No events’,
‘max_events’ => 10,
‘sort_order’ => ‘ASC’,
‘max_events’ => 5
);
rs_event_list($argsevent);
?>
Joco1114
Februar 22nd, 2010 at 07:31 Uhrpermalink
Oops… It seems I cant insert my code here.
Can I send it to you to EXG contact?
Joco1114
Februar 22nd, 2010 at 07:34 Uhrpermalink
@Joco1114
Sorry for the difficulties with inserting the code in the comments.
Just send them to fm-web@dalking.de and I will try to fix it.
admin
Februar 22nd, 2010 at 15:51 Uhrpermalink
@Edgar
You have to create a template file for your event-page.
If you want to learn more about templates in wordpress you should start at:
http://codex.wordpress.org/Stepping_Into_Templates
Some other helpful pages are:
http://codex.wordpress.org/Pages especially the chapter “Page Templates” and “Creating Your Own Page Template”
Then you have to add the function rs_event_list() to the code of this template file.
admin
Februar 22nd, 2010 at 15:55 Uhrpermalink
@admin: Sorry, it was my mistake.
@Edgar: I installed Exec-PHP plugin in my WP. With this one, it is easy to use rs_event_list() function. You just have to create a page with content like this:
‘%DATE% @ %TIME%%TITLE%%EXCERPT%» more ’,
‘html_list_v2′ => ‘%DATE% (full day event)%TITLE%%EXCERPT%» more ’,
‘html_list_v3′ => ‘%DATE% @ %TIME% – %ENDDATE%%TITLE%%EXCERPT%» more ’,
‘html_list_v4′ => ‘%DATE% – %ENDDATE%%TITLE%%EXCERPT%» more ’,
‘no_event_msg’ => No events.’,
‘max_events’ => 10,
‘sort_order’ => ‘ASC’,
‘max_events’ => 5
);
rs_event_list($argsevent);
?*>
Dont forget to delete the ‘*’ after and before the greater than and less than signs. I sent this code by mail too.
Joc
Joco1114
Februar 22nd, 2010 at 18:12 Uhrpermalink
Hi! Love the plugin!
A quickie: I’m pretty new at this and don’t seem to be able so get the output month into swedish, I’ve tried to change it everywhere… eg. 23 May should be displayed as 23 maj. Could you please help me with where I need to edit the months in order to succeed in this task!
/John
John Thorsson
Februar 25th, 2010 at 14:33 Uhrpermalink
Well, it is not so simple at all. I am sorry. You have to create a swedish version .po-file. In order to to this, the zip-folder of rs-event-multiday includes the file rs-event-multiday-defaults.mo.
If you are really new to all of this, you should start at codex.wordpress.org. For internationalization of a plugin, please start at: http://codex.wordpress.org/I18n_for_WordPress_Developers
I would be happy, if you can send me the file (fm-web@dalking.de) when you have finished translating, so I can include it to the zip-folder
admin
Februar 27th, 2010 at 21:38 Uhrpermalink
Hallo,
ich habe mir gerade dein Plugin installiert und bin echt angetan.
Einfach in der Handhabe und schnell intigriert.
Ich habe nur ein Problem.
Ich erstelle einen neuen Event. Diesen sehe in in meiner Sidebar klicke ihn an kann aber dann nicht das Datum und die Uhrzeit nicht. Gibt es eine Möglichkeit dies zu realisieren? zb. Mit [event...id...]oder mit der Formatieren der %%. Ich hoffe ich erkläre es nicht zu komplex.
sven
März 7th, 2010 at 21:52 Uhrpermalink
@sven
All you have to do is to add the function rs_event_post() to the code of the post.php of your wordpress theme or you might create a new or further template file (to learn more about templates, please see the comments above) and include the function there
admin
März 7th, 2010 at 22:04 Uhrpermalink
I am using your plugin for a site http://www.lbisource.com. I’m using the widget. It works great except it is having troubles with multiday events.
I have an event that is 3/13-3/21, it won’t show in the sidebar, unless I change the option: remove from list… to by start date. Or if I take the ending date out.
I think it is using the second date to line up in the list (3/21) not the beginning date (3/13).
Any suggestions or solutions?
Pepper
März 10th, 2010 at 01:54 Uhrpermalink
@Pepper
I’m sorry, but I have never experienced this problem or heard of it. Thus, I can only guess:
- If you have more than one event, please check the widget’s setting at “show up to”. It might depend on the setting “by start date” or “by end date” on which place the event shows up in the queue.
- Pleace see the setting “Published on” at the edit post page. This must not be set to the future.
admin
März 10th, 2010 at 10:01 Uhrpermalink
hey there – i LOVE this plugin! Thank you!
I’d like to second (or third) the suggestion of adding a “Location” option. I’m working on a WP site for a 5-branch library system, and that functionality would be fantastic!
Is that still part of the plan? any ETA? Thanks again for all the great work!
Shelly D
März 18th, 2010 at 05:04 Uhrpermalink
Super… RS Event lebt also weiter. Vielen Dank! Ich finde es sehr praktisch und nutze es gerne, besonders weil die Handhabung im Admin-Bereich auch für ungeübte Autoren sehr einfach und selbsterklärend ist.
liqui.do
April 6th, 2010 at 22:41 Uhrpermalink
While we eagerly await a plugin update (eee!), i’m wondering if there’s a way to include Location information by using the custom field option when we write a post. E.g. If I add a custom field “Event Location” to an event post, is there a way to edit RS Event to display the value entered in that field in the list of upcoming events? My PHP skills are pretty basic at this point, so I think it _can_ be done, I’m just not sure how.
Can anyone assist?
Shelly D
April 21st, 2010 at 22:57 Uhrpermalink
@ Shelly and all the other folks, who are awaiting the new release of RS EVENT multiday
As you can see at the top of this page, I have just released a beta version of RS EVENT multiday (1.1 beta). It includes the possibility to add a location or any other information, i.e. it is a simple and ordinary text field. It is not tested yet very well, so please tell me, if you experience any problems.
Please, consider to make a donation to support this plugin (see above).
admin
April 23rd, 2010 at 09:04 Uhrpermalink
Yay! Just installed it, and tweaked one event, and it seems to be working. I’ll definitely report back when I have some more locations added, etc. I like that it’s a free text field – very nice! It can be used to display any sort of extra info beyond time/date info!
Shelly D
April 25th, 2010 at 20:30 Uhrpermalink
Hi Florian, and thanks for a great plugin. I’m using RS-event-multiday both as widget and directly through the function rs_event_list(). Works great! I’d like to do more with the other functions, but I am not that experienced with the programming part. It would be a great learning help if you or some of the other users could provide some working examples of how to implement the functions. BTW the location text field is VERY usefull!
Barbara
April 28th, 2010 at 03:16 Uhrpermalink
@Barbara
Thanks for your comment. Here are some short information on your question. You can use rs_event_id() completely similar to rs_event_list(). It just does not print the events, but it saves the events in an array and you can use this array for another query. This might be useful, e.g. if you just want to show the authors of the events. If you have not yet done anything with queries on your own, you just should ignore it. Or if your interested, just read the codex.wordpress.org.
rs_event_post() just the event information on a single page. As you might know, an event with RS EVENT multiday is just an ordinary post. So if you have the single view of your post, the date and event information gets printed. In order to do this, you have to add the function rs_event_post() to the single.php file of your wp theme (inside the Loop!!!!) . The parameters you can use are quite similar to rs_event_list().
admin
April 28th, 2010 at 07:37 Uhrpermalink
Here is an example for rs_event_post() as I use it in the single.php (inside the Loop!!!) on one of my projects:
< ?php
$argseventpost = array(
'time_format' => ‘ \< \i\>\(l\)\< \/\i\> | H:i’,
‘html_post_v1′ => ‘
‘,
‘html_post_v2′ => ‘
‘,
‘html_post_v3′ => ‘
‘,
‘html_post_v4′ => ‘
‘,
);
rs_event_post($argseventpost)
?>
admin
April 28th, 2010 at 07:37 Uhrpermalink
Thanks, Florian, that helped a lot
Barbara
April 29th, 2010 at 14:30 Uhrpermalink
Hi florian – after much use, the location field is fantastic! I did just get the error that Stefan mentioned above (the “gmdate() expects parameter 2 to be long…” error). It doesn’t look like the contributor deleted anything, and i kuldgily fixed the problem by changing the date on the event to the past and creating a new post for the upcoming event. Just thought you might be interested in knowing the problem was still lurking!
shellyd
Mai 19th, 2010 at 04:14 Uhrpermalink
Hi,
I cant find the field to input the location of the event…
Sergio
Mai 24th, 2010 at 21:07 Uhrpermalink
@Sergio
You have to download and use the Version 1.1beta on this site.
admin
Mai 25th, 2010 at 10:33 Uhrpermalink
Hi,
For some reason, if I use my “one click install plugin” with the link above, I reinstall version 1.01. I try the old fashioned method – FTP – and all is ok now.
Tks
S
Sergio
Mai 25th, 2010 at 12:48 Uhrpermalink
New version (1.2) of the plugin is available at the WP Plugin Repository
http://wordpress.org/extend/plugins/rs-event-multiday/
Thanks to all you helped testing version 1.1 beta.
admin
Mai 26th, 2010 at 12:01 Uhrpermalink
A question to everybody!!!
Due to the bad perfomance on pages with many events, I think about removing the possibilty to show the fulltext (i.e. entire text of a post) in an event list. Do you think any one might miss that?
I am looking forward to your feedback. I need your opinion.
admin
Mai 30th, 2010 at 21:42 Uhrpermalink
ich benutze immer noch nicht dein multiday sondern das alte und nur angepasste rs-event.
Ich denke, trotzdem passt meine Frage auch hierher.
Meine datenbank wir dicker und dicker, lauter abgelaufene termine. Die würde ich gern irgendwie automatisch oder auf einen klick löschen … und zwar komplett mit allen Attachments, benutzerdefinierten Feldern …
… hast Du dafür eine idee?
nepf
Juni 1st, 2010 at 22:13 Uhrpermalink
@nepf
Meines Erachtens kommst du nicht an einem Besuch in deiner Datenbank über phpmyadmin. Dann ab in die Tabelle postmeta und dort alle Einträge mit einem rs-event im key löschen. Geht per Hand Stück für Stück oder für Experten (dazu gehöre ich allerdings nicht) über dementsprechende Datenbankbefehle. Und wenn du die Posts komplett löschen willst, musst du halt auch noch in die Post-Tabelle.
Hier noch ein anderer Hinweis. Das automatische Erstellen von Revisions der einzelnen Posts lässt die Datenbank auch ziemlich anschwillen. Abhilfe schafft folgender Eintrag in der wp-config.php in der allerersten Zeile gleich nach dem
define (‘WP_POST_REVISIONS’, 4);
Ansonsten einfach mal google bemühen.
admin
Juni 1st, 2010 at 22:37 Uhrpermalink
Wonderful plugin! I have a question: Is it possible to sort the list by something other that the start date? I have a list of events that includes some 1-day events and others that may last several weeks, so that the 1-day events wind up far down the list.
Thanks for any advice you can give me!
-Mark
Mark
Juni 6th, 2010 at 02:44 Uhrpermalink
@Mark
Well, you can change it, but the sort order is deep in the code of the plugin, so you have to change it manually, which won’t make it compatible to updates.
If you want to do it, the relevant line is 538 for function rs_event_list() and 908 for rs_event_id()
Please read the wordpress codex and make yourself familiar with php via google search for any further information.
admin
Juni 6th, 2010 at 23:24 Uhrpermalink
I am trying to use rs_event_id() to get the ids of returned posts and use them in a query_posts and using the post_in for the ids so I can use them in my loop, I have tried many ways but just cannot get this to work, are there any tutorials available for this.
Thanks for bring this plugin uptodate much respect to you
fb
Juni 7th, 2010 at 12:53 Uhrpermalink
@fb
I am sorry that I cannot offer you a great tutorial. I can just give you some advise. Please consider, that rs_event_id() returns an array, not a string and no ints. So you might have to create a loop or something similar in order to loop through the array.
admin
Juni 7th, 2010 at 14:25 Uhrpermalink
Thanks for the pointers I was looking for a way to be able to get
something like this working
$argsevent = array(
‘timespan’ => 30,
‘max_events’ => 4,
);
$postswanted = rs_event_id($argsevent);
get_posts(array(
‘post_type’ => ‘events’,
‘post__in’ => array($postswanted) ));
loop through the stuff….
any ideas?
Does the rs_event_id() return post_ids like 5,6,27,134 etc
or something else.. Thanks
fb
Juni 7th, 2010 at 15:38 Uhrpermalink
@fb
try to change the line
‘post__in’ => array($postswanted)
in
‘post__in’ => $postswanted
$postswanted is already an array, so you do not have to create a new one.
If this information is helpful to you, please consider a donation.
admin
Juni 8th, 2010 at 00:44 Uhrpermalink
Thanks for the reply, yep afraid I already tried that, hence posting here. It doesn’t seem to work.
I cannot get it too follow either
‘timespan’ => 30,
or
‘max_events’ => 4,
I will keep on trying different things, thanks again
fb
Juni 8th, 2010 at 11:39 Uhrpermalink
Hi,
ich habe in das Plugin folgende Zeilen eingefügt, um die rs_event_list() funktion flexibler zu machen, und zwar um das ul-Element gegen das table-Element und das li-Element gegen das tr-Element tauschen zu können – bei Bedarf:
…
‘html_list_v4′ => ‘%DATE% (multi-day) | %LOCATION% %TITLE% » read more «’,
‘html_list_ul’ => ‘ul’, // html-element for the whole list
‘html_list_li’ => ‘li’, // html-element for the single list-entry
‘html_post_v1′ => ‘%LOCATION% | %DATE% @ %TIME%’,
…
…
/*** Now output the array */
echo ”.implode(”, $output_array).”;
} // end rs_event_list
…
Vielleicht kannst Du diese Idee übernehmen – ich benötigte jedenfalls die event-Liste in Tabellenform – möchte aber die Default-Funktionalität nicht einschränken.
Gruß
J.Y.
J.Yossarian
Juni 15th, 2010 at 19:39 Uhrpermalink
@J.Youssarian
Danke für deinen Vorschlag. Allerdings denke ich nicht, dass ich ihn standardmäßig einbauen werde, denn es ist eigentlich keine große Sache, den default-Output anzupassen, jedenfalls nicht wesentlich schwieriger, als irgendwelche weiteren Parameter anzupassen. Sorry. Aber ich möchte das Plugin wirklich sehr, sehr einfach halten, und da sind mir zum Teil meine vier verschiedenen Möglichkeiten des HTML-Outputs schon zu viel (aber leider unvermeidbar, bis jetzt). Daher bitte ich dich einfach um dein Verständnis.
@ALLE
Abschließend noch die bitte, vielleicht doch auf Englisch hier zu posten. Vielleicht hat ja jemand genau das gleiche Problem und ist auf der Suche, wie man die ul und li durch table und tr ersetzen kann, und dann wäre dein/euer Post sicher hilfreich für denjenigen. Hab das ja selbst oft genug bei anderen Plugins gemacht mit denen ich Probleme hatte, dass ich eben über google irgendwelche Foren durchforstet habe.
admin
Juni 15th, 2010 at 19:59 Uhrpermalink
Hello,
Let me first thank you for the RS-MULTIDAY-EVENT plugin. We love it and use on our WPMU site AfrobeatRadio.Net.
Usually, after installation we modify the date format to month/day and it has worked for us for some time.
However, of late we have been experiencing some issues relating to the plugin which has led us to uninstal and re-installations several times.
The issue we think has to do with some php problem and we have confirmed the source as RS-MULTIDAY-EVENT plugin.
The error is: when a user is logged into our wpmu platform any other user that tries to login gets a blank page. Meanwhile, logged in user gets a blank page when trying to log out.
The solution has been to delete RS-MULTIDAY-EVENT folder and wpmu works well. Can you please comment on this?
Secondly, We understand that RS-MULTIDAY-EVENT was developed for wp and not wpmu, however but we would like to ask you if you will be willing to upgrade/develop RS-MULTIDAY-EVENT for wpmu.
Thank you.
wuyi
Juni 16th, 2010 at 23:43 Uhrpermalink
@wuyi
I am sorry, but I am not experienced with wpmu at all. Have never tested it and have never used it.
Since RS EVENT multiday is just something to keep me busy between 2 and 4 am in the morning, I cannot see any chance to really work on this problem. Sorry. At the moment, I am about to test the plugin with WP 3.0, which keeps me busy enough.
admin
Juni 17th, 2010 at 08:55 Uhrpermalink
hi, it’s possibile to SEARCH LOCATIONS ? i want to make a search for LOCATION Field .. ??
THANKS A LOT
marco
Juni 19th, 2010 at 12:22 Uhrpermalink
@marco
There might be a way, but it is definitely not an easy one and at the moment, I honestly do not have any idea, how you might realize this.
Just some information, that might be helpful to you:
The location is stored in a meta-key named “_rs_event_array”. This is an array and it includes the variable $location.
admin
Juni 19th, 2010 at 17:03 Uhrpermalink
Thanks for a graeat plugin.
Have some problem with following code, where I have changed as in lines below.
Events is only shown if they are within 2 month from today. Events in october is not shown, even if it’s the only one, so I have changed below rows as follows, and then it works, but I don’t think it’s the right way to go … or is it?
$lower_time = current_time(‘timestamp’) – ($history * 24);
$upper_time = current_time(‘timestamp’) + ($timespan * 24 * 60 * 60 * 60 * 60);
Best Regards
Bengt Jonsson
Sweden
Bengt Jonsson
Juni 22nd, 2010 at 18:00 Uhrpermalink
@Bengt Jonsson
There is the parameter “timespan” in the plugin, which is set to 365 (days to the future) by default. So, if you have not changed anything at that parameter neither in the code nor in the widget, it should show all the events up to one year.
So please check your settings of the event and of the plugin, before you change the code. If you still experience some problems, please let me know, since there might be an error within the code. However, I have not experienced this problem on any site, where I use the plugin myself.
PS: I always love it to see, when the plugin is used for a christian church site, since I originally programmed it for my own site of the Regensburg Catholic Students Community (see http://www.khg-regensburg.de). So this is really, what it originally was meant for so it should meet best the requirements of such a site
admin
Juni 23rd, 2010 at 12:03 Uhrpermalink
Is this compatible with WP 3.0?
Shanna Cramer
Juni 23rd, 2010 at 14:55 Uhrpermalink
@Shanna
Yes, it is compatible with WP 3.0. I have tested it already, but I have not changed that information at the WP repository, yet. I will do this some day next week.
admin
Juni 27th, 2010 at 23:04 Uhrpermalink
Hi … It’s possible to insert in event list the featured images of post .. any idea ?
shen
Juli 5th, 2010 at 10:56 Uhrpermalink
@shen
Use the function rs_event_id() to get the post-IDs for your list. And then create a simple loop in your template.
admin
Juli 5th, 2010 at 11:02 Uhrpermalink
In WP 3.0 events pages are not displayed in the widget while it worked in 2.9. Can you help me?
Lorenzo
Juli 10th, 2010 at 13:31 Uhrpermalink
@Lorenzo
Thanks for your comment. You were right, there was a bug. I think, I could fix it, so it should work with version 1.2.1 of the “RS EVENT mutliday” plugin.
You can download it at the Plugin directory of wordpress.org:
http://wordpress.org/extend/plugins/rs-event-multiday/
admin
Juli 10th, 2010 at 19:46 Uhrpermalink
You have found the problem and updated the plugin in a flash, I appreciated the work, thanks.
Lorenzo
Juli 11th, 2010 at 11:28 Uhrpermalink
thanks for your plugin…
bingjie
Juli 12th, 2010 at 22:40 Uhrpermalink
Hallo,
habe das Plugin installiert und die Funktion rs_event_post () eingefügt. Soweit klappt alles, aber die Reihenfolge der Posts bleibt unverändert. Trotz ‘sort_order’ => ‘ASC’ oder ‘DESC’ bekomme ich es nicht hin, dass die Posts nach Eventdatum sortiert werden. Wie kann ich das einstellen?
365,
‘history’ => ’0′,
‘date_format_1′ => ‘d.m.Y’,
‘date_format_2′ => ‘d.m’,
‘sort_order’ => ‘ASC’,
‘html_post_v1′ => ‘%DATE% um %TIME% – %LOCATION%’,
‘html_post_v2′ => ‘%DATE% – %LOCATION%’,
‘html_post_v3′ => ‘%DATE% – %ENDDATE% – %LOCATION%’,
‘html_post_v4′ => ‘%DATE% (multi-day event) – %LOCATION%’,
‘max_events’ => ’0′,
);
rs_event_post($argsevent);
?>
Vielen Dank und Grüße,
Sandra
Sandra
Juli 18th, 2010 at 11:25 Uhrpermalink
@Sandra
First of all: RS EVENT multiday sorts the posts by eventdate by default.
Now, you neither have sent me a complete code nor have you sent me a link to the page, where you experience the problem.
Please tell me, what sort order is used at your site (e.g. date published???)
My advise to you is, first to use the function rs_event_post() in your template with the default values and than add one custom value after the other. Please start with the “html_post_vX”-values. Then, tell me, at which point you experience your problems.
admin
Juli 18th, 2010 at 23:50 Uhrpermalink
i’m germany but i try it in my verry bad english.
I’ve installed your plugin. then i go to widgets and put it in the content. then i make a new Post (Artikel) scroll to bottom and edit a new event. that all okay.
Now i look in fronted. i can see the new event. But if i klick on read more if get these message:
“Not Found
Apologies, but the page you requested could not be found. Perhaps searching will help.”
i dont know why. i do something wrong oder what is the problem?
i hope you understand it.
Now in German languages.
Ich habe folgendes Problem.
Ich habe Ihr plugin installiert und in den Witgets den Kalender in einen Content gelegt. Dann einen neuen Artikel erstellt und ganz unten einen Termin eingestellt. Im Fronted wird dieser auch super angezeit. Nur wenn ich auf mehr lesen klicke bekomme ich obige Meldung.
Gruß
Wolfgang
Wolfgang
Juli 26th, 2010 at 17:18 Uhrpermalink
@Wolfgang
Well, your English is not bad at all. Maybe the first line, where you tell me, that your English is bad – this line is really bad
However, my English is not very much better *smile*
Anyway, thank you for posting your comment in English, so it might be helpful to all!!!!
In order to help you, I would need to take a look at your homepage. I guess, that the problem has nothing to do with RS EVENT multiday, but with the post settings. Please check, if the post is really published (not only visible as preview) and not marked as private.
If you still think, the plugin is the problem, please send me the URL.
Florian
Juli 26th, 2010 at 21:45 Uhrpermalink
Hello Florian
First of,well done! the plugin is great and with a bit of css tweak it looks also good.
Now i have two questions, I’d like to output the date as (i.e) Monday 16 of April (or so) but i can’t figured out how. I’m outputing a list in a page template and ‘html_list_v2′ option.
My second question, I’m trying to implement the “featured image” of the post into the output arrat, but without success so far. I think it could be a MAJOR goal. Do you know if there are ppl outhere trying to achieve this? Is this something you are planning to include in future release? Got some hints?
Thumbs up!
best regards
daniel
Juli 31st, 2010 at 01:25 Uhrpermalink
@Daniel
To your first question:
For date formatting, please see:
http://codex.wordpress.org/Formatting_Date_and_Time
and
http://php.net/manual/en/function.date.php
That means, you might achieve your date with the following settings:
‘date_format_1′ => ‘l d \o\f m’,
(not tested!!!)
To your second question:
- Use the function rs_event_id(), which returns an array
- Then create a php-code with foreach using the array returned by rs_event_id()
http://php.net/manual/de/control-structures.foreach.php
- To include the post thumbs, have a look at:
http://codex.wordpress.org/Function_Reference/get_children
admin
Juli 31st, 2010 at 09:39 Uhrpermalink
@Daniel
Please, feel free to publish your code at my page, when it is finished.
Florian
Juli 31st, 2010 at 09:40 Uhrpermalink
I was wondering if you could limit the rs_event_list to multiple categories, instead of just one. I tried defining the category element as an array with no luck.
Eric
August 4th, 2010 at 00:07 Uhrpermalink
@Eric,
Well, I assume, this will not work due to the query_string of the code (please see line 486 and lines 500 onward -> $where_category_clause)
I guess Robert Sargant, who programmed this query_string originally, just wanted to define one event-category.
What you can do is to grab the IDs via rs_event_id() and then filter the IDs according to your category settings in a next step.
Florian
August 4th, 2010 at 11:34 Uhrpermalink
Thanks for the great plugin. Exactly what I want but I can’t get the event list to work. The widget works fine and I’ve been able to customize the output but for the event list, I can’t get it to work.
I created a custom category page and on it I put
rs_event_list()
This outputs the event list the way it was in the widget before I customized it.
What I don’t understand is how to format the event list the same way I have the widget formatted.
I know I want to use the html_list_v3 parameter. How do you customize the function rs_event_list() with the parameter html_list_v3.
Sorry if this is a silly question but I don’t understand.
Thanks
Jeff Klein
August 5th, 2010 at 06:19 Uhrpermalink
@Jeff Klein
Please see the very bottom of the following page at the WordPress Plugin Directory to get an example on how to pass on parameters to one of the functions:
http://wordpress.org/extend/plugins/rs-event-multiday/
You cannot choose the parameter used by the plugin. It depends, what date and time information you enter for each event. Then, the plugin chooses one of the html_list_vX parameters.
Florian
August 6th, 2010 at 10:28 Uhrpermalink
Hi Florian,
I would need to use the plugin as follow:
Option 1 -
- On the homepage, the visitors get to choose a County (Province), or a Group Age (Category), or a Date (Events running on 4 days only).
- On the County page (for example) they get 3 drop down lists on top of the full list of event.
The first one has the County selected, the second one has the Dates and the third one the Group Age.
- This means they can filter with one, two, or three filters and the list updates or display “Sorry, no events for these criterias”
Do you think it’s possible to customise this plugin?
Would you do it against payment?
It’s quite urgent and I don’t have the required development skills unfortunately.
Thank you,
Johanna
Johanna
August 19th, 2010 at 15:59 Uhrpermalink
Hi,
Very nice plugin!
I made a “rs-event-multiday-nl_NL. mo” file.
Can you tell me where to call or activate this translated file.
Thanks
Mirjam
Mirjam
August 29th, 2010 at 15:43 Uhrpermalink
Sorry I mean the output language on the website.
oktober instead of October
januari instead of January
etc.
Not the admin translation.
Is it possible to put some code in the PHP maybe for local date and time?
Mirjam
Mirjam
August 30th, 2010 at 11:11 Uhrpermalink
@Johanna
Sorry for the late answer, but I have been away on holidays. Anyway, is it still urgent or did you solve your problem already?
The plugin RS EVENT multiday itself cannot solve your problem, but combined with some wordpress loops it might work. However, I cannot tell for sure, sorry.
Payment?! Why not. But as I said, I cannot tell you, if I need 3 hours or 10 hours to develop the right code for you.
Florian
August 30th, 2010 at 17:31 Uhrpermalink
@Mirjam
But I do not really get what you aim at.
First of all, I would appreciate it, if you send me your translation so I can publish it with the next release of the plugin.
email: admin@dalking.de
The translation should be activated automatically as soon as it is copied to the folder “lang” of the RS EVENT multiday plugin on your webspace.
Of course it is possible to put some code in the PHP because this is, what code and PHP is all about
Florian
August 30th, 2010 at 17:40 Uhrpermalink
@Florian
Well, I haven’t decided yet what to do.
I have a few quotes from people willing to create a new plugin and customize a plugin for me, but I am open to any new suggestions.
Of course, I would need a fixed cost from you to be able to work with you. If you’re not interested, don’t worry about me!
(Can you reply by mail?)
Thanks!
Johanna
August 31st, 2010 at 10:55 Uhrpermalink
@Johanna
you get my reply via email
Florian
August 31st, 2010 at 13:33 Uhrpermalink
Hi Florian,
I will sent you the translation when really good and finished.
Soon!
I mean that I don’t need the translation for the wp-admin panel.
rs-event-multiday-nl_NL. mo only translate the plugin options in wp-admin.
I would like to have the MS Event in the sidebar on the website itself showing me:
22 oktober 2010 instead of 22 October 2010
So “oktober” in Dutch and lowercase.
Can you help me with this?
Thanks,
Mirjam
Mirjam
August 31st, 2010 at 13:34 Uhrpermalink
@ Mirjam
The translation of the widget has nothing to do with the plugin itself. Please check ALL the language settings of your blog, especially in the wp-config.php in the main folder of your blog. The following link might be helpful: http://codex.wordpress.org/Editing_wp-config.php
Florian
August 31st, 2010 at 14:14 Uhrpermalink
Hi Florain,
Thank you for your fast replay.
Sorry I think it is to complicated for me.
In wp-config.php I have:
define (‘WPLANG’, ‘nl_NL’);
This works fine in the BACK-end of WordPress but not in the FRONT-end.
Can you have a look to the screenshot to make sure if my question is clear?
http://www.kleurpunt.nl/screenshot-MS-Event.jpg
Thanks again,
Mirjam
Mirjam
August 31st, 2010 at 15:35 Uhrpermalink
@Mirjam
Your question is clear and I had the same problem myself. I can tell you it has nothing to do with the plugin, since the plugin only works with the php parameter “F” to output the name of the month (see: http://de.php.net/manual/de/function.date.php). Please make sure to have a dutch version of wordpress installed and all the other stuff. I cannot remember how I once solved the problem, but if you really have wordpress running in Dutch completely, it should work. Please see the chapter “Date Formatting strings” at http://codex.wordpress.org/Translating_WordPress
Florian
August 31st, 2010 at 16:13 Uhrpermalink
Thank you Florian,
I have NOT installed the Dutch version of WordPress.
This will be the sollution.
Thank you very much for your great support!!
Regards,
Mirjam
Mirjam
August 31st, 2010 at 17:12 Uhrpermalink
Hi Florian,
Sorry but I have a last question.
Yesterday I set Start Date to 1 september (it is today) and Remove from list by start date. No other options I have set but it is not removed from the list.
see screenshot: http://www.kleurpunt.nl/screenshot-MS-Event2.jpg
I realy can’t figure out what I’m doing wrong.
Thanks in advance,
Mirjam
Mirjam
September 1st, 2010 at 12:56 Uhrpermalink
@Mirjam and everybody else
Well, it is STILL September 1st and you have not entered any time, so it is still on. Remove by start date means, that the event gets removed as soon as it is gone. Remove by end date is only relevant for multiday events.
Exemaple 1: You have a feast or celebration at your community for the whole weekend (Friday to Sunday) and it does not matter, when your guests arrive. In this case, you should use remove by end date, since the people can arrive any time they want, even if they read about it on Sunday morning. The event will be removed as soon as it is Monday.
Example 2: You plan a trip and the event is obsolet as soon as the bus or train leaves your city. In this case you might use remove by start date, since it might not be important to the visitors of your homepage, that the bus has already left. If you have set the time, the event will be removed as soon as the time has passed. If you have not that a time, the event will be removed, as soon as the start date has PASSED and not as soon as the start date is reached.
Conclusion: Your event will be removed on September 2nd, 00:00 o’clock
Florian
September 1st, 2010 at 14:30 Uhrpermalink