I have been doing alot of reading on the Forum about calendars and event calendars.
I have a test page at http://ssmarts.org/index.php?page=test I have been just playing with the Events Listing.
My question is how does one show the time of the event?
Does anyone have this on there site which I could see in use?
Events Calandar
Re: Events Calandar
Have a look here:
http://www.northsoundartisans.org/events.html
This is the Events Listing template code:
Hope that helps,
Nullig
http://www.northsoundartisans.org/events.html
This is the Events Listing template code:
Code: Select all
<dl>
{foreach from=$items item="item"}
<div class="eventslist">
<dt><span style="color: #99ccff;">{$item.short}</span></dt>
<dd{if $item.end < $smarty.now}style="color:gray"{/if}>
<p><span style="color: #99ccff;"><b>Date:</b></span> {$item.start|date_format:"%b %e, %Y"}
<span style="color: #99ccff;"><b>Time:</b></span> {$item.start|date_format:"%I:%M %p"} to {$item.end|date_format:"%I:%M %p"}<br /> <br />
{$item.long}</p>
</dd>
</div>
{/foreach}
</dl>
Nullig
Re: Events Calandar
Thanks Nullig,
This code I can understand and was very helpful!
I modified it slightly so each event doesn't have to be entered individually but rather I grouped by date.
However I do have a question about entering the Event Description - Why is it that the text editor is not visible when entering the information but yet visible when you go and edit the info? I would like to see the text editor when one enters the Event description - seems to make sense to me?
BTW - I like what you did with the gallery.
This code I can understand and was very helpful!
I modified it slightly so each event doesn't have to be entered individually but rather I grouped by date.
However I do have a question about entering the Event Description - Why is it that the text editor is not visible when entering the information but yet visible when you go and edit the info? I would like to see the text editor when one enters the Event description - seems to make sense to me?
BTW - I like what you did with the gallery.
Last edited by MarkP on Sat Sep 26, 2009 11:32 am, edited 1 time in total.
Re: Events Calandar
If you want to enable the WYSIWYG for adding an event, you can edit the action.admin_addevent.php file and change:
to:
around line 72.
Nullig
Code: Select all
$smarty->assign('input_long', $this->CreateTextArea(false, $id, $long_desc, 'long_desc'));
Code: Select all
$smarty->assign('input_long', $this->CreateTextArea(true, $id, $long_desc, 'long_desc'));
Nullig