Some of you noticed that I added a new user-app-joomla.php script into CVS. This allows the webcalendar to authenticate using a Joomla/Mambo install. It also gets the user list from Joomla/Mambo.
Note, this does NOT install as a component. It is meant to be used as a stand-alone app or wrapped in an iframe. I am working on several modules such as upcoming events, latest events and a mini-cal. Once those are done I plan to write a searchbot as well. Other ideas are welcome.
Enjoy,
Jeff
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The front end installer does not have options to choose user-app files because additional configuration is required in the file. At the very least, you must:
1. Change "user.php" to "user-app-joomla.php" in your includes/settings.php file.
2. Set $app_path in user-app-joomla.php
-- Jeff
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Followed the thread here but did not see these issues addressed.
1. What directory path do you install the WC files - inside the main Joomla directory? Under Component or Module directory of Joomla? Will it work if I have WC in a calendar parallel to the Joomla root directory? Or does it not matter because I can specify the paths in the files mentioned?
2. When WC is wrapped in a Joomla menu, how do you create a link to an event entry directly through Joomla. All Joomla would know is the WC link but not the detailed event? For example, if I mention one of the events in a newsletter, how can I place a newsletter link to go thru the Joomla interface. (Fairly easy to do if accessing the direct WC directories.)
3. How do you show the RSS feed icon, which used to be on the URL for a normal WC install. Within a Joomla wrapper, the RSS feed icon does not show at all.
Thank. If there are other discussion thread, please redirect.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am getting this internal server error. I can't figure out what the problem is. Can you help please?
[16-Feb-2006 11:09:57] PHP Warning: file(/public_html/configuration.php/configuration.php): failed to open stream: No such file or directory in /home2/beltonen/public_html/calendar/outreach/includes/user-app-joomla.php on line 44
[16-Feb-2006 11:09:57] PHP Warning: Invalid argument supplied for foreach() in /home2/beltonen/public_html/calendar/outreach/includes/user-app-joomla.php on line 45
[16-Feb-2006 11:09:57] PHP Warning: Cannot modify header information - headers already sent by (output started at /home2/beltonen/public_html/calendar/outreach/includes/user-app-joomla.php:44) in /home2/beltonen/public_html/calendar/outreach/includes/user-app-joomla.php on line 326
[16-Feb-2006 11:10:43] PHP Warning: file(/public_html/configuration.php): failed to open stream: No such file or directory in /home2/beltonen/public_html/calendar/outreach/includes/user-app-joomla.php on line 44
[16-Feb-2006 11:10:43] PHP Warning: Invalid argument supplied for foreach() in /home2/beltonen/public_html/calendar/outreach/includes/user-app-joomla.php on line 45
[16-Feb-2006 11:10:43] PHP Warning: Cannot modify header information - headers already sent by (output started at /home2/beltonen/public_html/calendar/outreach/includes/user-app-joomla.php:44) in /home2/beltonen/public_html/calendar/outreach/includes/user-app-joomla.php on line 326
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
file(/public_html/configuration.php/configuration.php): failed to open stream
This tells me you probably did not set $app_path properly. $app_path should be the directory containing your Joomla configuration.php file. Do not put the filename itself in the variable.
-- Jeff
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
[Tue Feb 28 01:28:46 2006] [error] [client 69.138.42.198] mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary.
[Tue Feb 28 01:28:46 2006] [error] [client 69.138.42.198] mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary.
If your site works on other domains in the same server and not this one, that is a clear indiciation it's something wrong with the script installed on your site.
/********************************************/
whats going on?
thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
there are lots of errors in the script. everytime i download the new file from CVS, i get internal server error eithin a day. i wonder whats going on...
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You should do a CVS update to get the CVS code, as it will get all the files you need. There is no installation package.
Also, Joomla 1.0.8 changes the way session ids are named. My code will no longer work unless you change it to name the session properly. I updated my code today to work with version 1.0.8. The code is in CVS.
-- Jeff
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks. I had to include the line
include_once 'includes/access.php';
to the login-app.php file. Good or Bad is seems to be working good now with Joomla.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'll have to look into it. Honestly, I haven't had time to work on the integration since I created the original necessary scripts. Actually, I haven't had time to work on webcal at all since then. Stuff keeps popping up and Craig doesn't pay me enough ;)
-- Jeff
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Some of you noticed that I added a new user-app-joomla.php script into CVS. This allows the webcalendar to authenticate using a Joomla/Mambo install. It also gets the user list from Joomla/Mambo.
Note, this does NOT install as a component. It is meant to be used as a stand-alone app or wrapped in an iframe. I am working on several modules such as upcoming events, latest events and a mini-cal. Once those are done I plan to write a searchbot as well. Other ideas are welcome.
Enjoy,
Jeff
This is great. But how do I USE it? Do I replace the user.php file in include with this one?
Thanks for your help.
The front end installer does not have options to choose user-app files because additional configuration is required in the file. At the very least, you must:
1. Change "user.php" to "user-app-joomla.php" in your includes/settings.php file.
2. Set $app_path in user-app-joomla.php
-- Jeff
Hi Jeff,
Followed the thread here but did not see these issues addressed.
1. What directory path do you install the WC files - inside the main Joomla directory? Under Component or Module directory of Joomla? Will it work if I have WC in a calendar parallel to the Joomla root directory? Or does it not matter because I can specify the paths in the files mentioned?
2. When WC is wrapped in a Joomla menu, how do you create a link to an event entry directly through Joomla. All Joomla would know is the WC link but not the detailed event? For example, if I mention one of the events in a newsletter, how can I place a newsletter link to go thru the Joomla interface. (Fairly easy to do if accessing the direct WC directories.)
3. How do you show the RSS feed icon, which used to be on the URL for a normal WC install. Within a Joomla wrapper, the RSS feed icon does not show at all.
Thank. If there are other discussion thread, please redirect.
Thanks.
Works Great !!!
Hey,
I am getting this internal server error. I can't figure out what the problem is. Can you help please?
[16-Feb-2006 11:09:57] PHP Warning: file(/public_html/configuration.php/configuration.php): failed to open stream: No such file or directory in /home2/beltonen/public_html/calendar/outreach/includes/user-app-joomla.php on line 44
[16-Feb-2006 11:09:57] PHP Warning: Invalid argument supplied for foreach() in /home2/beltonen/public_html/calendar/outreach/includes/user-app-joomla.php on line 45
[16-Feb-2006 11:09:57] PHP Warning: Cannot modify header information - headers already sent by (output started at /home2/beltonen/public_html/calendar/outreach/includes/user-app-joomla.php:44) in /home2/beltonen/public_html/calendar/outreach/includes/user-app-joomla.php on line 326
[16-Feb-2006 11:10:43] PHP Warning: file(/public_html/configuration.php): failed to open stream: No such file or directory in /home2/beltonen/public_html/calendar/outreach/includes/user-app-joomla.php on line 44
[16-Feb-2006 11:10:43] PHP Warning: Invalid argument supplied for foreach() in /home2/beltonen/public_html/calendar/outreach/includes/user-app-joomla.php on line 45
[16-Feb-2006 11:10:43] PHP Warning: Cannot modify header information - headers already sent by (output started at /home2/beltonen/public_html/calendar/outreach/includes/user-app-joomla.php:44) in /home2/beltonen/public_html/calendar/outreach/includes/user-app-joomla.php on line 326
Look at your very first line:
file(/public_html/configuration.php/configuration.php): failed to open stream
This tells me you probably did not set $app_path properly. $app_path should be the directory containing your Joomla configuration.php file. Do not put the filename itself in the variable.
-- Jeff
I figured it out. THanks
This is the error I receive:
[Tue Feb 28 01:28:46 2006] [error] [client 69.138.42.198] mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary.
[Tue Feb 28 01:28:46 2006] [error] [client 69.138.42.198] mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary.
Most of the time when I see this it is due to a script misconfiguration. Not to mention this probably isn't the right URL the script is returning http://calendar.beltonene.net/outreach/login-app.php?return_path=
If your site works on other domains in the same server and not this one, that is a clear indiciation it's something wrong with the script installed on your site.
/********************************************/
whats going on?
thanks
there are lots of errors in the script. everytime i download the new file from CVS, i get internal server error eithin a day. i wonder whats going on...
I'm getting the following error :
Fatal error: Call to undefined function user_valid_login() in C:\wamp\www\WebCalendar\login.php on line 80
Effectively, the function "user_valid_login" is defined in other bridges but not in the Joomla one...
login.php should not be used with Joomla integration. It should automatically be using login-app.php.
-- Jeff
Looks like the code is still incompatible with Joomla 1.0.8. The script breaks.
Had to download the login-app.php file from CVS. not present in the installation.
:(
You should do a CVS update to get the CVS code, as it will get all the files you need. There is no installation package.
Also, Joomla 1.0.8 changes the way session ids are named. My code will no longer work unless you change it to name the session properly. I updated my code today to work with version 1.0.8. The code is in CVS.
-- Jeff
Well, I did everything mentioned here, but I still get fatal error
Fatal error: Call to undefined function: user_valid_login() in /home2/xxxxx/public_html/calendar/outreach/login.php on line 80
What do I do? I don't know how to do CVS update. What all files do I need to download? IS there an easy fix for this?
My calendar is integrated into the website.
Help Please...
Please read the entire thread before asking for help, especially my post from 2006-03-09.
-- Jeff
I still get this error.
Fatal error: Call to undefined function: user_valid_login() in /home2/xxxxxxx/public_html/calendar/outreach/login.php on line 80
I don't know how to upgrade using CVS. What files do I need to download? My calendar is integrated into my website.
THanks
Nevermind. It works. !!! Thanks
I am currently getting the following error on the login screen ( after I have made the changes to interface with joomla )...
"Fatal error: Call to undefined function: access_is_enabled() in /webcalendar/includes/functions.php on line 4883"
Any thoughts?
access_is_enabled is a WebCalendar 1.1 function and can be found in includes/access.php.
Can you find the function in that file?
Thanks. I had to include the line
include_once 'includes/access.php';
to the login-app.php file. Good or Bad is seems to be working good now with Joomla.
Works great, Thanks!
Maybe a dump question, how can I show a public calendar for unregistered users / guests?
Unregistered Joomla users/guests get this error:
"The page you are trying to access does not exist.
Please select a page from the main menu."
Thanks, Kai
I'll have to look into it. Honestly, I haven't had time to work on the integration since I created the original necessary scripts. Actually, I haven't had time to work on webcal at all since then. Stuff keeps popping up and Craig doesn't pay me enough ;)
-- Jeff
I looked at my test server and noted that when I wasn't logged in the public calendar comes up for me. Do you have a public calendar enabled?
-- Jeff
Yes, when I change the settings.php to "standalone" calendar, the public calendar is comming up.
Kai