Omnimaga

Omnimaga => Discontinued => Our Projects => OmnomIRC Development => Topic started by: Juju on August 14, 2014, 03:15:08 pm

Title: OmnomIRC for ABXD and phpBB
Post by: Juju on August 14, 2014, 03:15:08 pm
This is something I'm working on, I installed myself an ABXD forum (http://ponyville.qc.to) and installed OmnomIRC on it and wrote a plugin for it. One of my friends have a phpBB forum as well and wishes to get a chatbox on it, so I'm gonna install OmnomIRC for him as well.

I just finished the ABXD plugin, you can find it here real soon, plus it have a few features not found on Omnimaga: https://github.com/juju2143/ABXD-plugin-OmnomIRC

(http://img.ourl.ca/disableomnomirc.png)

I'll keep you updated for the phpBB one, if you wanna help that would be great.
Title: Re: OmnomIRC for ABXD and phpBB
Post by: Juju on August 14, 2014, 10:04:45 pm
Update bump!

I installed OmnomIRC on a phpbb and wrote a checkLogin.php for it (no support for the admin paned tho so edit config.php manually) and also, I made it so both forums can chat on each other's channels, which can be pretty cool.

The only problem is with hardcoded network IDs, OmnomIRC having ID 1 by default and I had to change one of them to 4 and add checks for both IDs 1 and 4. That could be a feature that can be done in the future, interforum communication.
Title: Re: OmnomIRC for ABXD and phpBB
Post by: Eeems on August 15, 2014, 10:41:11 am
Looking good, make sure to submit pull requests for your changes so Sorunome can approve them :)
Title: Re: OmnomIRC for ABXD and phpBB
Post by: Sorunome on August 15, 2014, 10:42:55 am
How did you do the cross-site stuff? Did you just have different checkLogins per forum but the same iframe?
Title: Re: OmnomIRC for ABXD and phpBB
Post by: Eeems on August 15, 2014, 11:34:10 am
How did you do the cross-site stuff? Did you just have different checkLogins per forum but the same iframe?
According to the pull request I saw, that's what it looked like.
Title: Re: OmnomIRC for ABXD and phpBB
Post by: DJ Omnimaga on August 15, 2014, 12:38:54 pm
Awesome job juju and I like the cross-site feature :D
Title: Re: OmnomIRC for ABXD and phpBB
Post by: Juju on August 15, 2014, 03:32:46 pm
How did you do the cross-site stuff? Did you just have different checkLogins per forum but the same iframe?
It's 2 different iframes with their own config.php, one per forum, but they use the same database. They are set up so one of them sends online=4 to the database instead of online=1 (it's hardcoded so it was kind of a pain to set that up), so you can know from which site the user comes from, like how you know the users is from IRC or not.

We should probably write a patch to make it less hardcoded and add variables like which network ID this instance of OmnomIRC uses and which IDs are OmnomIRC.

Oh and Sorunome I sent you a pull request on Github so you can put the checkLogin.php for my forum on the OmnomIRC repo.
Title: Re: OmnomIRC for ABXD and phpBB
Post by: Sorunome on August 17, 2014, 09:01:55 pm
yeah, i started some thinking for generalizing oirc networking stuff :)