Firefox PHP

Module: External Authentication

Posted by Joe Curia 
Re: Module: External Authentication
May 13, 2010 01:49PM
Yes, that's correct - once the phorum code has run the global $user variable that Drupal relies on has been overwritten with the phorum user.

Thanks for the suggestion - I've tried it but it doesn't seem to have worked. I also implemented hook_end_output as that seemed to be the very last thing being called - that didn't work either unfortunately.

I'm not too familiar with the workings of phorum (getting there!) - would you expect the footer and/or hook_end_output to be the very last things called by phorum prior to sessions being saved etc?

Thanks,
Paul
Re: Module: External Authentication
May 13, 2010 02:15PM
Sorry if this seems like a one-sided conversation or that I am not promptly attacking your bug. My new daughter has taken over most of my free time for the last month and I am just now getting caught up with my work and personal life. I will soon be moving on to my hobby life, aka Phorum coding, and will be looking into this bug hopefully before or over this weekend. Thank you for bringing it, and some other issues, to my attention though, your bug hunting is much appreciated.


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
Re: Module: External Authentication
May 13, 2010 09:06PM
Hi Joe,

I wasn't having a dig at you (or anyone else for that matter). I appreciate all the work you've put in on this. Compared to any other forum I've looked at getting the integration to work has been very straightforward. Congrats on your daughter - I'm surprised you even have the energy to check for new posts!

To let me move forward with the conflicting $user variable I've unfortunately had to change control.php and pm.php for now (basically wrapping the whole file contents in a function call to force local scope on the variables). I'll be back on to it early next week to try and get a proper solution.

If there's anything I can do to help please let me know. For a starter would it help to send you my latest code base so you can see what I've changed?

Paul.
Re: Module: External Authentication
May 15, 2010 01:21PM
thats what the "portable" code is for, it actually wraps phorum into a function. you can find it in the directory with that very name.


Thomas Seifert
Phorum Development Team / Mysnip-Solutions.de
Custom Phorum and general software development
worry-free Phorum Hosting
Re: Module: External Authentication
May 18, 2010 06:48PM
Thanks Thomas - I wasn't aware of that functionality.

Would I be looking to replace the content of the standard index.php with a variation of the example phorum.php in order to avoid the conflict? The documentation seems to suggest it's usage is geared more towards embedding phorum? My phorum install is just linked to Drupal - it's not running using the embedded options available in the external authentication module.

Thanks,
Paul
Re: Module: External Authentication
May 18, 2010 08:34PM
Using the portable phorum.php has worked extremely well and appears to have solved all the problems. Thanks for the heads up.

Paul.
Re: Module: External Authentication
October 27, 2010 02:13PM
Joe,

Do you have any plans to update the mod for Drupal 7?

Sergej

------------------------------------------
^AU^ Assassins United
[www.assassinsunited.com]
------------------------------------------
Re: Module: External Authentication
October 27, 2010 02:45PM
The short answer is yes, the long answer is when church, children, and work allow me some free time to code :) The second beta for Drupal 7 was released last weekend. I will definitely take a look at the changes needed when their first release candidate is available, possibly before that. One thing I have been experimenting with in one of my own installations is incorporating the Phorum Control Center into Drupal's "My Account" page.


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
Re: Module: External Authentication
October 29, 2010 10:01PM
I hear ya, just finished grad school so my life is coming back again.
Drupal 7 is 5 tickets away from RC, if you want me to test let me know. I'd be glad to.

Sergej

------------------------------------------
^AU^ Assassins United
[www.assassinsunited.com]
------------------------------------------
Re: Module: External Authentication
December 20, 2010 12:05AM
Joe,

I have a working version of Drupal RC2 and Phorum. Want to use it for testing?

Sergej

------------------------------------------
^AU^ Assassins United
[www.assassinsunited.com]
------------------------------------------
Sorry, only registered users may post in this forum.

Click here to login