Wordpress Livedates Plugin
Manage upcoming events in your wordpress blog.
By Michael
09.03.2006
We have finished the version 0.1 release of our Livedates Plugin for Wordpress called ta-livedates. ta-livedates allows you to add, edit and display livedates of your favourite artists in your blog. All dates are managed via the Admin Panel. You can print out the dates in your Wordpress templates by simple functions with the well known Wordpress syntax:
<h2>Upcoming Shows</h2>
<?php if($ld->have_upcoming_livedates()) : ?>
<?php while($ld->have_upcoming_livedates()) : $ld->the_livedate(); ?>
<strong>$ld->the_artist() ?></strong>
<?php $ld->the_date() ?>,
<?php $ld->the_country() ?>,
<?php $ld->the_city() ?>,
<?php $ld->the_location() ?>,
<?php $ld->the_info() ?>
<?php endwhile; ?>
<?php endif; ?>
All Template functions
$ld->have_upcoming_livedates()
livedates in the future, next livedate first$ld->have_todays_livedates()
livedates of the current date, order by artist$ld->have_past_livedates()
past livedates, youngest livedate first$ld->have_livedates()
all livedates, oldest livedate first
Adding new livedates supports you beeing lazy: Dates are auto-completed by JavaScript.
In version 0.1 the plugin only supports the german date format d.m.Y for editing.
The plugin adds a table “ta_livedates” to your datebase when you first activate the plugin.
Download
You may download the plugin right here:
- ta-livedates-v0.4.zip
ta-livedates-v0.2.zip(installation bug fixed)ta-livedates_v0.1.zip
Additional hints
Copy the whole ta-livedates folder (not just its content) to wp-content/plugins, then activate the plugin via the wordpress admin panel.
If you want to use the plugin in your sidebar you will have to define the $ld variable as global in your sidebar.php like this;
<?php global $ld; ?>
This is our first Wordpress plugin. Don’t hesitate to give us some feedback.
Update & Interact
The end is near, now what to do?
Please let us now what you think about this artice by commenting it. You can respond from your own site using our trackback url: Wordpress Livedates Plugin. You may want to follow new entries by subscribing to our RSS Feed. Our just browse our weblog and check some other articles.
Comments
One Response to “Wordpress Livedates Plugin”
Hallo 2 Antenas
Ich benutze euer tolles Livedates PlugIn für Wordpress.
Auf der Startseite wird damit der nächste “upcoming” gig angekündigt. Dummerweise zeigt das PlugIn am selben Tag der Veranstaltung schon das nächste Date an und nicht noch den Gig desselben Abends. Da ich bei diesem Vorkommnis nicht 2 Veranstaltungen anzeigen will (next livedate & today livedate) wollte ich fragen, wo ich welchwn code frisieren muss, damit der “upcoming livedate” nicht am selben Tag verschwindet?
Siehe hier: http://www.tim-neuhaus.de
vielen Dank für eure Hilfe!
Stefan