forum.coppermine-gallery.net

No Support => Modifications/Add-Ons/Hacks => Mods: Miscellaneous => Topic started by: Deus on June 28, 2009, 03:59:55 pm

Title: Chatbox in your gallery
Post by: Deus on June 28, 2009, 03:59:55 pm
I have a brilliant chatbox in my forum and gallery.
It's time I shared it with everyone.

The chat can be downloaded here...
http://sourceforge.net/project/showfiles.php?group_id=214758&package_id=258987&release_id=692521
As you can see, it integrates with multiple forums, just download the one you use. The last file listed for download is for any other forum. Integration is ideal, but is'nt absolutely required.
The originating page is www.blueimp.net/ajax

To view my installation its...
http://www.mess-hall.co.uk/forum
http://www.mess-hall.co.uk/gallery

If you want to chat and see it live, just hit enter, you dont need to register to use it.
It can also be ignored to, you dont have to hit enter, you dont have to type a message.
I've installed it using a simple anycontent.php file.

It's works in the forum and gallery as a single installation, ie, if a user on the forum types a message, then the gallery user will see it.
Brilliant way of keeping in touch, without traversing multiple windows.
It also integrates with the forum that is listed in the downloads section, and not just phpbb.

OK, time to learn how to install it, I'll use instructions for phpbb as thats my forum, and it's what I know.
---------------------------------------------------------------------------------------------------

download the appropriate version for your installation, or download this one...http://sourceforge.net/project/downloading.php?group_id=214758&filename=ajax_chat-0.8.3.zip&a=2782695 if you want chat box only and no integration.


Ok, so you've downloaded your version of chat, now you need to unzip and upload the contents to another folder, ie /chat
mines forum/chat yours can be what ever you need.
To install it on your forum, run /chat/install.php
Now I've used chat.html and called that in my index_body.html with <-- INCLUDE chat.html --> where you put it is upto you.
Chat html is an iframe that sets up the dimensions of the chatbox proper.

Contents of chat.html
Code: [Select]
   <div class="forabg">
             <div class="inner"><span class="corners-top"><span></span></span>
             <ul class="topiclist">
                <li class="header">
                   <dl class="icon">
                      <dt>Chatbox</dt>
                   </dl>
                </li>
             </ul>
             <ul class="topiclist forums">
                <li class="row">
                <dl>
                   <center><iframe src="http://yoururl.com/chat" framespacing="no" frameborder="no" scrolling="no" width="100%" height="500"></iframe></center>
                </dl>
             </li>          
             </ul>
             <span class="corners-bottom"><span></span></span></div>
          </div>




my anycontent.php contents
Code: [Select]
 ************************

  Copyright (c) 2003-2007 Coppermine Dev Team

  v1.1 originally written by Gregory DEMAR



  This program is free software; you can redistribute it and/or modify

  it under the terms of the GNU General Public License version 3

  as published by the Free Software Foundation.

  

  ********************************************

  Coppermine version: 1.4.14

  $Source$

  $Revision: 3966 $

  $Author: gaugau $

  $Date: 2007-09-17 08:53:13 +0200 (Mo, 17 Sep 2007) $

**********************************************/



/**

* Coppermine Photo Gallery 1.4.14 anycontent.php

*

* This file file gets included in the index.php if you set the option in admin

* can be used to display any content from any program, it is always to be edited

* according to tastes and then used

*

* @copyright 2002,2007 Gregory DEMAR, Coppermine Dev Team

* @license http://www.gnu.org/licenses/gpl.html GNU General Public License V3

* @package Coppermine

* @version $Id: anycontent.php 3966 2007-09-17 06:53:13Z gaugau $

*/





if (!defined('IN_COPPERMINE')) die('Not in Coppermine...');



starttable("100%", "ChatBox - Guests can hit Enter to Chat.");



?>

<tr><td class="tableb" ><center>



    <div class="forabg">

             <div class="inner"><span class="corners-top"><span></span></span>

             <ul class="topiclist">

                <li class="header">

                   <dl class="icon">

                      <dt>Chatbox</dt>

                   </dl>

                </li>

             </ul>

             <ul class="topiclist forums">

                <li class="row">

                <dl>

                   <center><iframe src="http://yoururl.com/chat" framespacing="no" frameborder="no" scrolling="no" width="100%" height="500px"></iframe></center>

                </dl>

             </li>          

             </ul>

             <span class="corners-bottom"><span></span></span></div>

          </div>

<?php

endtable
();



?>


<br>


And that really is about it, there's plenty of theme's to choose from, I like cobalt, but thats just me.
Oh, you also need to place the chatbox where you want it by calling the anycontent in you admin config, ALBUM LIST VIEW, The content of the main page, add the anycontent where you want it to be show, i've chosen the bottom of the page where I think it looks best.
Take a look on my site and see what you think.
This mod/addition requires no editing of the main coppermine files and is therefore upgrade friendly.



Now if only I could get a little help with this...
http://forum.coppermine-gallery.net/index.php/topic,59373.msg293729.html#msg293729

Title: Re: Chatbox in your gallery
Post by: Joerg-Andre on April 01, 2011, 01:18:48 pm
hallo, can you help me with ajax chat install?

mfg
Title: Re: Chatbox in your gallery
Post by: phill104 on April 01, 2011, 09:13:56 pm
This modification was written for the 1.4.x line for which support has now ceased. It wil need work to make it compatable with the 1.5.x line.