Easy PHP Calendar - We really take care of your dates!


Go Back   Easy PHP Calendar > General Discussion > Customizations (Themes / Templates)

Customizations (Themes / Templates) Help with customizing the themes and templates. Post your own custom themes for others to enjoy.

Closed Thread
 
Thread Tools Search this Thread Display Modes

add navigation to event page.
Old 05-17-2006, 05:42 AM   #1
chris_nl
Calendar User
 
chris_nl is offline
Join Date: Apr 2006
Posts: 18
Default add navigation to event page.

Hello,
On my website:
http://www.le-ri-crystal.nl/spiritueel/html/agenda.php

I want to ad two navigation buttons to go to the next month.
Just like when i use the admin, you see in the middle an field with
[today] [month] [year] [go] [<--] [-->]

these have a drop down function, can i ad this to my curent page?
 

Old 05-17-2006, 08:44 AM   #2
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

If you're using the List Mode alone, you can create your own navigation.

<?php
$yb=$yr;
$yf=$yr;
$mb=$mo-1;
if ($mb<1) {$mb=12; $yb=$yr-1;}
$mf=$mo+1;
if ($mf>12) {$mf=1; $yf=$yr+1;}

$cmo = gmdate("m",time()+($gmt*3600)+($dayLight*3600));
$cyr = gmdate("Y",time()+($gmt*3600)+($dayLight*3600));
?>

Then create your links for back, current and next and add:

backLink.php?mo=$mb&yr=$yb
nowLink.php?mo=$cmo&yr=$cyr
backLink.php?mo=$mf&yr=$yf
__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 

Old 05-17-2006, 01:52 PM   #3
chris_nl
Calendar User
 
chris_nl is offline
Join Date: Apr 2006
Posts: 18
Default

Hello Brian, I am glad that it is possible,
But i do not get it working with the php code.

The total code i used is:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Spirituele agenda</title>
<link rel="stylesheet" href="http://www.webdesign-cs.com/lericrys...aranormaal.css" type="text/css">
<?php $CSS=1; require("/home/lericr/domains/le-ri-crystal.nl/public_html/calendar/calendar.php"); ?>
</head>
<body>
<p class="style5">spirituele activiteiten van deze maand: <br />
</p>
<table width="308" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="144">&nbsp;</td>
<td width="56"></td>
</tr>
</table>
<?php
$LIST=1;
$showCat=3;
$DF = "M jS, Y (D)";
$template="modern.php";
require("/home/lericr/domains/le-ri-crystal.nl/public_html/calendar/calendar.php");?>
<?php $OL=1; require("/home/lericr/domains/le-ri-crystal.nl/public_html/calendar/calendar.php"); ?>
<?php
$yb=$yr;
$yf=$yr;
$mb=$mo-1;
if ($mb<1) {$mb=12; $yb=$yr-1;}
$mf=$mo+1;
if ($mf>12) {$mf=1; $yf=$yr+1;}
$cmo = gmdate("m",time()+($gmt*3600)+($dayLight*3600));
$cyr = gmdate("Y",time()+($gmt*3600)+($dayLight*3600));
?>
</body>
</html>
 

Old 05-17-2006, 05:39 PM   #4
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

Did you try this:

https://www.easyphpcalendar.com/supp...kbarticleid=20
__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 

navigation
Old 05-18-2006, 03:24 AM   #5
chris_nl
Calendar User
 
chris_nl is offline
Join Date: Apr 2006
Posts: 18
Default navigation

I got the drop down date working

But i still do not know how to create the navigation arrows <-- and -->

I tried your code, but it does not work.

http://www.le-ri-crystal.nl/calendar/demo2.php

<?php
$yb=$yr;
$yf=$yr;
$mb=$mo-1;
if ($mb<1) {$mb=12; $yb=$yr-1;}
$mf=$mo+1;
if ($mf>12) {$mf=1; $yf=$yr+1;}
$cmo = gmdate("m",time()+($gmt*3600)+($dayLight*3600));
$cyr = gmdate("Y",time()+($gmt*3600)+($dayLight*3600));
backLink.php?mo=$mb&yr=$yb
nowLink.php?mo=$cmo&yr=$cyr
backLink.php?mo=$mf&yr=$yf
?>

Also i wanted to make a drop down for the categories, but when i
looked it up in the section knowledge it said:
"Please see the instructions for using the included Filter plugin."
But i cannot find this instruction?

Does anyone know how to do this?


 

Old 05-18-2006, 05:02 PM   #6
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

This code should be out of the PHP section (afer the ?>)

backLink.php?mo=$mb&yr=$yb
nowLink.php?mo=$cmo&yr=$cyr
backLink.php?mo=$mf&yr=$yf

Each one should be a standard HTML link such as:

<a href='demo2.php?mo=<?php echo $mb ?>&yr=<?php echo $yb ?'>Back</a>
__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 

Old 05-19-2006, 09:03 AM   #7
chris_nl
Calendar User
 
chris_nl is offline
Join Date: Apr 2006
Posts: 18
Default

Hello Brian,
The code for the link, does not work.

<a href='demo2.php?mo=<?php echo $mb ?>&yr=<?php echo $yb ?'>Back</a>

Isn't there a sample page where on the left side you can see the kind of
options to ad on a calender page. And on the right side to see the php source?
 

Old 05-19-2006, 09:17 AM   #8
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

You appear to have moved all of the PHP code out of the PHP tags. Only the cide in post 6 should be out of the <?php ?> tags. Put the PHP tags back around:

<?php
$yb=$yr;
$yf=$yr;
$mb=$mo-1;
if ($mb<1) {$mb=12; $yb=$yr-1;}
$mf=$mo+1;
if ($mf>12) {$mf=1; $yf=$yr+1;}
$cmo = gmdate("m",time()+($gmt*3600)+($dayLight*3600));
$cyr = gmdate("Y",time()+($gmt*3600)+($dayLight*3600));
?>
__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 

Old 05-19-2006, 09:27 AM   #9
chris_nl
Calendar User
 
chris_nl is offline
Join Date: Apr 2006
Posts: 18
Default

That was correct, but that was because i was testing
other options to make it work. I have put it back now to it was, but then it did not work either. Am i really the only one that want's to ad for the first time navigation to a calendar page?

http://www.le-ri-crystal.nl/calendar/demo2.php
 

Old 05-19-2006, 09:31 AM   #10
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

Quote:
Originally Posted by chris_nl
Am i really the only one that want's to ad for the first time navigation to a calendar page?
AFAIK on the List Mode calendar alone, yes.


Your link looks incorrect:
<a href='demo2.php?mo=4&yr=2006Back</a>

Try this:

<a href='demo2.php?mo=4&yr=2006'>Back</a>
__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 

Old 05-19-2006, 09:46 AM   #11
chris_nl
Calendar User
 
chris_nl is offline
Join Date: Apr 2006
Posts: 18
Default

i missed a quote ' ..well it works, but do i need to fill in 2006?
I mean, can it not reconize with year is selected and then navigate in it?

Because this would mean that next year in 2007 i would have to replace the links to 2007.

So i am really the first one who uses this kind of navigation
 

Old 05-19-2006, 09:50 AM   #12
chris_nl
Calendar User
 
chris_nl is offline
Join Date: Apr 2006
Posts: 18
Default

Hey wait a minute, the first link you gave to me was:

<a href='demo2.php?mo=<?php echo $mb ?>&yr=<?php echo $yb ?'>Back</a>

That would be the one i guess, but this link did not work.

And you replaced it by:

<a href='demo2.php?mo=4&yr=2006'>Back</a>

but that is totally different? And the above link does not seem to work..
 

Old 05-25-2006, 07:07 AM   #13
chris_nl
Calendar User
 
chris_nl is offline
Join Date: Apr 2006
Posts: 18
Default

Does anyone know how to add navigation buttons, just like this page?

http://www.le-ri-crystal.nl/spiragenda.php

the buttons and drown down menu's on the right i would like to intergrate
in my list modes page:

http://www.le-ri-crystal.nl/spiritueel/html/agenda.php
 

Old 05-25-2006, 07:23 AM   #14
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

I can set it up for you for a [small] fee. Contact me using the link in my signature.
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 

Old 05-25-2006, 07:36 AM   #15
chris_nl
Calendar User
 
chris_nl is offline
Join Date: Apr 2006
Posts: 18
Default

thank, ve9gra, i could get some help with this.
I will contact you. Maybe you can help me out for a small fee
 
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Add Event Id to Event Listing islandwood General Support 3 09-18-2007 09:38 AM
Add Event w/o login in to event mgr rbrst10 General Support 3 01-10-2006 07:04 PM
Ability to add bookmark to Navigation URL Rolly General 4 09-16-2005 01:24 PM
how do I add an event in TOC mode? earz General 1 08-09-2005 11:46 AM



All times are GMT -4. The time now is 11:52 AM.


vBulletin skins developed by: eXtremepixels
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright 2009 NashTech, Inc.

| Home | Register | Today's Posts | Search | New Posts |