Easy PHP Calendar - We really take care of your dates!


Go Back   Easy PHP Calendar > Integration > Mambo/Joomla Integration

Mambo/Joomla Integration Information about integrating the calendar with the Mambo Content Management System.

Closed Thread
 
Thread Tools Search this Thread Display Modes

Joomla Menus disappearing
Old 01-29-2006, 03:28 PM   #1
newby
Calendar User
 
newby is offline
Join Date: Jan 2006
Posts: 6
Default Joomla Menus disappearing

Hi all,

I've been playing around with the Calendar for a couple of days now
- however I can't manage to integrate it correctly with Joomla.

This is my current setup:
Joomla! 1.0.7 Stable
ECP installed
kl_php installed

When I attempt to link a menu item to a content item containing the
following kl_php code:
{kl_php}require('modules/calendar/calendar.php');{/kl_php}

I get this error in my mainmenu

Warning: Invalid argument supplied for foreach() in /home/waterfor/
public_html/includes/frontend.php on line 64

You can see what I mean here, click the "Calendar" link on the left:
http://www.waterfordmtb.com/index.php.

So I'm not sure if this is a kl_php problem or a Joomla\Mambo issue?

Anybody got any ideas?

regards

Last edited by newby; 01-29-2006 at 03:32 PM.
 

Old 01-29-2006, 07:28 PM   #2
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

I really don't know where the issue lies but it seems to be in the menu. I've never needed to use the kl_php to get the calendar working. Have you tried without it?
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 

Joomla Menus disappearing
Old 01-30-2006, 04:02 AM   #3
newby
Calendar User
 
newby is offline
Join Date: Jan 2006
Posts: 6
Default Joomla Menus disappearing

Hi Gervais,

Thanks for the reply.

How did you integrate the Calendar with Joomla without using kl_php
(or Moslate - I tried this to, but the moslate code wasnt being executed). I don't like the idea of using wrappers.

I've read a few posts on this forum where folks have integrated the
calendar successfully using either kl_php or moslate. My only worry is
that I'm using the most recent version of Joomla and something may
have changed.

BTW, I've updated my "Calendar" link to now point to the following
content code:

{kl_php}
$CSS=1;
require('modules/calendar/calendar.php');
$OL=1;
require('modules/calendar/calendar.php');
$LIST=1;
$DF = "D - M d";
$template="modern.php";
require('modules/calendar/calendar.php');
{/kl_php}

I get the same error message within my menus. But if I remove the last line:
require('modules/calendar/calendar.php');

The menu is fine but the Calendar doesnt display. You ca see this by
clicking "Calendar 2".
http://www.waterfordmtb.com/index.php

Still not sure how to go about fixing this??

W.
 

Old 01-30-2006, 06:39 AM   #4
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

It seems that the problem is when Joomla is trying to initialize it's modules. It must come across the calendar and crap out because it's not a real Joomla module.

I haven't seen the calendar module being used on your site (the block), so I would assume it's safe to move the calendar installation?

I would suggest you move the calendar folder up one in the folder hiarchy... basically move from /*joomla-install*/modules/calendar to /*joomla-install*/calendar. As soon as it's moved, run the Setup Manager to update the paths, then fix the paths in your kl_php code. Hopefully then, Joomla won't puke as it shouldn't try to initialize the Calendar as a module.

Let me know how it goes and if you get into more problems.
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 

Old 01-30-2006, 09:33 AM   #5
newby
Calendar User
 
newby is offline
Join Date: Jan 2006
Posts: 6
Default

HI Gervais,

I've tried your suggestion, by doing the following:
1. Uninstalled the EasyPHPCalendar module
2. Moved the code to <root>\calendar\
3. Run the setup manager to recreate the paths
4. Used kl_php to point to the new locations:
i.e require('calendar/calendar.php');

But I still get the same error in my mainmenu

So now I re-installed the EasyPHPCalendar module within the modules
directory: You can see it here:
http://www.waterfordmtb.com/index.php
Notice that the "block" calendar is now visible.

My question is this - I want the block to appear within a content item,
but when I reference it via kl_php (within my content item), the menus still get messed up.

W.
 

Old 01-30-2006, 01:32 PM   #6
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

Is the calendar the only thing you use kl_php for? I'm wondering if that's not your problem (calendar seems to be installed properly as the block shows up fine).
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.
 
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
How to install on Joomla dash General 8 08-31-2006 09:37 PM
Success with Joomla 1.0.4 mcnmgr Mambo/Joomla Integration 3 11-24-2005 01:02 PM
Year Selection Start/End - for drop down menus abcddurham General 1 09-04-2005 11:41 AM



All times are GMT -4. The time now is 06:20 AM.


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 |