1
pmhoran
phpMyChat module for XOOPS???
  • 2005/7/22 10:40

  • pmhoran

  • Not too shy to talk

  • Posts: 115

  • Since: 2003/2/21


Has anyone adapted phpMyChat into a module for XOOPs??? Is anyone, with more smarts than me, willing to port it into XOOPS???

I like this chat better than all the others provided, at least it suits my needs the best. I can't believe I am the only one that feels this way.

I currently have it set up on one of my sites separate from XOOPS, but it would sure make it easier if site members were automatically logged in when they clicked on it.

I found a Forum post (via a search) dated in 2003 which gave a link to another post where someone had made a module or a hack ... but when I clicked on the link I got an error message that I was not authorized to view the topic.

Anyone willing to give it a try???

Thanks much
Peter

2
birdseed
Re: phpMyChat module for XOOPS???
  • 2005/7/22 11:37

  • birdseed

  • Just popping in

  • Posts: 59

  • Since: 2005/2/26


Hi

This is your lucky day:

http://homerecording.de/birdseed/chat.zip

phpmychat as a module....

but...

for xoops1 :(

greetings
birdseedmusic

ps.
We have a template-based xoops2 chat now. he event works under xoops2.2 but there are some dirty hacks wich need to be removed. There are some german words hardcoded. our chat programmer wants to refactor it for XOOPS 2.2 with oop and everything. but he has much to do so this can take some time.

3
pmhoran
Re: phpMyChat module for XOOPS???
  • 2005/7/22 13:39

  • pmhoran

  • Not too shy to talk

  • Posts: 115

  • Since: 2003/2/21


Be patient with an idiot for a moment please

So the link you provided goes to a download for a phpmychat that only works in XOOPS 1 ... and since I am using XOOPS 2.0.13 ... it won't work for me. Right?

I don't know much about PHP ... but ... if I can get a copy of the module that works under XOOPS 2.2 (should it work for my current version??) ... I don't mind going into each file and change the "hard code German" to "hard code English". I'd offer to change it so its adaptable to any language ... but I have no clue on how to do that.

Peter

4
birdseed
Re: phpMyChat module for XOOPS???
  • 2005/7/22 14:07

  • birdseed

  • Just popping in

  • Posts: 59

  • Since: 2005/2/26


Hi pmhoran

I never tested phpmychat for xoops2 but i don´t think it should be a problem. just try it.

I remember that the chat needs some tables:

CREATE TABLE `XOOPS_c_ban_users` (
`username` varchar(30) NOT NULL default '',
`latin1` tinyint(1) NOT NULL default '0',
`ip` varchar(16) NOT NULL default '',
`rooms` varchar(100) NOT NULL default '',
`ban_until` int(11) NOT NULL default '0'
) TYPE=MyISAM;

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

--
-- Tabellenstruktur für Tabelle `XOOPS_c_messages`
--

CREATE TABLE `XOOPS_c_messages` (
`type` tinyint(1) NOT NULL default '0',
`room` varchar(30) NOT NULL default '',
`username` varchar(30) NOT NULL default '',
`latin1` tinyint(1) NOT NULL default '0',
`m_time` int(11) NOT NULL default '0',
`address` varchar(30) NOT NULL default '',
`message` text NOT NULL
) TYPE=MyISAM;

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

--
-- Tabellenstruktur für Tabelle `XOOPS_c_reg_users`
--

CREATE TABLE `XOOPS_c_reg_users` (
`username` varchar(30) NOT NULL default '',
`latin1` tinyint(1) NOT NULL default '0',
`password` varchar(32) NOT NULL default '',
`firstname` varchar(64) NOT NULL default '',
`lastname` varchar(64) NOT NULL default '',
`country` varchar(64) NOT NULL default '',
`website` varchar(64) NOT NULL default '',
`email` varchar(64) NOT NULL default '',
`showemail` tinyint(1) NOT NULL default '0',
`perms` varchar(9) NOT NULL default '',
`rooms` varchar(128) NOT NULL default '',
`reg_time` int(11) NOT NULL default '0',
`ip` varchar(16) NOT NULL default '',
`gender` tinyint(1) NOT NULL default '0'
) TYPE=MyISAM;

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

--
-- Tabellenstruktur für Tabelle `XOOPS_c_users`
--

CREATE TABLE `XOOPS_c_users` (
`room` varchar(30) NOT NULL default '',
`username` varchar(30) NOT NULL default '',
`latin1` tinyint(1) NOT NULL default '0',
`u_time` int(11) NOT NULL default '0',
`status` char(1) NOT NULL default '',
`ip` varchar(16) NOT NULL default '',
UNIQUE KEY `room` (`room`,`username`)
) TYPE=MyISAM;


just replace te XOOPS_ with your own prefix.

about the other chat...i´ve contacted the dev ans suggested him to release a beta version.

greetings
birdseedmusic

5
pmhoran
Re: phpMyChat module for XOOPS???
  • 2005/7/22 14:16

  • pmhoran

  • Not too shy to talk

  • Posts: 115

  • Since: 2003/2/21


I will download the module and try it out. I am adventurous ... most times

As for the tables ...

I know a bit about PHP ... but I admit I know nothing about MySQL or the Admin interface for it. I will give it a try though ... see what happens

Thanks
Peter

6
pmhoran
Re: phpMyChat module for XOOPS???
  • 2005/7/22 17:20

  • pmhoran

  • Not too shy to talk

  • Posts: 115

  • Since: 2003/2/21


Oy Vey ... what a headache I've got.

Whatever I think I am doing right ... it must be wrong because I can't get the danged thing to work. Like I said before ... I am an idiot about most of this stuff.

Guess I want my XOOPS to be like my car. I get in, turn it on, put it in gear and it goes. When it doesn't turn on or doesn't work right ... I call the mechanic and tell him its broke and to come fix it.

Oh well ... hope your buddy comes up with that Beta module. I'd certainly be willing to "test drive" it

Take care ... and thanks
Peter

7
birdseed
Re: phpMyChat module for XOOPS???
  • 2005/7/22 17:35

  • birdseed

  • Just popping in

  • Posts: 59

  • Since: 2005/2/26


Hi

Yes i own an old Vespa 50N Special...same thing. ;)

Sorry I can´t spend much time on this. phpmychat ain´t really worth it. the code is too ugly to perform any further development.

if you could post any meaningful error message or something?

greetings
birdseedmusic

8
pmhoran
Re: phpMyChat module for XOOPS???
  • 2005/7/22 17:53

  • pmhoran

  • Not too shy to talk

  • Posts: 115

  • Since: 2003/2/21


I haven't actually given up yet ... totally ... on getting this thing to work. Just for now ... until my headache goes and then will try again.

I'm one of those guys that will keep trying everything wrong until he stumbles onto the right way to do it ... and then forget what I did that made it work

Do you think it would be difficult to modify a module made for PHP-Nuke to work on XOOPS? I haven't actually checked the PHP-Nuke site ... but the phpMyChat website (www.phpheaven.com) says they have a module.

Peter

9
birdseed
Re: phpMyChat module for XOOPS???
  • 2005/7/22 19:03

  • birdseed

  • Just popping in

  • Posts: 59

  • Since: 2005/2/26


Hi

Definitely more difficult than getting this module for xoops2 running.

greetings
mk

10
davidl2
Re: phpMyChat module for XOOPS???
  • 2006/1/20 12:39

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


Any update on this one at all?

Login

Who's Online

126 user(s) are online (94 user(s) are browsing Support Forums)


Members: 0


Guests: 126


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits