I'm trying to integrate PHPFreeChat with MediaWiki using Firebreather's extension (www.wikichat.org).
Note:- This uses PFC 1.0beta11.
Everything seems to work OK except that every time PFC is initialized, it is supposed to open the new channel (and only that channel) in the container. However, it opens the first (original) channel every time.
I have spent the entire weekend trying to research this and have concluded that the fix lies not with the MediaWiki extension but with PFC.
To see an example, just go to http://wikichat.org/Main_Page and click on the chat tab at the top of the page. It'll take you to the "Main Page" channel. Then go to http://wikichat.org/Sitelist and click on the chat tab at the top of the page. It'll take you again to the "Main Page" channel although it is supposed to take you to the "Sitelist" channel.
To view the calling program code, go to http://wikichat.org/WikiChat.php .
I've been working on this for 48 hours straight. Have narrowed it down to a few suspects:
1. function synchronizeWithCache() in pfcglobalconfig: The server_script_url is forever cached as the URL from the first time PFC is fired up.
2. Function pfcUserConfig(): I fixed synchronizeWithCache() above to ignore the cached value of server_script_url so the problem seems to be with the session in this function.
3. functions pfcContainer() and &Instance() in pfccontainer.class.php: It is possible that everytime it finds that the container exists with that channel open and just displays it, ignoring the new channel that is requested.
Would greatly appreciate any help!