Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Webchat Integration  (Read 10937 times)

0 Members and 1 Guest are viewing this topic.

yancho

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Webchat Integration
« 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]
« Last Edit: May 03, 2006, 06:17:11 pm by TranzNDance »
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Webchat Integration
« Reply #1 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?
Logged

yancho

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Webchat Integration
« Reply #2 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?
« Last Edit: May 03, 2006, 01:26:58 am by yancho »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Webchat Integration
« Reply #3 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.
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Webchat Integration
« Reply #4 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:
Code: [Select]
<?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.
Logged

yancho

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Webchat Integration
« Reply #5 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?
« Last Edit: May 03, 2006, 02:53:58 pm by yancho »
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Webchat Integration
« Reply #6 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.
Logged

yancho

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Webchat Integration
« Reply #7 on: May 03, 2006, 05:11:31 pm »

I can't start new threads :|
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Webchat Integration
« Reply #8 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.
Logged

yancho

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Webchat Integration
« Reply #9 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
« Last Edit: May 03, 2006, 05:36:02 pm by yancho »
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Webchat Integration
« Reply #10 on: May 03, 2006, 06:16:33 pm »

Logged

yancho

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Webchat Integration
« Reply #11 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
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Webchat Integration
« Reply #12 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.
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 15 queries.