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


Go Back   Easy PHP Calendar > General Discussion > General Support

General Support Questions about using the Easy PHP Calendar. (Not installation or customizations)

Closed Thread
 
Thread Tools Search this Thread Display Modes

Old 02-22-2004, 07:41 PM   #1
ddenson
Calendar User
 
ddenson's Avatar
 
ddenson is offline
Join Date: Feb 2004
Posts: 10
Default

I'm trying to get the current month link at the bottom of the page to work. The forward and backward links work just fine.

But I'm trying to get the current month button to work where I don't have to code in the different pages where I have the calendar embedded. I just want it to go back to the current month on what ever page the calendar is on.

Example if I have the calendar on a contest page and I look forward in the calendar a couple months all I have to do is hit the current month button and it will take me back to contest page. Same as if I put the calendar on the index page. I just don’t want to have to update the code for the link on every page that has the calendar.

Hopefully this make sense if not let me know and I will try to clarify.

Thanks again for the help

My Webpage


Here's the code to go back a month:
Code:
<?php echo "?mo=$mb&yr=$yb" ?>
Here's the code for the current month:
Code:
<?php echo "index.php" ?>
Here's the code to go forward a month:
Code:
<?php echo "?mo=$mf&yr=$yf" ?>
 

Old 02-22-2004, 09:27 PM   #2
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

Why reinvent the wheel??? This is a built in feature of v4.5... just turn it on in the config file...

but FYI only, you should't use the name of the file you're using... you should have <?php echo $PHP_SELF ?> instead of the filename so that it brings you to whichever page you're on
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 

Old 02-22-2004, 10:19 PM   #3
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

Quote:
Originally posted by ve9gra@Feb 22 2004, 09:27 PM
Why reinvent the wheel??? This is a built in feature of v4.5... just turn it on in the config file...

but FYI only, you should't use the name of the file you're using... you should have <?php echo $PHP_SELF ?> instead of the filename so that it brings you to whichever page you're on
Actually, the smart navigation is only avaiable in Version 5. But <?php echo $PHP_SELF ?> may do what you need.
__________________
-- Brian

Questions?

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

Old 02-23-2004, 09:44 AM   #4
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

I guess I've been beta testing v5 for too long !!
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 

Old 02-23-2004, 11:39 AM   #5
ddenson
Calendar User
 
ddenson's Avatar
 
ddenson is offline
Join Date: Feb 2004
Posts: 10
Default

Thanks for the tip it worked.
 
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
Upgrade question baal32 General Support 2 08-31-2005 12:06 PM
full licence question BigG General Support 2 08-26-2005 09:28 AM
Question on repeating events hercomserv General 1 03-22-2005 01:20 PM
Copyright question MBreve General 2 03-16-2005 02:48 PM
Last Question davidL General 1 09-09-2004 08:53 PM



All times are GMT -4. The time now is 12:03 PM.


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 |