• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ General Support (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

Trouble creating working PostNuke integration module

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
22 posts • Page 1 of 2 • 1, 2

Postby rgasch » Fri Jul 28, 2006 12:39 pm

Hi,

I've coded up an FreeChat integration module for the PostNuke CMS. The basic process works (ie: the chat is intialized properly, looks OK and the buttons (control buttons + smilies) work). I can type in my chat message but when I submit it, it never shows up in the chat. Callin up phpFreeChat directly results in the working demo page(s).

The code which creates the chat is quite simple:

Code: Select all
    require_once ('modules/pnFreeChat/includes/phpFreeChat/src/phpfreechat.class.php');
    $params = array();
    $params['serverid']    = md5(__FILE__); // calculate a unique id for this chat
    $params['title']       = 'Chat';
    $params['language']    = 'en_US';
    $params['nick']        = utf8_encode(pnUserGetVar('uname'));
    $params['frozen_nick'] = true;
    $chat = new phpFreeChat($params);

    $pnRender = new pnRender('pnFreeChat', false);
    $pnRender->assign ('chatJS', $chat->printJavascript(true));
    $pnRender->assign ('chatStyle', $chat->printStyle (true));
    $pnRender->assign ('chatBody', $chat->printChat(true));
    return $pnRender->fetch('pnfreechat_user_view.html');

The resulting HTML page has the phpFreeChat JS and Style files correctly added to the page header and like I said above, everything *looks* ok.

Does anybody have any ideas what could be causing this?

Greetings/Thanks
R
rgasch
Member
 
Posts: 18
Joined: Fri Jul 28, 2006 12:22 pm
Top

Postby phpfreechat » Fri Jul 28, 2006 10:59 pm

please could you post a link to a demo page ?
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby rgasch » Sun Jul 30, 2006 11:16 am

Certainly, Please take a look at
http://openstar.postnuke.com/projects/test/dev/
specifically
http://openstar.postnuke.com/projects/t ... pnFreeChat

As you'll be able to see, the chat module loads, it looks OK but if you try to enter a message, you'll get the "_Your must be connected to send a message_" error message at the bottom of the screen.

Interestingly enough, if you call up phpFreeChat directly (http://openstar.postnuke.com/projects/t ... pFreeChat/) it works.

So we're pretty close but likely missing one little thing somewhere. Any help/hints are much appreciated. If need be, I can send you the code.

Greetings/Thanks
R
rgasch
Member
 
Posts: 18
Joined: Fri Jul 28, 2006 12:22 pm
Top

Postby phpfreechat » Sun Jul 30, 2006 10:23 pm

Links are broken :(
"Not Found

The requested URL /projects/test/dev/modules/pnFreeChat/includes/phpFreeChat/ was not found on this server."
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby rgasch » Fri Aug 04, 2006 9:04 pm

Sorry, I must have messed something up. I just fixed up the site, the links above now work again.

Any hints as to what the issue is would be much appreciated.

Greetings/Thanks
R
rgasch
Member
 
Posts: 18
Joined: Fri Jul 28, 2006 12:22 pm
Top

Postby phpfreechat » Fri Aug 04, 2006 11:11 pm

I looked at your links but I have no idea why it doesn't work ...
Could you try with the 1.0-beta4, maybe it could fix something ?
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby rgasch » Sat Aug 05, 2006 11:26 am

OK, I've upgraded to Beta4 but my problem remains the same. The integrated chat doesn't work, calling it directly works.

Would there be any chance of you having time to look at this in a bit more detail if I made you a (as small as possible) reproducible case?

Greetings/Thanks
R
rgasch
Member
 
Posts: 18
Joined: Fri Jul 28, 2006 12:22 pm
Top

Postby phpfreechat » Sat Aug 05, 2006 1:24 pm

Humm first of all I think we can investiguate here, I've not lot of time these days.
I have other questions :
- Does your server use suphp or suexec apache module ?
- Does your server use php safe_mode ?
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby rgasch » Sun Aug 06, 2006 7:46 pm

> Does your server use suphp or suexec apache module ?
No, not that I'm aware of. It's a standard Linux/Apache/Mysql box ...

> Does your server use php safe_mode ?
No. safe_mode is off ...

Greetings
R
rgasch
Member
 
Posts: 18
Joined: Fri Jul 28, 2006 12:22 pm
Top

Postby rgasch » Sat Aug 12, 2006 2:50 pm

Hi,

any other ideas on this? I'd hate to just abandon it.

Like I said, if a reproducible case could help, let me know and I'll make you one.

Greetings/Thanks
R
rgasch
Member
 
Posts: 18
Joined: Fri Jul 28, 2006 12:22 pm
Top

Postby phpfreechat » Sat Aug 12, 2006 8:03 pm

Ok, sorry for the delay but I'm in holliday :)

I looked your problem in detail.
I analysed the asynchronous HTTP requests (ajax calls) done by phpfreechat and I didn't notice any problems.
However it's clear that nothing is shown and it's very amazing.

Maybe I can explain this behavior by a JS conficts.
So I suggest you to try phpfreechat postnuke integration without any garnishment : remove the header, the menu and all the included styles and postnucke javascriptes.

Then if it works, try to remove one by one these elements to see where is the conflicts...

Keep me informed.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby rgasch » Fri Aug 18, 2006 9:48 am

Maybe I can explain this behavior by a JS conficts.
So I suggest you to try phpfreechat postnuke integration without any garnishment : remove the header, the menu and all the included styles and postnucke javascriptes.

That was the winning tip. Turns out that the component at fault is AutoTheme, a theme extension used by a number of PHP CMS systems. Reverting to the native theme engine solved the problem.

I at this point have no idea what exactly is causing this, but I'm happy to have a workaround.

Thanks so much for your help!

Greetings
R
rgasch
Member
 
Posts: 18
Joined: Fri Jul 28, 2006 12:22 pm
Top

Postby phpfreechat » Fri Aug 18, 2006 10:30 am

Can you post some links about the "AutoTheme" ?
I'm really interested to find where is the conflict.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby rgasch » Fri Aug 18, 2006 1:49 pm

The free version can be downloaded here:
http://www.spidean.com/index.php?name=D ... oad&cid=12
It has versions for a bunch of CMSs but I use the PostNuke version ...

Greetings
R
rgasch
Member
 
Posts: 18
Joined: Fri Jul 28, 2006 12:22 pm
Top

Postby Jusuff » Sun Aug 20, 2006 12:26 am

rgasch: what stage are works above this PFC integration with PN?
Is it possible somewhere to get this module already?
If you are interested in it I could help, for example testing etc
Jusuff
New member
 
Posts: 4
Joined: Sat Aug 19, 2006 9:05 pm
Top

Next

Post a reply
22 posts • Page 1 of 2 • 1, 2

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 14 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
cron
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub