|
AbleDesign
|
View previous topic :: View next topic |
Author |
Message |
mfranzen Lurker

Joined: 29 Mar 2004 Posts: 3 Location: Toronto, Canada
|
Posted: Sun Oct 17, 2004 11:19 pm Post subject: disabling month link in month_mini_include.php |
|
|
Dan,
I have been able to use the IFrame with both the full size calendar and also the mini month on the main page. I just recently put the mini month up on the page: http://www.mfranzen.ca/index.html but when you click on the month, it then opens up a new page with the full calendar in a small IFrame, which I don't want. I seen several sample sites that use the same set-up, and when the month is clicked, opens up to a custom calendar page.
Is there anyway, in the mini calendar, that I can have it open a new window/location, or disable the month link, and keep just the day links active?
I am not big on php, should I be using php with my site in this situation... what do you suggest?
Michael _________________ Quality of life depends on the time and effort you are willing to commit. |
|
Back to top |
|
 |
Dan Admin / Developer

Joined: 19 Feb 2001 Posts: 2057
|
Posted: Mon Oct 18, 2004 2:55 pm Post subject: |
|
|
It sounds like you'll want to make changes to the mini month calendar, which appropriately, is month_mini.php. Which line numbers need changing would depend somewhat on what version of MyCalendar you are running.
Also, I don't work with IFrames, so I may not be able to provide more than rough guesses as to how they'll interact.
Cheers,
Dan |
|
Back to top |
|
 |
mfranzen Lurker

Joined: 29 Mar 2004 Posts: 3 Location: Toronto, Canada
|
Posted: Tue Oct 19, 2004 3:21 am Post subject: |
|
|
Dan,
I am using the current version, v2.20.3
As far as IFrames are concerned, they have worked for me so far, but I will look into incorporating php later. For now it is quick and easy for me to do at the moment.
Also, the line(s) that you will be suggesting to change, will they also affect the full page calendar which has the 2 mini months at the top, or just the separate mini month?
Thanks Dan.
Michael _________________ Quality of life depends on the time and effort you are willing to commit. |
|
Back to top |
|
 |
Dan Admin / Developer

Joined: 19 Feb 2001 Posts: 2057
|
Posted: Sat Oct 30, 2004 3:00 am Post subject: |
|
|
The key when working with frames is to place a target within the hyperlinks, so as to point to the desired frame location. The problem is when switching between frames and no-frames applications, pointing to a non-existant frame will likely open in a new window. Two work arounds I can think of:
1) Make a copy of month_mini.php and call it something different, say month_mini_frames.php. Change each of the hyperlinks to contain the appropriate target.
2) Place some conditional code in your site templating to trigger a yes/no type flag in config.php (or month_mini.php, just as well). If the flag is set, add the target to each of the hyperlinks, via 'if' statements.
Cheers,
Dan |
|
Back to top |
|
 |
mfranzen Lurker

Joined: 29 Mar 2004 Posts: 3 Location: Toronto, Canada
|
Posted: Sun Nov 07, 2004 11:42 pm Post subject: |
|
|
With regards to trying step 1, I tried copying and renaming the month_mini.php to month_mini_frames.php and then pointed the frame to it, but got nothing. I guess I have to also change some other things... say maybe in the configuration or something.
Also, I am not sure how to change the links... I really only need to change or null the link of the month in the mini_calendar only. I am not sure if by infact changing that if it will affect how the mini calendars on the actual calendar page. If I could just change the month link of the small calendar on my main page that would be great. But with point number one, I am still not sure what I am to do, or where these links to change are (assuming they would be in the original month_mini.php or the newly copied and renamed month_mini_frames.php)?
I guess I just need more assistance on what will resolve my issue. Solution number 2 does not look as close to what I want to do as does solution number 1
Thanks in advance for your patience and direction with us customers who are trying new things with your calendar. _________________ Quality of life depends on the time and effort you are willing to commit. |
|
Back to top |
|
 |
Dan Admin / Developer

Joined: 19 Feb 2001 Posts: 2057
|
Posted: Wed Nov 10, 2004 10:17 am Post subject: |
|
|
If you're using month_mini_include.php to include the mini month calendar, then you need to update it to reflect the new file.
Code: | include("$calendar_path/month_mini.".$phpEX);
=>
include("$calendar_path/month_mini_frames.".$phpEX); |
Quote: | If I could just change the month link of the small calendar on my main page that would be great. |
Keep in mind that it is designed to handle a specific purpose(s), and changing it's functionality will have repercussions. It needs to be set to properly handle year, month, week, and day display navigation (month_mini.php is used for all of those), with the latter being either in a popup window or the main window.
It really is best to create a copy of the file for your specific purpose of usage in frames. Frames change things quite a bit.
Quote: | But with point number one, I am still not sure what I am to do, or where these links to change are (assuming they would be in the original month_mini.php or the newly copied and renamed month_mini_frames.php)? |
You would be changing htem in the new file; the original should be left unmodified for regular calendar functionality.
Look for wherever there's a "href" in month_mini.php, and that's where you'll need to add your frame targets. You can strip all the "controlParent" JavaScript stuff out of there if you want to for simplicity, as that's only for usage in the day display popup window.
Cheers,
Dan |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2002 phpBB Group
|