Page 1 of 1

Events Calandar

Posted: Fri Sep 25, 2009 12:12 pm
by MarkP
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?

Re: Events Calandar

Posted: Sat Sep 26, 2009 5:35 am
by Nullig
Have a look here:

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>
Hope that helps,
Nullig

Re: Events Calandar

Posted: Sat Sep 26, 2009 10:37 am
by MarkP
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.

Re: Events Calandar

Posted: Sat Sep 26, 2009 11:00 pm
by Nullig
If you want to enable the WYSIWYG for adding an event, you can edit the action.admin_addevent.php file and change:

Code: Select all

$smarty->assign('input_long', $this->CreateTextArea(false, $id, $long_desc, 'long_desc'));
to:

Code: Select all

$smarty->assign('input_long', $this->CreateTextArea(true, $id, $long_desc, 'long_desc'));
around line 72.

Nullig

WYSIWYG - Events Calandar

Posted: Sun Sep 27, 2009 12:15 am
by MarkP
;D EXCELLENT !!!

Thanks Nullig!