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


Go Back   Easy PHP Calendar > Pre-Sales Questions > General

General Get answers to your questions before purchasing the Easy PHP Calendar.

Closed Thread
 
Thread Tools Search this Thread Display Modes

Integration with existing site
Old 08-30-2005, 05:15 PM   #1
BenBarbour
Calendar User
 
BenBarbour is offline
Join Date: Aug 2005
Posts: 1
Default Integration with existing site

I have a site that is designed with the following logic:

1) User accesses a PHP page that compiles necessary data needed for the page.
2) an HTML template is then parsed and the data (HTML code) is placed in the appropriate locations and the page is displayed to the user.

I like this program's look/feel but unfortunately the way it is coded I'm not sure I can use it with my existing site (due to the extensive use of the "echo" function).

Is there a way, assuming I purchase this, to return the HTML code as a string variable as opposed to including a PHP script that writes directly?

Thanks...
 

Old 08-30-2005, 07:57 PM   #2
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

By using the ob_start() and ob_get_clean(), yes you can acheive this. PHP.net provides all the information you'd need, but I'll try to describe it in a somewhat consise manner.

This would be the generic way for every section that you want seperated on the template.
PHP Code:
ob_start();
//** Put required code here **//
$template_variable ob_get_clean(); 
And here's the sections that you could use as a "plug-and-play"

PHP Code:
ob_start();
$CSS=1; require("calendar/calendar.php");
$epc_css ob_get_clean(); 
PHP Code:
ob_start();
$OL=1; require("calendar/calendar.php");
$epc_ol ob_get_clean(); 
PHP Code:
ob_start();
require(
"calendar/calendar.php");
$epc_calendar ob_get_clean(); 
PHP Code:
ob_start();
$TOC=1;
require (
"calendar/calendar.php");
$epc_toc ob_get_clean(); 
PHP Code:
ob_start();
$LIST=1;
$DF "D - M d";
$template="monthly.php";
require (
"calendar/calendar.php");
$epc_list ob_get_clean(); 
And from there you can use epc_css, epc_ol, epc_calendar, epc_toc, and epc_list in your template. Note that you should still follow the proper implementation instructions (ie: have the epc_css included in the <head> section of your page, etc...).

Hope this helps.
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.

Last edited by ve9gra; 04-18-2006 at 07:31 AM.
 

Old 08-30-2005, 08:36 PM   #3
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

Very good explanation! This deserves a sticky!
__________________
-- Brian

Questions?

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

Old 10-12-2006, 08:40 AM   #4
meginc
Calendar User
 
meginc is offline
Join Date: Jun 2006
Posts: 12
Default

Hi - I am currently moving over to using ExpressionEngine (pMachine) for our website - I would really like to keep my EasyPHP calendar - does anyone know of a way I can integrate it with EE??
 

Old 10-13-2006, 08:37 AM   #5
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

It would seem that EE can let PHP be executed inside of its templates. That's all you should require to make EPC work.
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 

Old 01-15-2008, 09:47 PM   #6
moosenet
Calendar User
 
moosenet is offline
Join Date: Jan 2008
Posts: 6
Default

ok sooooooo... still trying to figure things out here.

I tried to "intergrate the calendar into my template, no luck.... any ideas??

http://www.passforkids.com/calendar.php

thats what i get.. dunno if i did it right, really doubt it..

help PLEASE.....
 

Old 01-15-2008, 11:08 PM   #7
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

You should really start a new thread instead of replying to one from 2005.

When you do, attach your calendar.php that you've created so we can see the source code.
__________________
-- 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
Integration into existing page with CSS chronisj General 6 10-02-2005 10:18 PM
Integration with existing secure site Trevor General 1 08-03-2005 10:11 AM
Using the calendar on a mirror site Squirrel General Support 7 11-18-2004 07:34 PM
Existing site uses ssi--how to integrate Steven General Support 3 07-15-2004 12:39 PM
Adding the calander to a existing php page cyberchick General Support 7 01-28-2004 04:11 AM



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