coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 bridging => Topic started by: yancho on May 02, 2006, 12:56:57 PM

Title: Webchat Integration
Post by: yancho on May 02, 2006, 12:56:57 PM
Hi I am trying to integrate a webchat script within the available options on the menu. This is the code of the webchat script : http://www.mepa-clan.info/webchat.php // script code : http://pastebin.com/693876


Can you please try to tell me how to integrate it? I am sure that this can be done since I followed a tutorial and managed to integrate ViPer Guestbook to Coppermine.

thanks alot

[removed invalid tag - Thu]
Title: Re: Webchat Integration
Post by: Tranz on May 02, 2006, 05:28:24 PM
I'm not sure what you mean. Do you just want to add a link to the gallery menu, or do you need help creating a page that integrates the chat script?
Title: Re: Webchat Integration
Post by: yancho on May 02, 2006, 10:48:56 PM
Integrate it to the site - so as to have same layout and get a link in the menu :)

PS - why was this thread flagged as invalid?
Title: Re: Webchat Integration
Post by: Joachim Müller on May 03, 2006, 06:10:59 AM
I flagged this thread as "invalid" because you request support for something unrelated to coppermine. Changing the visual appearance of a third-party app like a chat definitely is not related to coppermine.
Title: Re: Webchat Integration
Post by: Tranz on May 03, 2006, 06:18:51 AM
The chat code seems simple enough to put into a Coppermine templated page. Haven't tested, but create a new file for your chat file, like chat.php

In it, put:
<?php 
define
('IN_COPPERMINE'true);
require(
'include/init.inc.php');

pageheader('Web Chat');
{
chat code}
pagefooter(); 
?>


Replace {chat code} with the code from here: http://pastebin.com/693876, minus the redundant html stuff that is already in Coppermine, like head, html, body, etc.

For adding a link, check out the stickies in the themes board.

If you want to get fancy, you could even get the login info from Coppermine.

If you do fulfill this, it would be nice to share the completed code with the community.
Title: Re: Webchat Integration
Post by: yancho on May 03, 2006, 02:42:57 PM
Thanks alot for support :)

Integration worked perfectly - even login (didn't touch it and worked :D)

do u require me to paste my code?
Title: Re: Webchat Integration
Post by: Tranz on May 03, 2006, 05:07:58 PM
It's not a requirement, but would be a nice gesture to give back to the community that has given you Coppermine gallery for free. ;)

If you decide to share, you could create a new thread, which could be moved to the Mods/Hacks board.
Title: Re: Webchat Integration
Post by: yancho on May 03, 2006, 05:11:31 PM
I can't start new threads :|
Title: Re: Webchat Integration
Post by: Tranz on May 03, 2006, 05:17:24 PM
You can't start threads in the mods board as a regular user. You can start the thread in a support board that matches the topic of your thread, and a moderator will move the thread to the mods board.
Title: Re: Webchat Integration
Post by: yancho on May 03, 2006, 05:27:12 PM
ok thanks :)

Edit - can you please start the thread yourself since when I press POST it's not doing it :\ really don't know why .. paste all from pastebin.com : http://pastebin.com/696294
Title: Re: Webchat Integration
Post by: Tranz on May 03, 2006, 06:16:33 PM
Thanks. Here's the new thread: http://forum.coppermine-gallery.net/index.php?topic=31086.0
Title: Re: Webchat Integration
Post by: yancho on May 03, 2006, 07:01:25 PM
thanks alot .. it looks like i have a problem with "big" posts :| canot reply in long wordings hehe
Title: Re: Webchat Integration
Post by: Tranz on May 03, 2006, 10:04:20 PM
Some of us having trouble posting on different computers. There is a thread about it in the announcements board.