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 CommunityCustomizationCustomizing CalendarScript (Moderators: scott, DanO, Marty)Showing only "Search" in command list
Pages: [1]   Go Down
Print
Author Topic: Showing only "Search" in command list  (Read 396 times)
0 Members and 1 Guest are viewing this topic.
Terry
New Member
*

Karma: 0
Offline Offline

Posts: 0


« on: February 21, 2004, 11:13:00 AM »

I would like to show the "Search" command in the left menu bar on my calendar, but none of the other commands (Login, Add Event, etc.).

How could I modify the template to accomplish that?

Many thanks,
 Terry

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: February 21, 2004, 01:40:00 PM »

** How could I modify the template to accomplish that? **

Delete (or a better choice) just comment out the code on the default.html template file responsible for printing it.

Hint: Look at the code between the tags
<%-- COMMAND/VIEW OPTIONS --%> and <%-- /COMMAND/VIEW OPTIONS --%>

Alternately, you could duplicate the the Search link code, put it elsewhere and then disable the command options display from the template customization screen(?) in the administration section.

Dan O.

[This message has been edited by DanO (edited February 21, 2004).]

Logged
Terry
New Member
*

Karma: 0
Offline Offline

Posts: 0


« Reply #2 on: February 27, 2004, 12:48:00 AM »

Thank you, DanO --

This makes perfect sense; I just wasn't sure enough to try something on my own.

Veering off on other plug-ins --

I'm already using the MetaCalendar, Split Recurring Event, and Delete Old plug-ins.

Can I use the Move Event plug-in, too? Do they play well together?

Many thanks,
 Terry

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

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #3 on: February 27, 2004, 12:13:00 PM »

** I'm already using the MetaCalendar, Split Recurring Event, and Delete Old plug-ins. Can I use the Move Event plug-in, too? **

I don't know off hand but probably. Check the 'Debugging' notes listed after the plug-in's descriptions to see if any use the same 'Hooks' which would than create a conflict.  If not, they should work together without problems.

I do not think the Delete Old and Move Event plug-ins use any hooks at all.

Dan O.

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

Logged
Terry
New Member
*

Karma: 0
Offline Offline

Posts: 0


« Reply #4 on: February 28, 2004, 11:54:00 PM »

You're absolutely correct. All of these plug-ins work well together (MetaCalendar, Split Recurring Events, Delete Old, and now Move Event).

I love the customizability of CalendarScript!

Thanks for all your help --
 Terry

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

Logged
daybar
Guest
« Reply #5 on: May 31, 2005, 10:43:00 AM »

Okay, I apologize in advance for my newbie status...I too would like to delete the Login option from my calendars.

However, when I 'comment out' what seems to be the correct section of the default.html file, I get a processing error.

Exactly what is supposed to be commented out of the default.html file to prevent the Login option from appearing?

Thanks so much,
Stacy

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

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


WWW
« Reply #6 on: May 31, 2005, 12:44:00 PM »

** Exactly what is supposed to be commented out of the default.html file to prevent the Login option from appearing? **

The HTML code responsible for displaying the section you don't want displayed. Namely:

<TR><TD BGCOLOR="<%=$_COMMAND_OPTION_BGCOLOR%>"><a href="<%= $CGI_URL_QUERYSTRING %>template=login.html" CLASS="commandtext">Login</A></TD></TR>

Dan O.

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

Logged
daybar
Guest
« Reply #7 on: May 31, 2005, 01:24:00 PM »

DanO -- thanks so much! I was taking too much out. I'm in business now.

Thanks again,
Stacy

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