• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: [Solved] Intergration of Calendar and FEU
PostPosted: Sat May 24, 2008 3:04 pm 
Offline
Forum Members
Forum Members
User avatar

Joined: Mon Apr 21, 2008 10:21 pm
Posts: 13
Location: London, UK
I was wondering whether it is possible to integrate the Calendar and FrontEndUser modules to display only the events which pertain to the user they are intended for. I require the calendar to take a custom value (name) and compare it to a value in ccuser (Name).

I know that this isn't actual code, but hopefully it gets my Machiavellian plan across.

I think the main problem is that it seems not to recognise the $ccuser() function. Any ideas?

i.e.

Code:
<td {if isset($day.class) }class="{$day.class}"{/if}>
{if isset($day.events.0) [color=red]&& $ccuser->property('Name') == event.fields.name}[/color]<a href="{$day.url}">{$key}</a>
{if $summaries == true}
<ul>
{foreach from=$day.events item=event}
<li><a href="{$event.url}">{$event.event_title}</a></li>
{/foreach}
</ul>
{/if}
{else}{$key}{/if}
</td>
{math assign=weekday equation="x + 1" x=$weekday}
{/foreach}


Last edited by sjmann on Mon May 26, 2008 1:03 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Intergration of Calendar and FEU
PostPosted: Sun May 25, 2008 10:24 am 
Offline
Beta Tester
Beta Tester
User avatar

Joined: Fri May 09, 2008 11:20 am
Posts: 695
Location: Lithuania
Did you set property 'Name' for FEU user?
It it is a case then place the following code at the top of your code

Code:
{if $ccuser->loggedin()}{/if}


i.e.

Code:
{if $ccuser->loggedin()}{/if}
<td {if isset($day.class) }class="{$day.class}"{/if}>
................



Top
 Profile  
 
 Post subject: Re: Intergration of Calendar and FEU
PostPosted: Sun May 25, 2008 1:14 pm 
Offline
Forum Members
Forum Members
User avatar

Joined: Mon Apr 21, 2008 10:21 pm
Posts: 13
Location: London, UK
Cheers for the help vilkis. I've played around a bit using the code you gave me, and come out with this, which works quite well, by editing the calendar template.

Code:
{foreach from=$day.events item=event}
{if $event.fields.name == $ccuser->property('name')}
<li><a href="{$event.url}">{$event.event_title}</a></li>
{/if}


Top
 Profile  
 
 Post subject: Re: Intergration of Calendar and FEU
PostPosted: Sun May 25, 2008 7:39 pm 
Offline
Administrator
Administrator
User avatar

Joined: Thu Mar 09, 2006 5:32 am
Posts: 11812
Location: Arizona
[solved] ?...

_________________
Extensions » Modules/Tags click the name of the module/tag or Help to the right to get its parameters.
Right click and view source is a great way to see what you have to work with.
Check ver. CMSMS, PHP, server OS, in System Information page.
Default content http://multiintech.com/defaultcontent/
People are Wonderful
Business is Great
Life is Terrific
Ever wonder what happened to the Album module? Well it is alive and well.
http://album.multiintech.com/
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
A2 Hosting