PDA

View Full Version : Navigation problem


barbara
05-19-2011, 12:38 PM
Hi,
I am trying to configure the demo version before going ahead to buy the software. It's all looking pretty good except for a navigation glitch that I can't fix.

I am integrating the calendar into Wordpress so I have a wordpress page "villagecalendar" that has php code embedded.

require ("/home/lochwinn/public_html/mysite/calendar/calendar.php");

$LIST=1; $listDays = 9; $DF = "D - M d"; $template="monthly.php"; require ("/home/mydomain/public_html/mysite/calendar/calendar.php");

I had to use the absolute path to get the calendar and the events list to display but they are displaying fine now. Problem is the navigation buttons. They link to a level up

http://www.mydomain.net/mysite/index.php?mo=6&yr=2011
instead of
http://www.mydomain.net/mysite/calendar/index?mo=6&yr=2011.

At the moment my document root is "/home/mydomain/public_html but I will change that to /home/mydomain/public_html/mysite when I go live and switch over the domain.

$serverPath="/home/mydomain/public_html/mysite/calendar/"
$urlPath="/mysite/calendar/"

Can someone point out the error of my ways? Is there a way to use relative paths instead of absolute? Is that the problem?

Thanks

Brian
05-19-2011, 08:35 PM
See if this thread helps:

https://www.easyphpcalendar.com/forums/showthread.php?t=8081

ve9gra
05-20-2011, 09:39 AM
You can also follow my tutorial on how to properly integrate the calendar in WP.

Part 1 (http://www.epctutorials.com/tutorials/how-to-integrate-the-calendar-in-wordpress-part-1/) - Part 2 (http://www.epctutorials.com/tutorials/how-to-integrate-the-calendar-in-wordpress-part-2/) - Part 3 (http://www.epctutorials.com/tutorials/how-to-integrate-the-calendar-in-wordpress-part-3/)

You'll need at the very least:
- the first half of Part 1
- Part 2

Also don't forget the WordPress forum in the Integration Forums (at the bottom of the list). It's full of useful info.

barbara
05-20-2011, 10:49 AM
Thanks guys. Part 1 was done but I was embedding the php in page code rather than creating a separate page template. It worked but was a bit cludgy and quirky with links.

I'll read through the wordpress integration forum (I had to scroll to notice that section on the forum... oops sorry!)

I have now been through your Parts 2 and 3 and I think I'm within touching distance of what I'm after. Need to tweak the style sheets a bit but I've gone ahead and bought the full version now and I'm sure I'll get something working over the weekend. Nothing weird and wonderful... small side calendar with events listed to the right and then a clickable sidebar calendar on the front page maybe. Wish me luck!!

I'm sure I'll read somewhere how to disable demo mode without losing the calendar!!!

If there's a wish list then - public event submissions which could be held for approval would be perfect.