[ABD] AJAX Chat/Shoutbox MOD 2.0.0 Beta 8

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.

[ABD] AJAX Chat/Shoutbox MOD 2.0.0 Beta 8

Postby Handyman` » Mon May 21, 2007 11:18 pm

Classification: Add-on
phpBB Part: Forum
MOD Name: AJAX Chat
MOD Version: 2.0.0 Beta 8
Author: Handyman
MOD Description: This Mod Adds AJAX Chat to your forum.
Demo: AJAX Chat MOD Demo
Users can chat without ever needing to reload the page.

Works with:
  • phpBB 3.0.x

Features:
  • AJAX Technology
  • No page re-loading required
  • Ability for Admins to delete posts in the Chat
  • Shows who's online in the Chat
Language: English

Licence: GNU General Public License v2

Screenshots: in action, On main page
Installation Level: Easy
Installation Time: ~3 Minutes
Format: Image
Download File: Download

Roadmap
  • Add smilies button
  • Show smilies in chat room
  • Multiple Rooms (Progress = 25%)
  • Report Post/Users
  • Add Quote Button
  • Enable Author Delete
  • Private Rooms
  • Send Chat Requests
  • Reset Chat button
  • Avatar Thumbnails with Fullsize Rollovers.
  • Chat Logs

My Mod Roadmap: http://startrekguide.com/forum/f100-mod ... html#p8507

If you would like to be able to automatically remove all chat messages that can no longer be seen (if you don't want logs)
you can do this:
Handyman` wrote:open chat.php

Find
Code: Select all
$sql = 'SELECT * FROM ' . CHAT_TABLE . ' ORDER BY message_id DESC';
        $result = $db->sql_query_limit($sql, 25);
        $rows = $db->sql_fetchrowset($result);

        foreach ($rows as $row)
        {
            if ($count++ == 0)
            {
                $last_id = $row['message_id'];
            }
            $template->assign_block_vars('chatrow', array(
                'MESSAGE_ID'    => $row['message_id'],
                'USERNAME_FULL'    => clean_username(get_username_string('full', $row['user_id'], $row['username'], $row['user_colour'], $user->lang['GUEST'])),
                'MESSAGE'        => generate_text_for_display($row['message'], $row['bbcode_uid'], $row['bbcode_bitfield'], $row['bbcode_options']),
                'TIME'            => $user->format_date($row['time']),
                'CLASS'            => ($row['message_id'] % 2) ? 1 : 2,
            ));
        }
        $db->sql_freeresult($result);  


Replace with
Code: Select all
$sql = 'SELECT * FROM ' . CHAT_TABLE . ' ORDER BY message_id DESC';
        $result = $db->sql_query_limit($sql, 25);
        $rows = $db->sql_fetchrowset($result);
        $db->sql_freeresult($result);

        $delete_id = 0;
        foreach ($rows as $row)
        {
            if ($count++ == 0)
            {
                $last_id = $row['message_id'];
            }
            $template->assign_block_vars('chatrow', array(
                'MESSAGE_ID'    => $row['message_id'],
                'USERNAME_FULL'    => get_username_string('full', $row['user_id'], $row['username'], $row['user_colour'], $user->lang['GUEST']),
                'MESSAGE'        => generate_text_for_display($row['message'], $row['bbcode_uid'], $row['bbcode_bitfield'], $row['bbcode_options']),
                'TIME'            => $user->format_date($row['time']),
                'CLASS'            => ($row['message_id'] % 2) ? 1 : 2,
            ));
            $delete_id = $row['message_id'];
        }
        
        $sql 
= 'DELETE FROM ' . CHAT_TABLE . '
            WHERE message_id < '
 . $delete_id;
        $db->sql_query($sql);  


That will then delete all messages older than the last one displayed in the chat and will also only delete when you first view the chat.
Last edited by Sam on Fri Jul 30, 2010 4:01 am, edited 13 times in total.
Reason: Marked mod as abandoned, if the original poster wishes to continue this, please PM any MOD team member to have it unlocked.
http://startrekguide.com My Mod Queue || 1/16/10 Display Posts Anywhere 1.2.0 RC5, Cash MOD 1.0.0 b1, MOD Version Check, AJAX Chat, SEO MOD, AJAX QR, Photo Gallery
MOD Development Manager (version 0.2.0-dev with MODX Generator)
User avatar
Handyman`
QA Team
 
Posts: 1751
Joined: Thu Feb 03, 2005 8:44 pm

Re: [Beta] AJAX Chat/Shoutbox Mod

Postby geoffreak » Mon May 21, 2007 11:20 pm

Wow, I didn't know your username was GroovePlugs here on phpbb.com :lol:
Anime Revolution - Your new #1 source for All things anime and manga!
READ MY BLOG ALREADY!
geoffreak
Registered User
 
Posts: 591
Joined: Sat Feb 12, 2005 8:39 am

Re: [Beta] AJAX Chat/Shoutbox Mod

Postby igorw » Mon May 21, 2007 11:21 pm

Great work there, handyman!
Igor Wiedler | area51 | GitHub | trashbin | Formerly known as evil less than three
User avatar
igorw
Former Team Member
 
Posts: 8025
Joined: Fri Dec 16, 2005 12:23 pm
Location: {postrow.POSTER_FROM}
Name: Igor Wiedler

Re: [Beta] AJAX Chat/Shoutbox Mod

Postby jerx » Mon May 21, 2007 11:31 pm

Wow, looks really nice! May I suggest a feature? Ability to show user' s avatars in the shoutbox. It uses up much resources and bandwidth, but my users love that and I think it helps keeping the site active.

One question though, why do I see a horizontal scroll bar?
jerx
Registered User
 
Posts: 167
Joined: Fri Sep 02, 2005 4:27 am

Re: [Beta] AJAX Chat/Shoutbox Mod

Postby Handyman` » Mon May 21, 2007 11:35 pm

Yep… Handyman was taken here :P
Horizontal scroll bar… is that on my site or when you installed it on your site?
If it's on mine, which style are you viewing it in?
http://startrekguide.com My Mod Queue || 1/16/10 Display Posts Anywhere 1.2.0 RC5, Cash MOD 1.0.0 b1, MOD Version Check, AJAX Chat, SEO MOD, AJAX QR, Photo Gallery
MOD Development Manager (version 0.2.0-dev with MODX Generator)
User avatar
Handyman`
QA Team
 
Posts: 1751
Joined: Thu Feb 03, 2005 8:44 pm

Re: [Beta] AJAX Chat/Shoutbox Mod

Postby jerx » Mon May 21, 2007 11:44 pm

It is on your site. It is the sniper pro style and I am viewing your site as a guest. To clarify the problem. I don' t mean a horizontal scroll bar at the bottom of my browser window. The shoutbox has the scrollbar in it, where the shouts are displayed.
jerx
Registered User
 
Posts: 167
Joined: Fri Sep 02, 2005 4:27 am

Re: [Beta] AJAX Chat/Shoutbox Mod

Postby TimJBart » Mon May 21, 2007 11:46 pm

Is it possible to disable the memberlist on the right hand side? Looks good though 8-)
User avatar
TimJBart
Registered User
 
Posts: 279
Joined: Mon Jan 28, 2002 8:24 pm

Re: [Beta] AJAX Chat/Shoutbox Mod

Postby geoffreak » Tue May 22, 2007 12:35 am

TimJBart wrote:Is it possible to disable the memberlist on the right hand side? Looks good though 8-)

Just edit the file to display it how you wish ;)
Anime Revolution - Your new #1 source for All things anime and manga!
READ MY BLOG ALREADY!
geoffreak
Registered User
 
Posts: 591
Joined: Sat Feb 12, 2005 8:39 am

Re: [Beta] AJAX Chat/Shoutbox Mod

Postby 3Di » Tue May 22, 2007 12:45 am

Please provide a direct download link with no restriction. As per the Forum Rules. Thank you. ;)
User avatar
3Di
Registered User
 
Posts: 8557
Joined: Mon Apr 04, 2005 11:09 pm
Location: Italia - Germany
Name: Marco

Re: [Beta] AJAX Chat/Shoutbox Mod

Postby Handyman` » Tue May 22, 2007 1:44 am

3Di wrote:Please provide a direct download link with no restriction. As per the Forum Rules. Thank you. ;)

Thanks for the notice… link has been updated.

@Tim, you can change it however you like… it uses the style classes, so it would always match your style… if your style has them on the right, the chat will be on the right as well… but you can change it just by editing the stylesheet.

@jerx, check it out in subsilver and see if it's still there… append go to forum/chat.php?style=7
http://startrekguide.com My Mod Queue || 1/16/10 Display Posts Anywhere 1.2.0 RC5, Cash MOD 1.0.0 b1, MOD Version Check, AJAX Chat, SEO MOD, AJAX QR, Photo Gallery
MOD Development Manager (version 0.2.0-dev with MODX Generator)
User avatar
Handyman`
QA Team
 
Posts: 1751
Joined: Thu Feb 03, 2005 8:44 pm

Re: [Beta] AJAX Chat/Shoutbox Mod

Postby mariotendo » Tue May 22, 2007 2:01 am

Very nice mod!

I was wondering if it was possible to use this on an ordinary web site, because I would really like to use a Shoutbox that uses the same database as my forum (I'm sure a few other people would like that feature as well).
mariotendo
Registered User
 
Posts: 14
Joined: Thu Apr 12, 2007 7:04 pm

Re: [Beta] AJAX Chat/Shoutbox Mod

Postby Handyman` » Tue May 22, 2007 6:35 am

We just upgraded to RC1, so the demo is down for a bit until I re-install it tomorrow.

@mariotendo, you can't use it outside of phpbb because it uses the user->data to find your username and such and it also needs the template system… however, you can put it on any page you want that has the basic phpBB3 session and template info.

Very easy to do, just follow the instructions near the bottom of the install file (shows how to place it on the index page) follow those instructions for any page you want it on.
http://startrekguide.com My Mod Queue || 1/16/10 Display Posts Anywhere 1.2.0 RC5, Cash MOD 1.0.0 b1, MOD Version Check, AJAX Chat, SEO MOD, AJAX QR, Photo Gallery
MOD Development Manager (version 0.2.0-dev with MODX Generator)
User avatar
Handyman`
QA Team
 
Posts: 1751
Joined: Thu Feb 03, 2005 8:44 pm

Re: [Beta] AJAX Chat/Shoutbox Mod

Postby Arm@nd » Tue May 22, 2007 3:43 pm

How long are kept the shouts ?
Arm@nd
Registered User
 
Posts: 12
Joined: Mon Jan 10, 2005 5:10 pm

Re: [Beta] AJAX Chat/Shoutbox Mod

Postby jerx » Tue May 22, 2007 4:26 pm

GroovePlugs wrote:@jerx, check it out in subsilver and see if it's still there… append go to forum/chat.php?style=7


Looks the same - horizontal scrollbar. But there is a very long shout from yesterday (at 22.42).
jerx
Registered User
 
Posts: 167
Joined: Fri Sep 02, 2005 4:27 am

Re: [Beta] AJAX Chat/Shoutbox Mod

Postby SmashingPilot » Tue May 22, 2007 6:00 pm

Is there now way to have the chat available from the main forum index. Currently, for people to be able to access the chat, they need to type in the address location for the chat. I would love to have the chat available to post in below all my current forums.

Do you know what I mean?? Is that possible?


Thanks.
SmashingPilot
Registered User
 
Posts: 9
Joined: Wed May 09, 2007 7:09 pm

Next

Return to [3.0.x] Abandoned MODs

Who is online

Users browsing this forum: Exabot [Bot] and 5 guests