PDA

View Full Version : Month not changing


godfathersoul
01-31-2010, 02:04 AM
I have successfully integrated the calendar into blogs before but this time around - using the most recent version of the calendar - it seems near impossible.

I have been through all of the forums as well as the tutorials a dozen times as well...

The main thing is:
in blog mode, it successfully lists the events for the current day.

Using the simple calendar seems to only present a calendar that starts with Feb (today is still Jan) and doesn't change when clicking the left or right arrows - although the permalink/URL does change. Weird. I've played with the WP permalinks and setting it to the default structure doesn't affect the calendar at all.

Ideally, I would like to show the calendar as well as the "List Mode" - for the current month that one is on and allow the user to scroll through the current events... You know, ideal list mode.

How can i get this to happen?

I have this in the header:
<?php
$CSS=1; require("calendar/calendar.php");
$thisFile="events-calendar"; ?>

and this in the body:

<?php require ("calendar/calendar.php"); ?>

<?php
$LIST=1;
$DF = "D - M d";
$template="monthly.php";
require ('calendar/calendar.php');
?>

Suggestions?

godfathersoul
01-31-2010, 03:16 AM
by the way, the calendar is here: http://templeofvisions.com/events-list

godfathersoul
01-31-2010, 03:22 AM
after poking around for a while longer here i think i found the solution here:

http://www.easyphpcalendar.com/forums/showthread.php?t=6904&highlight=navigation

godfathersoul
01-31-2010, 04:39 AM
alas however that was not quite a solution. Although the monthly calendar wiull respond to the navigation buttons, clicking on any particular date won;t do anything.... So it seems i'm back to the beginning. Any help would be great.

ve9gra
01-31-2010, 09:00 AM
The $thisFile should be right before the calendar... I suspect that the variable is getting lost before the calendar can use it. I don't think you should need to have your own navigation table.

Is it intentional to make the calendar start in Feb? If not, you likely have a variable called $mo getting set to 2.

As for the clicking on days, only the Blog mode does that. Since you're using the regular mode calendar, the behavior you're seeing is expected.

godfathersoul
02-01-2010, 03:02 PM
So, i changed it from list mode to blog mode... this is my code:

in the head:
<?php $thisFile="/events-list";
$CSS=1; require("calendar/calendar.php");
?>

in the body:
<?php
$EPCBLOG=2;
$template="blog.php";
$DF = "l, F j, Y";
require ("calendar/calendar.php");
?>

and

<?php $EPCBLOG=1; $thisFile="/events-list"; require ("calendar/calendar.php"); ?>

With that I can't seem to scroll through the months on the month-by-month calendar. However, although clicking on individual days for February does show those days, the other test events I put in don't show up on the calendar. For example - clicking on Feb. 18th will show you that event but the color-coded event doesn't show up on the calendar. is this because of licensing? I just purchased a full license so we'll see how that goes...

godfathersoul
02-01-2010, 03:38 PM
removing $thisFile="/events-list"; from

<?php $EPCBLOG=1; $thisFile="/events-list"; require ("calendar/calendar.php"); ?>

has gotten the calendar to change months but it is still not showing more than one event on the calendar - there are several events entered but only one shows. It is the same on the admin area - only one event shows up although I've entered several different events.

ve9gra
02-01-2010, 06:19 PM
That is because of a license key error... You're either using a different domain than what you registered, or your trial has expired. You can see it here http://templeofvisions.com/calendar/

I don't know why it is not displaying on your page, but FYI, if you have made modifications to hide the copyright notice and the key error, that is in breach of the license agreement.

godfathersoul
02-01-2010, 06:54 PM
ok, that makes sense. I submitted payment today for a license for the calendar. didn't realize i had the order # sent... that is now completed.

godfathersoul
02-01-2010, 07:24 PM
However,
I still end up not being able to scroll through months.
Using this:
<?php
$EPCBLOG=2;
$template="blog.php";
$DF = "l, F j, Y";
require ("calendar/calendar.php");
?>

<?php $EPCBLOG=1; require ("calendar/calendar.php"); ?>

...I get a calendar that I can click on and see the info for that day but can't go to the next month.

Using this:
<?php
$LIST=1;
$DF = "M jS, Y (D)";
$template="monthly.php";
require("calendar/calendar.php");
?>

<?php require("calendar/calendar.php"); ?>

I get a list of the months events but also can't scroll through the calendar.

In both cases, this is in the header:
<?php $thisFile="/events-list";
$CSS=1; require("calendar/calendar.php");
?>

ve9gra
02-01-2010, 09:42 PM
Works fine from here.

godfathersoul
02-02-2010, 12:43 AM
I see now that the problem only appears in Firefox both on Mac and PC. When I use Safari (Mac) the months will change. This is for both the blog and list modes.

You can see the blog mode here:
http://templeofvisions.com/events/

You can see the list mode here:
http://templeofvisions.com/events2/

Both use the most rudimentary version of entering the calendar code - copypasted from the docs. As it works in Safari but not Firefox then it would seem that the code is correct.

Can you offer a fix for this?

ve9gra
02-02-2010, 07:53 AM
Works fine here again.... Clear your Firefox cache.

Brian
02-02-2010, 10:32 AM
Tested in Firefox and IE and it's working for me.

godfathersoul
02-22-2010, 02:18 PM
So I am back working on this and, with cache cleared it works fine.
Just once.

Then it goes back to displaying March on loading and won't scroll through the months. If i have to clear my cache every time I want to use it then this is obviously broken and other users won't be able to successfully use it.

it does work fine in Safari but in Firefox on a Mac something is broken... any ideas?

Brian
02-22-2010, 03:16 PM
I just retested on two different computers with FF, IE and Chrome and I don't have any issues at all with navigation on your site.

It could be a plugin in FF that you're using that causing the issue?

godfathersoul
02-22-2010, 03:34 PM
Very interesting...
I disabled various add-ons and it allowed me to scroll through days for a moment but then stopped and would just land me on dates in March. When i click "Today" it shows me this. At that point, more or less, it no longer allows me to go forward or back any months.
http://tenthousandvisions.com/images/Picture27.jpg

Brian
02-22-2010, 03:40 PM
Try starting FF in Safe Mode.

Do you have anyone saying this is happening to them too?

If you view the demoBLOG.php file in the calendar directory, due it happen there too?

godfathersoul
02-22-2010, 03:53 PM
Restarting in SafeMode doesn't change how it works.

demoBlog.php works fine, as seen here:
http://templeofvisions.com/calendar/demoBlog.php

I've heard from others that it doesn't work on their PC in firefox.

Brian
02-22-2010, 04:28 PM
If the demoBlog.php is working, then something else on the page is causing this issue (not the calendar). It could some other code or possibly Javascript.

This is not an issue we see with the calendar itself, as you can see from the demo page, the calendar is functioning normally.

You should try removing any other "code" from your custom page and see if it eliminates the issue for you.

I still can't replicate this on any browser/computer...

ve9gra
02-22-2010, 08:01 PM
Looking at your live page and comparing with the screenshot... seems that you've removed the month header above the event list... Wonder your issue wasn't caused by that because I simply cannot replicate this issue... tried all combinations of WinXP, Mac, IE, Firefox, Safari.

godfathersoul
03-04-2010, 03:52 AM
Not really sure what to say... no matter what I do, it's still the same - i took out everything but the calendar code - leaving a pretty blank page - and it still refused to advance or move back a month and would only display the next month (at this point, April).

I also installed the most recent version of EPC and that didn't help. It does look fine in Safari but FFox is a no go. Frustrating.

Also, the month heading is there, just as it is in the screenshot. I may have taken it off in testing but it's back and didn't seem to change anything.

Brian
03-04-2010, 10:58 AM
Did you try starting FF in safe mode (it disables all add-ons and they will automatically be restarted the next time you open FF)?

Anyone else that sees this thread, please help test this and report if you have any issues.

SteveS
03-04-2010, 03:59 PM
Anyone else that sees this thread, please help test this and report if you have any issues.

Works fine (changes months) for me using FF 3.6. Blog mode events are displayed OK. No pop-ups are displayed.