Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8043 Posts in 1856 Topics- by 2099 Members - Latest Member: roi
Calendar Script CommunityCustomizationHacks and Mods (Moderators: scott, DanO, Marty)Hide one or more event fields unless logged in.
Pages: [1]   Go Down
Print
Author Topic: Hide one or more event fields unless logged in.  (Read 330 times)
0 Members and 1 Guest are viewing this topic.
footlight
Guest
« on: August 28, 2006, 11:04:00 PM »

In my calendar there are certain fields I don't want displayed to the general public when they are in detail view.  How should I modify the default template to achieve this?

Thanks in advance.

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #1 on: August 29, 2006, 02:09:00 AM »

You can read about how to separate individual fields in the Event Details view in the previous forum message "Break apart event title and description". To tell if someone is logged in or not, the following line should work:

if ($User->{username} ne "anonymous")

You'll have to figure out how they can be used together to achieve your intended results.

Dan O.

------------------

Logged
Pages: [1]   Go Up
Print
Jump to: