Let Muzodo keep your website up-to-date.
If your website is using PHP, the easiest way to display your upcoming events is with the PHP Website Widget. If you have questions or need help setting it up, contact us.
We suggest you proceed in the following way:
To get you going quickly, here are the basics:
<?php
include_once("./muzodo/MuzodoWebWidget.php");
?>
$apikey = "your group API key";
$muzodoWebWidget = new MuzodoWebWidget($apikey);
# Note: Private events have their address withheld by the API,
# so you can show those events on your website too.
$muzodoWebWidget->filterPrivateEvents(FALSE);
<!-------------------------NEW CODE START------------------------------------------->
<h2><a name="performances">Upcoming Performances</a></h2>
<table class="performance">
<thead>
<tr>
<th class="performance-date">Date</th>
<th class="performance-location"><u>Performance</u></th>
</tr>
</thead>
<tbody>
<? foreach ($muzodoWebWidget->getUpcomingEvents() as $key => $event) {
?>
<tr>
<td class="performance-date">
<? echo $event->FormattedDate . ", " .
$event->FormattedPlayTime . "-" .
$event->FormattedEndTime ?>
</td>
<td class="performance-location">
<?= $event->Name ?><br />
<?= $event->Address ?>
</td>
</tr>
<? } ?>
</tbody>
</table>
<?php
echo $muzodoWebWidget->getSchemas();
# See http://schema.org/ for details.
# A schema is a machine readable format that
# allows search engines to find details on your events.
?>
<!-------------------------NEW CODE END------------------------------------------->
Below are the filters available in the widget.
Function | Default Value |
---|---|
filterPrivateEvents | TRUE |
filterCancelledEvents | TRUE |
filterUnconfirmedEvents | TRUE |