Anonymous - 2003-06-29

OK, I really had to dig to get this working, but it was worth it.  POC doesn't work like the typical module that we spoiled PN users have come to expect.  Here's what I did:

- Unpack the contents of the archive into your /modules dir.  I renamed the folder from phpopenchat-3.0.0b2 to phpopenchat just so the link would look nicer.
- run the db.schema (using phpMyAdmin) (this fills the db tables)
- edit config.inc.php.  You need to set the database account settings, and PN_MODULE_NAME.  You may want to browse through the whole file, some of the other setting may or may not be worthwhile changing, depending on your predilections.
- go to postnuke, login as admin, go to admin > modules > regenerate, then install phpopenchat & the activate it.
- go to blocks, main menu, add the link to Chat.  link would be modules.php?op=modload&name=phpopenchat&file=index

click the link & chat...

Well, sort of...

I'm not sure if I did something wrong, but I had to set an include_path to "/modules/phpopenchat" to get the script to find config.inc.php.

to get to the POC admin, point your browser at "/modules/phpopenchat/admin/" - but you have to be logged in as admin.

-------------------------------------------------

So it works (quite nicely, btw - thanks for putting this out!) 

The only question I have is:

I haven't seen any demo sites for POC (well, I did see some, but not in English, so I didn't know what to do).  None of these were PostNuke sites.

Usually when something "runs as a PostNuke module", it will be incorporated into the body of the page via
modules.php?op=modload&name=ModuleName&file=index
So the "meat" of the module appears in the middle of the page in between your PostNuke header & footer & sideblocks.

with what I described above, when I go to :
http://www.mysite.com/modules.php?op=modload&name=phpopenchat&file=index
it redirects to:
http://www.mysite.com/modules/phpopenchat
and I'm running phpopenchat with no trace of my PostNuke theme.

This is OK, it is nice to have a working & full-featured chat script, but I'd still prefer that it be "branded" & look consistent with the rest of my site.

Again, I'm not sure that I didn't miss something or inadvertantly screw something up in config.inc.php or something - since I can't find another working PostNuke installation, so I'm asking: is this how it is supposed to be?  If so (actually, in either case), is there any documentation on how the templates work - there are a lot of files!  I'd like to at least get the theme colors changed to be more consistent with my site, and get a link back to the home page somewhere...

Thanks!