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

Adding Custom Info to Setup or Event Manager
Old 01-28-2007, 04:38 PM   #1
Aldebaran
Calendar User
 
Aldebaran is offline
Join Date: Jan 2007
Posts: 8
Default Adding Custom Info to Setup or Event Manager

Hi,
Your instructions say:
Add custom links/information to Setup Manager and/or the Event Manager:
Edit the headerCustom.inc.php file to include your own information into the Setup or Event Managers. This is a PHP file, so you can also add program code if needed.



I added a simple

echo "hello";
to this file and nothing happened. Is there somewhere you need to enable this headerCustom file?



Jill
 

Old 01-28-2007, 06:32 PM   #2
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,885
Default

You need to wrap PHP code with PHP tags:

PHP Code:
 <?php
echo "hello";
?>
__________________
-- Brian

Questions?

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

Yes, it's properly formatted PHP
Old 01-28-2007, 06:41 PM   #3
Aldebaran
Calendar User
 
Aldebaran is offline
Join Date: Jan 2007
Posts: 8
Default Yes, it's properly formatted PHP

Hi Brian,
Yes, it's inside PHP formatting. Is there anything else I need to do besides simply adding it to the end of that file?
Jill
 

Old 01-28-2007, 06:43 PM   #4
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,885
Default

Quote:
...end of that file?
There shouldn't be anything else in the file (unless you added it there).

You don't have to do anything to enable it.
__________________
-- Brian

Questions?

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

Old 01-28-2007, 06:43 PM   #5
Aldebaran
Calendar User
 
Aldebaran is offline
Join Date: Jan 2007
Posts: 8
Default

Here's the file:
<?php
// THE CODE BELOW WHEN INSERTED INTO THE calendar/events/headerCustom.inc.php FILE
// WILL DISPLAY THE CALENDAR STARTING AT THE CURRENT MONTH AND NOT THE PREVIOUS MONTH
if (!$_REQUEST['mo'] && !$mo) {
$mo = date("m");
$yr = date("Y");
$mo++;
if ($mo>12) {
$mo=1;
$yr++;
}
$_REQUEST['mo'] = $mo;
$_REQUEST['yr'] = $yr;
}

echo "<p><a href='../../webservices-applications.php'>Return to Aldebaran Website Design</a></p>" ;
echo "hello jill";
?>
 

Old 01-28-2007, 06:51 PM   #6
Aldebaran
Calendar User
 
Aldebaran is offline
Join Date: Jan 2007
Posts: 8
Default

And this file is inside the "Events" folder?
 

Old 01-28-2007, 06:54 PM   #7
Aldebaran
Calendar User
 
Aldebaran is offline
Join Date: Jan 2007
Posts: 8
Default

It's weird the file wasn't blank...I added the last two lines.
 

Old 01-29-2007, 09:10 AM   #8
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,885
Default

This should only display after you've logged in. Does it not? When you log in, is the first calendar (of the three) the current month?
__________________
-- Brian

Questions?

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

Old 01-29-2007, 12:33 PM   #9
Aldebaran
Calendar User
 
Aldebaran is offline
Join Date: Jan 2007
Posts: 8
Default

And this file is in the Events folder....?

The reason why I'm double checking is because the file was not empty. And yes, after I log in to Events Manager, the current month is the first of the three.

Jill
 

Old 01-29-2007, 12:49 PM   #10
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,885
Default

My fault!

I forgot that I added the code to that file in the latest release as of last week.
__________________
-- Brian

Questions?

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

Old 01-29-2007, 12:56 PM   #11
Aldebaran
Calendar User
 
Aldebaran is offline
Join Date: Jan 2007
Posts: 8
Default

:-) no problem.

Perhaps if I tell you what I'm trying to accomplish, you could suggest a better way to do this.

I've set up the calendar on my website so that my clients can test drive it before having me install on their websites. Right now if they go to Event Manager, and log in, there's no way to get back to my website without hitting the back button many times. I wanted to add the code for returning to my website site throughout the Event Manager, etc, so they can find their way back.
Jill
 

Old 01-29-2007, 01:23 PM   #12
Aldebaran
Calendar User
 
Aldebaran is offline
Join Date: Jan 2007
Posts: 8
Default

OK, I got it. There's one in the "events" folder for the events manager pages, and another one in the "setup" folder for the setup manager. I modified both and now have links back to my website.
Thank you very much for the quick responses...your customer support is wonderful!
Jill
 

Old 01-29-2007, 01:41 PM   #13
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,885
Default

Glad to help!
__________________
-- Brian

Questions?

Instructions: Version 6 - Version 7 | FAQ | Errors FAQ | Paths FAQ | Forums | Support
| Web Site Hosting
 
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
Custom Header for Setup and Event Manager mrtechnique General Support 6 10-06-2006 09:17 AM
Warning appearing on Event and Setup Manager pages rblocker General Support 3 04-28-2006 04:37 PM
Event Manager Setup pr0grammerMX General Support 1 02-27-2006 06:20 PM
repeating events not showing in event manager eshutter General Support 11 12-31-2005 11:53 AM
Login redirect to Event Manager vs. Setup Manager coppercup General Support 6 09-02-2005 04:37 PM



All times are GMT -4. The time now is 08:55 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 |