Joomla! 1.5 plugin for Phorum integration
Posted by Wilco Jansen
Re: Joomla! 1.5 plugin for Phorum integration February 06, 2009 04:20PM |
Registered: 17 years ago Posts: 35 |
February 06, 2009 04:24PM |
Registered: 17 years ago Posts: 98 |
So now back to the older question ... where is your joomla installation located?
Let's make sure we have the right answer for that.
------------------------
Sean Phelan
Sites By Sequoia - Web Marketing ... The Experts at Building Your Success Online
Let's make sure we have the right answer for that.
------------------------
Sean Phelan

Re: Joomla! 1.5 plugin for Phorum integration February 06, 2009 04:36PM |
Registered: 17 years ago Posts: 35 |
February 06, 2009 06:00PM |
Registered: 17 years ago Posts: 98 |
Physical Location is what we need. You need to find out the name of the directory on the web server.
------------------------
Sean Phelan
Sites By Sequoia - Web Marketing ... The Experts at Building Your Success Online
------------------------
Sean Phelan

Re: Joomla! 1.5 plugin for Phorum integration February 07, 2009 01:46PM |
Registered: 17 years ago Posts: 35 |
They told me the name is /home/username/public_html
But /home/username/public_html doesnt work.
Its really a pity.
I checked the absolute path with following php script
<?php
$DR=$_SERVER['DOCUMENT_ROOT'];
print $DR;
?>
I entered the absolute path /home/username/public_html/phorum into the joomla plugin. There it works like a charm :-) But thats not really what I need.
Edited 6 time(s). Last edit at 03/03/2009 06:16AM by didi2.
But /home/username/public_html doesnt work.
Its really a pity.
I checked the absolute path with following php script
<?php
$DR=$_SERVER['DOCUMENT_ROOT'];
print $DR;
?>
I entered the absolute path /home/username/public_html/phorum into the joomla plugin. There it works like a charm :-) But thats not really what I need.
Edited 6 time(s). Last edit at 03/03/2009 06:16AM by didi2.
Re: Joomla! 1.5 plugin for Phorum integration February 08, 2009 03:15PM |
Registered: 16 years ago Posts: 10 |
The software is written for Joomla! 1.5 and php 5.2+. If you try installing it on Joomla 1.0 it won't work, and as Joomla 1.0 is end of life this year I won't even bother writing anything for it (which is also pretty hard given the outdated codebase).
And yes, you need to enter the file patch where your Joomla installation can be found.
Regards, Wilco
And yes, you need to enter the file patch where your Joomla installation can be found.
Regards, Wilco
Re: Joomla! 1.5 plugin for Phorum integration February 08, 2009 04:48PM |
Registered: 17 years ago Posts: 35 |
Really many thanks for your replies!
I use phorum 5.2.7 and joomla 1.59 as I wrote in my first post.
The module is named "Joomla (version 1.0)" in the modules list in phorum.
My first problem was that I entered the URL instead the absolute path. This is solved. The joomla plugin to phorum works.
But when I enter the absolute path to joomla 1.59 into the module in phorum, it doesnt work.
Then I get the message: no settings for this module.
regards Dietmar
Edited 1 time(s). Last edit at 02/08/2009 04:49PM by diwolf.
I use phorum 5.2.7 and joomla 1.59 as I wrote in my first post.
The module is named "Joomla (version 1.0)" in the modules list in phorum.
My first problem was that I entered the URL instead the absolute path. This is solved. The joomla plugin to phorum works.
But when I enter the absolute path to joomla 1.59 into the module in phorum, it doesnt work.
Then I get the message: no settings for this module.
regards Dietmar
Edited 1 time(s). Last edit at 02/08/2009 04:49PM by diwolf.
Re: Joomla! 1.5 plugin for Phorum integration February 09, 2009 11:33AM |
Registered: 16 years ago Posts: 8 |
Hi Wilco,
I spoke to fast. I have run into one problem while testing, see earlier post.
There appears to be a problem with deleting users from joomla admin. It does not impact my site as we never delete users, just change their status. I found this when I was testing and wanted to pass it on to you.
Everything seems to work fine, creating a new user and changing user status, changing name, and changing password. These done on joomla carry to phorum and vice versa with no problems. However when I try and delete a user from joomla admin user manager, the delete is successful, but I get the following error message:
JUser::load: User does not exist
When I delete a user from Phorum admin the delete is also successful and there are no errors reported.
I am not sure where to look, I cannot find JUser in either the plugin or the module. The only place I can find JUser is in the User-Joomla! plugin, but I do not have the experience to tell if that is related to the error message when deleting a user from Joomla admin user manager.
I am using Joomla! 1.5.9 and Phorum 5.2.10.
I spoke to fast. I have run into one problem while testing, see earlier post.
There appears to be a problem with deleting users from joomla admin. It does not impact my site as we never delete users, just change their status. I found this when I was testing and wanted to pass it on to you.
Everything seems to work fine, creating a new user and changing user status, changing name, and changing password. These done on joomla carry to phorum and vice versa with no problems. However when I try and delete a user from joomla admin user manager, the delete is successful, but I get the following error message:
JUser::load: User does not exist
When I delete a user from Phorum admin the delete is also successful and there are no errors reported.
I am not sure where to look, I cannot find JUser in either the plugin or the module. The only place I can find JUser is in the User-Joomla! plugin, but I do not have the experience to tell if that is related to the error message when deleting a user from Joomla admin user manager.
I am using Joomla! 1.5.9 and Phorum 5.2.10.
Re: Joomla! 1.5 plugin for Phorum integration February 09, 2009 06:09PM |
Registered: 16 years ago Posts: 10 |
Hi,
As I implemented it on a site, I also ran into this issue. A new version is being build, and will be released this week. Should fix the problem, and as mentioned earlier on I will also implement an additional check if people enter the proper URL in the module properties.
Regards, Wilco
As I implemented it on a site, I also ran into this issue. A new version is being build, and will be released this week. Should fix the problem, and as mentioned earlier on I will also implement an additional check if people enter the proper URL in the module properties.
Regards, Wilco
February 09, 2009 06:31PM |
Moderator Registered: 18 years ago Posts: 1,301 |
I am currently working on expanding my External Authentication module for Drupal and I am also doing some other touch ups. One thing I have added (which will appear in the next version) is an attempt to autodetect the external application's server path. Here is the code, it may be helpful for autodetecting the Joomla! path (or at least help you down that road).
From the new developers guide:
And the code, which searches for the unique file, starting in the directory below the Phorum installation and searches recursively through all directories until it finds the file (and search that file for a particular string if provided):
Please note, this is code specifically designed for my module's plugin system so your implementation would probably differ quite a bit. I've got to run now so I can't break it down any further, but if you do want to use it and have any questions (or can offer optimizations for my own module :-) ) please let me know.
Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
From the new developers guide:
If you would like to allow the settings page to search for the external application's server path, you can set the $external_application_path_ids array in the settings_post.php file for your plugin. This array consists of two values: unique_file_name is a file which should be unique to your external application. Please note that if the file is in a sub-directory of the external application, you should include that sub-directory in this field (eg. "includes/misc/myfile.php"). unique_string is an optional string to search for in your unique file. If you are sure that your file is unique, you can simply leave this string empty.
And the code, which searches for the unique file, starting in the directory below the Phorum installation and searches recursively through all directories until it finds the file (and search that file for a particular string if provided):
Language: PHP// search for the external application';s path if not provided by the // user or if the external application has changed and if it is // enabled by the plugin if ((empty($PHORUM["phorum_mod_external_authentication"]["app_path"]) || $PHORUM["phorum_mod_external_authentication"]["mod_app_folder"] != $cur_plugin) && !empty($external_application_path_ids)) { $phorum_path = getcwd(); chdir(".."); // search recursively for the unique files $unique_files = rglob($external_application_path_ids["unique_file_name"]); if (count($unique_files) > 0) { // check for the unique string if necessary if (!empty($external_application_path_ids["unique_string"])) { foreach ($unique_files as $possible_file) { if (strpos(file_get_contents("./".$possible_file), $external_application_path_ids["unique_string"]) !== FALSE) { $app_path = getcwd()."/".str_replace("/".$external_application_path_ids["unique_file_name"], "", $possible_file); break; } } } else if (count($unique_files) == 1) { $app_path = getcwd()."/".str_replace("/".$external_application_path_ids["unique_file_name"], "", $unique_files[0]); } } if (!empty($app_path)) $PHORUM["phorum_mod_external_authentication"]["app_path"] = $app_path; chdir($phorum_path); } function rglob($pattern=';*';, $flags = 0, $path=';';) { $paths=glob($path.';*';, GLOB_MARK|GLOB_ONLYDIR|GLOB_NOSORT); $files=glob($path.$pattern, $flags); foreach ($paths as $path) { $files=array_merge($files,rglob($pattern, $flags, $path)); } return $files; }
Please note, this is code specifically designed for my module's plugin system so your implementation would probably differ quite a bit. I've got to run now so I can't break it down any further, but if you do want to use it and have any questions (or can offer optimizations for my own module :-) ) please let me know.
Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
Sorry, only registered users may post in this forum.