RSS

LuxCal Forum

The place for questions, suggestions and news about the LuxCal Event Calendar

User:   Password:   Remember Me?   
LuxCal Forum / General / Support / Launching one iframe / embed from another embed.
Posted:  30 Nov 2012 05:26   Last Edited By: Danwestlake
I have the full calendar embeded ok (my site uses php files with tpl files) in a page.

On my home page I have the mini calendar in an iframe. The problem is lcmini.php when you click on the month launches /luxcal/index.php but I want it to launch the page luxcalendar.php that I created.

I tried editing lcmini.php and replacing the index.php?cP=2&cD= section with www.londonareabusinessdirectory.com/labdcalendar.php but it seems to put the entry in twice.

This appears to be the line I need to change in lcmini.php.

Code:


echo '<h6 class="floatC"><a href="'.htmlentities($_SERVER['PHP_SELF']).'?oM=',$offM-1,'" title="'.$xx['vws_prev_month'].'">'.'&lt;&lt;'.'</a>&nbsp;&nbsp;&nbsp;<a href="index.php?cP=2&amp;cD=',$dateD1,'" title="'.$xx['vws_view_full'].'" target="_blank">',makeD($dateD1,3),'</a>&nbsp;&nbsp;&nbsp;<a href="'.htmlentities($_SERVER['PHP_SELF']).'?oM=',$offM+1,'" title="'.$xx['vws_next_month'].'">'.'&gt;&gt;'."</a></h6>n";


I need to know what to put in so that it loads. http://www.londonareabusinessdirectory.com/labdcalendar.php

Can anyone tell me what I need to put exactly?

Thanks
Dan
__________________
"Little Guy"
Some own motorcycles, others ride them.

Find great LuxCal examples by Schwartz at http://www.calendarforum.dk/index.html
Posted:  30 Nov 2012 11:06   Last Edited By: Roel B.
Hi Dan,
In the code above (index.php, line number 122) you should replace
<a href="index.php?cP=2&amp;cD=',$dateD1,'" title= . . .
by
<a href="http://www.londonareabusinessdirectory.com/labdcalendar.php" title= . . .
That should do the trick.

Notes: You probably know this already, but nevertheless:
- On your londonareabusinessdirectory calendar page the calendar is too wide. I would suggest to replace the pixels in width="1000" height="1350" in the iframe-tag by a percentage in the css.
- You could consider to use single sign on (SSO) so that users don't need to be registered twice. This however would require some coding, in particular if users can register themselves.

Roel
Posted:  30 Nov 2012 12:29
Hi Roel,

Thanks for the reply. I'll try the edit in lcmini.php to see if I can get it.

Thanks for the tip on the size in the iframe-tag, I figured on doing in the css for the site but wanted to see if I could get it to display in the first place. Part of the problem is I have a 24" monitor so that display size isn't an issue. I've got to remember there are still a lot of 20" monitors out there. I remember the day was 15" was huge. biggrin

I'd really like to integrate the login (way outside my abilities). The script I'm using is purchased and some of the code is encrypted while other parts are open for us to be able to customize.

I have posted a message on the forum for the script I use to see if I can get the login registration integrated and shared between it and LuxCal.

Dan
__________________
"Little Guy"
Some own motorcycles, others ride them.

Find great LuxCal examples by Schwartz at http://www.calendarforum.dk/index.html
Posted:  30 Nov 2012 13:22
I tried the change for the iframe on the one page it doesn't work. sad

This is what I have in my css file.

Code:


/* Luxcal Labdcalendar */
#luxcal { width:80%; height:800px; margin:20px; border-style:solid; border-width:1px; border-color:grey; }


This is what I have in my tpl / htm file.

Code:


<div id="luxcal">
<iframe id="luxCal" src="http://www.londonareabusinessdirectory.com/luxcalendar/?cP=2"></iframe>
</div>


You can see the border is the right size but the calendar is only like 354px x 154px not the 80% wide x 800px
http://www.londonareabusinessdirectory.com/luxcalendar/images/cal-display.png
__________________
"Little Guy"
Some own motorcycles, others ride them.

Find great LuxCal examples by Schwartz at http://www.calendarforum.dk/index.html
Posted:  30 Nov 2012 13:28
I just changed the iframe-tag and it works fine.

Code:


<iframe id="luxCal" src="http://www.londonareabusinessdirectory.com/luxcalendar/?cP=2"width="80%" height="1350"></iframe>


Now to tackle the lcmini.php.
__________________
"Little Guy"
Some own motorcycles, others ride them.

Find great LuxCal examples by Schwartz at http://www.calendarforum.dk/index.html
Posted:  30 Nov 2012 13:42
Thanks Roel, a simple search and replace and the mini calendar now loads the regular page. thump_up

I also posted your section in the documentation regarding single sign on (SSO) on the authors website for the other script I run to see if they will implement it (I sure hope they do).

I'm so excited about all the possible uses for your script. I'm about as excited as a little kid on Christmas morning. At my age of almost 56 I hope I don't have a heart attack.
__________________
"Little Guy"
Some own motorcycles, others ride them.

Find great LuxCal examples by Schwartz at http://www.calendarforum.dk/index.html