PDA

View Full Version : How to modify basic calendar: remove navigation links


euc
02-01-2007, 05:16 PM
This question is more general than just for WordPress, but since that's what I'm using I will start here.

I want to display the calendar as shown WITHOUT the navigation.

http://www.mcbuzz.com/clients/eastunionchurch/easy-php-cal-navigation.gifhttp://www.mcbuzz.com/clients/eastunionchurch/easy-php-cal-no-nav.gif

Can someone tell me where to find the html / php that places the navigation at the bottom so that I can remove it from a custom version of calendar.php?

Thanks!

ve9gra
02-01-2007, 06:37 PM
Calendar.php doesn't have the code that creates the calendar... it calls another encrypted file that creates the output necessary.

As for what you want to do, we've already accounted for that and provide you two ways of accomplishing it.

1- If you want to remove it from all normal mode calendars, in the Setup Manager, under the Navigation section, just disable it.

2- If you only want one calendar to not have the navigation, just before the require, add $noNav="1";

euc
02-01-2007, 07:18 PM
That second option works perfect. Thanks!

lesliekirk
06-07-2007, 11:55 AM
2- If you only want one calendar to not have the navigation, just before the require, add $noNav="1";

Time for a very ignorant question - I assumed when you said "just before the require" you meant something like this:

<?php $OL="1"; $noNav="1"; require("calendar/calendar.php"); ?>

I tried that but it didn't work.

ve9gra
06-07-2007, 03:42 PM
You need it before the require for the calendar... not the one for the $OL code...