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

Problem with the navegation botton
Old 03-15-2009, 12:54 PM   #1
comsiconsa
Calendar User
 
comsiconsa is offline
Join Date: Mar 2009
Posts: 7
Default Problem with the navegation botton

I have integrate the calendar with no futher problem on my client webpage, but I have to disable the navegation button because it not working correctly, It it posible that the problem relate to some code on the calendar. I will try to explain. Since I'm from Puerto Rico, my english are some how dificult to me for write and talk, so please allow me to do my best in the explanation of my problem.

The page use tables, and i use one specific area to display all the information of the page, were the header are a flash header and once you load the index.php, you not have to call it back again because you only call the frame that are display on the main page. Some how the calendar on the navegation botton call index.html, not index.php, sencond did not move from one month to another, i guess this is because the main routine are reloaded every time you call the index.php. I create a index.html that will foward to index.php in one second, but this did not resolve the problem.

You could visist the site at http://www.iglesiaadventistarp.org

If you need the navegation botton active, let me know. I will actived as soon as posible.
 

Old 03-15-2009, 01:32 PM   #2
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

The calendar thinks it's in a page named iframe_0.php. When I click the navigation, the page reloads at this page, but the page refreshes and goes back to index.php

So, what is in the iframe file?
__________________
-- Brian

Questions?

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

Here the complete code of the page PART I
Old 03-15-2009, 02:55 PM   #3
comsiconsa
Calendar User
 
comsiconsa is offline
Join Date: Mar 2009
Posts: 7
Default Here the complete code of the page PART I

Quote:
Originally Posted by Brian View Post
The calendar thinks it's in a page named iframe_0.php. When I click the navigation, the page reloads at this page, but the page refreshes and goes back to index.php

So, what is in the iframe file?
Brian, the index.php are the main page, in the index.php are different frames, in one of the frame name cont, all other frame are display, the iframe_0.php, iframe_1.html and so on. Above i will show the index.php and iframe_0.php for you to evaluete it. I will mark all area where the calendar code are place with a ~ symbol so you could search over more easely.


INDEX.PHP
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<SCRIPT LANGUAGE="JavaScript">
<!-- Idea by: Nic Wolfe -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=1,men ubar=0,resizable=0,width=300,height=150,left = 570,top = 375');");
}
// End -->
</script>
<META NAME="KEYWORDS" CONTENT="iglesia adventista de rio piedras, sermones, oraciones, pedidos de oracion, jesus, Dios, pecado, perdon" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<META NAME="robots" CONTENT="noindex, nofollow" />
<title>Iglesia Adventista de Río Piedras - Una iglesia con raices y alas</title>
<link href="style.css" rel="stylesheet" type="text/css" />
~<?php $CSS=1; require("calendar/calendar.php"); ?>
</head>
<body style="background:url(images/px_top.gif) top repeat-x #A2B2C2 ">
~<?php $OL=1; require("calendar/calendar.php"); ?>




<table width="766" style="height:100% " border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td valign="top">

<table width="766" style="height:750px; " border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top">

<table width="766" style="height:100% " border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="58" valign="top"></td>
<td width="655" valign="top">

<table width="655" style="height:100% " border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="19" valign="top" style="background:url(images/bg.gif) bottom no-repeat "></td>
</tr>
<tr>
<td height="275" valign="top" style="background-image:url(images/px.gif) ">

<table width="655" style="height:100%; " border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" style="">
<div style="margin-left:15px; ">
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
width="625" height="275">
<param name="movie" value="flash/header.swf" />
<param name="quality" value="high" />
<param name="menu" value="false" />
<!--[if !IE]> <-->
<object data="flash/header.swf"
width="625" height="275" type="application/x-shockwave-flash">
<param name="quality" value="high">
<param name="menu" value="false">
<param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer">
FAIL (the browser should render some flash content, not this).
</object>
<!--> <![endif]-->
</object>
</div></td>
</tr>
</table>

</td>
</tr>
<tr>
<td height="364" valign="top" style="background-image:url(images/px.gif) ">
<iframe name="cont" width="1px" height="1px" src="iframe_0.php" style="visibility:hidden"></iframe>
<div id="main_div">
</div>

</td>
</tr>
<tr>
<td height="92" valign="top" style="background:url(images/bg_copy.gif) top no-repeat ">

<table width="655" style="height:100% " border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="200" valign="top" class="copy">
<div style="margin:15px 10px 0px 20px; "><div style="margin:0px 0px 0px 25px;">-----<a href="http://www.comsiconsa.com" target="_blank">ComsíConsá</a> 2008----- </div><br /><div style="margin:0px 0px 0px 35px;"><span><A HREF="javascriptopUp('privacidad.html')">Politic a de Privacidad</a></span></div></div>

</td>
<td width="455" valign="top" class="copy">
<div style="margin-top:22px; ">
<a href="iframe_0.php" target="cont">Inicio</a> <img src="images/spacer.gif" alt="" width="13" height="1" /> | <img src="images/spacer.gif" alt="" width="13" height="1" /> <a href="iframe_1.html" target="cont">¿Quiénes Somos? </a> <img src="images/spacer.gif" alt="" width="13" height="1" /> | <img src="images/spacer.gif" alt="" width="13" height="1" /> <a href="iframe_2.html" target="cont">Ministerios</a> <img src="images/spacer.gif" alt="" width="13" height="1" /> | <img src="images/spacer.gif" alt="" width="13" height="1" /> <a href="iframe_5.html" target="cont">Programación</a> <img src="images/spacer.gif" alt="" width="13" height="1" /> | <a href="iframe_4.html" target="cont">Contáctanos</a></div>
</td>
</tr>
</table>

</td>
</tr>
</table>


</td>
<td width="53" valign="top"></td>
</tr>
</table>

</td>
</tr>
</table>


</td>
</tr>
</table>


</body>
</html>
 

Here the complete code of the page PART II
Old 03-15-2009, 03:03 PM   #4
comsiconsa
Calendar User
 
comsiconsa is offline
Join Date: Mar 2009
Posts: 7
Default Here the complete code of the page PART II

Quote:
Originally Posted by Brian View Post
The calendar thinks it's in a page named iframe_0.php. When I click the navigation, the page reloads at this page, but the page refreshes and goes back to index.php

So, what is in the iframe file?
IFRAME_0.PHP

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Iglesia Adventista de Río Piedras - Una iglesia con raices y alas</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" language="javascript">
function load_content () {
if (parent.document.getElementById('main_div')) {
parent.document.getElementById('main_div').innerHT ML=document.getElementById('inner_frame').innerHTM L;
}
if (!parent.document.getElementById('main_div')) {
window.location=('index.html') ;
}
}
</script>
<style type="text/css">
<!--
.style3 {color: #476D85}
-->
</style>
~<?php $CSS=1; require("calendar/calendar.php"); ?>
</head>
<body onload="load_content()">
~<?php $OL=1; require("calendar/calendar.php"); ?>
<div id="inner_frame">
<table width="655" style="height:100% " border="0" cellspacing="0" cellpadding="0"><tr>
<td width="15" valign="top"></td><td width="198" valign="top"><table width="198" style="height:100% " border="0" cellspacing="0" cellpadding="0"><tr><td height="180" valign="top" style="background:url(images/bg1.gif) top no-repeat #EEEEEE "><table width="198" height="100%" border="0" cellpadding="0" cellspacing="0" style="height:100% ">
<tr><td height="1" valign="top">
<form style="margin:0; padding:0; " action="" id="form"> <div style="margin:5px 0px 0px 0px; ">
<div align="center"><img src="images/tx3.gif" alt="" /><br />
<strong><img src="images/spacer.gif" alt="" width="1" height="5" />ESCUCHANOS EN VIVO</strong><br />
</div></div></form></td></tr><tr><td height="115 valign="top"><table width="200" style="height:100% " border="0" cellspacing="0" cellpadding="0"><tr>
<td width="15" valign="top"></td>
<td width="100" valign="top" style="background-image:url(images/px2.gif) "></td>
<td width="198" valign="top">
<embed flashvars="autoplay=false&amp;brand=embed" width="200" height="180" allowfullscreen="true" allowscriptaccess="always" id="utv275727" name="utv_n_695716" src="http://www.ustream.tv/flash/live/295081" type="application/x-shockwave-flash" /></object><div style="margin:10px 0px 5px 0px; "><a href="http://st8.unored.com/iglesiaadven" style="padding:0px 0px 0px; width:200px; background:#FFFFFF; display:block; color:#000000; font-weight:bold; font-size:14px; text-decoration:underline; text-align:center;" target="_blank">Windows Media Player</a><div style="margin:10px 0px 5px 0px; "><a href="http://st8.unored.com/iglesiaadven"><img src="images/WMP1.jpg" alt="pdimg" style="margin-left:85px; " align="Middle" /></a><br><div align="center"><a href="http://www.ustream.tv/channel/riopiedras">Perdiste un programa, no importa, presiona aqui para verlo.</a></div></div>
</div></td></tr></table></td></tr><tr><td height="10" valign="top"><div align="center"><strong><u>PUBLICIDAD</u></strong></div></td>
</tr></table></td></tr><tr><td height="98" valign="top" style="background:url(images/bg2.gif) bottom no-repeat #E5E5E5 " class="black"><div style="margin:0px 0px 0px 10px; ">
<img src="images/spacer.gif" alt="" width="2" height="1" /><img src="Anuncios/anuncios.gif" alt="climg" /><br /><br />
<img src="images/spacer.gif" alt="" width="1" height="1" /><br /></div></td></tr></table></td>
<td width="7" valign="top"></td>
<td width="420" valign="top">
<table width="420" style="height:100% " border="0" cellspacing="0" cellpadding="0"><tr>
<td height="100" valign="top">
<table width="420" style="height:100% " border="0" cellspacing="0" cellpadding="0">
<tr><td width="419" valign="top" class="black"><div style="margin:10px 0px 10px 12px; ">
<img src="images/spacer.gif" alt="" width="1" height="16" /><strong>Bienvenidos a la Iglesia Adventista de Río Piedras en la Internet</strong><br />
<img src="images/spacer.gif" alt="" width="1" height="5" /><br />
Nos alegra que nos hayas accesado. Si estás enfermo, fuera de Puerto Rico, buscando una iglesia, o apartado de la iglesia, esperamos que aquí puedas encontrar Palabra de Dios para tu vida. Recuerda que, vía Internet o en persona, estamos simpre a tus órdenes. ¡Qué Dios te bendiga!.<br />
<img src="images/spacer.gif" alt="" width="1" height="14" /><br /></div></td></tr></table></td>
</tr><tr><td height="209" valign="top">
<table width="420" style="height:100% " border="0" cellspacing="0" cellpadding="0"><tr><td width="207" valign="top" style="background:url(images/bg3.gif) top no-repeat ">
<table width="207" style="height:100% " border="0" cellspacing="0" cellpadding="0"><tr>
<td height="38" valign="top">
<div style="margin:9px 0px 0px 12px; ">
<img src="images/tx1.gif" alt="" />
</div></td></tr><tr><td height="81" valign="top">
<table width="207" style="height:100% " border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="203" valign="top" class="news">
<div style="margin:0px 5px 5px 5px; ">
<p><img src="images/a1.gif" alt="" /><span><strong><a href="iframe_6.html" target="cont">CALENDARIO DE ACTIVIDADES</a></strong><br /></span>~<?php require("calendar/calendar.php"); ?><br />
<img src="images/spacer.gif" alt="" width="1" height="5" /><br /></p></div></td></tr></table></td></tr><tr>
<td height="14" valign="top" style="background:url(images/bg6.gif) top left no-repeat "></td></tr><tr><td height="76" valign="top">
<table width="207" style="height:100% " border="0" cellspacing="0" cellpadding="0"><tr>
<td width="203" valign="top" class="news">
<div style="margin:0px 5px 5px 5px; ">
<img src="images/a1.gif" alt="" /><strong><span class="style3"><u>ENLACES DIRECTOS</u></span></a></strong>
<img src="images/spacer.gif" alt="" width="1" height="8" /><br /><br />
<strong><a href="http://www.escuelasabatica.cl" target="_blank">Lección de Escuela Sabática</a></strong><br /><br />
<strong><a href="http://www.radiosol.org" target="_blank">Radio Sol</a></strong><br /><br />
<strong><a href="http://www.apadventista.org" target="_blank">Asociación Adventista del Este</a></strong><br /><br />
<strong><a href="http://www.opinionministerial.com" target="_blank">Opinión Ministerial</a></strong><br /><br /><strong><a href="http://www.pmministries.com/" target="_blank">Ministerios PM</a></strong><br /><br />
<img src="images/spacer.gif" alt="" width="1" height="5" /><br /></div> </td>
<td width="1" valign="top">
</td></tr></table></td></tr></table></td>
<td width="6" valign="top"></td>
<td width="207" valign="top" style="background-image:url(images/px1.gif) ">
<table width="207" style="height:100%; background:url(images/bg4.gif) top no-repeat " border="0" cellspacing="0" cellpadding="0"><tr>
<td valign="top" style="background:url(images/bg5.gif) bottom no-repeat ">
<div style="margin:9px 5px 5px 5px; ">
<img src="images/tx2.gif" alt="" /><br />
<img src="images/spacer.gif" alt="" width="1" height="21" /><br />
La ayuda que necesitas puede estar al toque de un botón. Déjanos saber cómo podemos ayudarte seleccionando uno de los siguientes servicios:.<br /></div>
<div style="margin:9px 0px 0px 5px; ">
<img src="images/pic3.jpg" alt="pdimg" style="margin-right:5px; " align="right" />
<ul>
<li><a href="iframe_7.html" target="cont">Pedido de oración</a></li>
<li><a href="iframe_7.html" target="cont">Pedido de visita</a></li>
<li><a href="iframe_7.html" target="cont">Pedido de estudio</a></li>
<li><a href="iframe_7.html" target="cont">Ayuda de emergencia (ADRA)</a></li>
<li><a href="iframe_7.html" target="cont">Enviar mis diezmos</a></li>
<li><a href="iframe_7.html" target="cont">Hacer donativos</a></li></ul></div>
</td></tr></table></td></tr></table></td></tr><tr><td height="0" valign="top">/td></tr>
</table></td><td width="15" valign="top"></td></tr>
</table></div></body></html>
 

Old 03-15-2009, 04:46 PM   #5
Brian
EPC Developer
 
Brian's Avatar
 
Brian is offline
Join Date: Jun 2001
Location: Florida, USA
Posts: 10,878
Default

We can fool the calendar to think it's being access at a different link by adding:

$thisFile="index.php";

Put this in the calendar code file before the last calendar "require".

However, this would produce this link:

http://www.iglesiaadventistarp.org/i...p?mo=4&yr=2009

It does not work. The way you've built your page, PHP variables are not making it back to the file that has the calendar in it. So it does not know to display a different month.

You may be able to fix this by changing your line:

<iframe name="cont" width="1px" height="1px" src="iframe_0.php"

to

<iframe name="cont" width="1px" height="1px" src="iframe_0.php?mo=<?php echo $mo; ?>&yr=<?php echo $yr; ?>"
__________________
-- Brian

Questions?

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

Old 03-16-2009, 06:13 PM   #6
comsiconsa
Calendar User
 
comsiconsa is offline
Join Date: Mar 2009
Posts: 7
Default

Quote:
Originally Posted by Brian View Post
We can fool the calendar to think it's being access at a different link by adding:

$thisFile="index.php";

Put this in the calendar code file before the last calendar "require".

However, this would produce this link:

http://www.iglesiaadventistarp.org/i...p?mo=4&yr=2009

It does not work. The way you've built your page, PHP variables are not making it back to the file that has the calendar in it. So it does not know to display a different month.

You may be able to fix this by changing your line:

<iframe name="cont" width="1px" height="1px" src="iframe_0.php"

to

<iframe name="cont" width="1px" height="1px" src="iframe_0.php?mo=<?php echo $mo; ?>&yr=<?php echo $yr; ?>"
I have made the change, but now the frame did not display anything at all.
 

Old 03-16-2009, 06:26 PM   #7
comsiconsa
Calendar User
 
comsiconsa is offline
Join Date: Mar 2009
Posts: 7
Default

Ok, I make it work. I have made and error, the problem is that it still make the same. The calendar keep calling the change in and improper way. I think that instead of call the index.php the calendar should call the iframe_0.php with all the other command.
 

Old 03-17-2009, 06:25 AM   #8
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

I think you have code in iframe_0.php that automatically redirects to index.html and then to index.php, which makes it impossible for the calendar to use the variables as they are not passed from one script to the next.
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 

Old 03-17-2009, 06:27 AM   #9
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

I don't know why this didn't come to me earlier.... try using the AJAX mode. It doesn't refresh the page, so it might work for you.
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 

Old 03-17-2009, 11:04 AM   #10
comsiconsa
Calendar User
 
comsiconsa is offline
Join Date: Mar 2009
Posts: 7
Default

Quote:
Originally Posted by ve9gra View Post
I don't know why this didn't come to me earlier.... try using the AJAX mode. It doesn't refresh the page, so it might work for you.
Ok, I will try that and let you know.

Remember, my problem now are with the navegation botton, because the calendar display very well. If you see I create a link with the option to display the calendar in a list mode to address the problem some how.
 
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
problem with accents and other characters GregClow General Support 9 09-29-2008 11:29 AM
French accent problem Monkeylays General Support 7 02-08-2008 09:51 AM
Install Problem SinJin Installation / Upgrade Questions 3 11-19-2006 09:41 PM
A problem with "add an event" button iraultza General 1 07-17-2006 11:49 AM
Click popup problem? Mindriot General Support 4 09-09-2005 02:44 PM



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