Events Calandar

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
MarkP
Forum Members
Forum Members
Posts: 11
Joined: Wed Dec 17, 2008 5:00 pm

Events Calandar

Post 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?
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm
Location: Comox Valley, BC

Re: Events Calandar

Post 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
MarkP
Forum Members
Forum Members
Posts: 11
Joined: Wed Dec 17, 2008 5:00 pm

Re: Events Calandar

Post 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.
Last edited by MarkP on Sat Sep 26, 2009 11:32 am, edited 1 time in total.
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm
Location: Comox Valley, BC

Re: Events Calandar

Post 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
MarkP
Forum Members
Forum Members
Posts: 11
Joined: Wed Dec 17, 2008 5:00 pm

WYSIWYG - Events Calandar

Post by MarkP »

;D EXCELLENT !!!

Thanks Nullig!
Locked

Return to “Modules/Add-Ons”