[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.
User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 17060
Joined: Thu Jan 06, 2005 1:30 pm
Location: Fishkill, NY
Name: David Colón
Contact:

Re: [ABD] AJAX Chat/Shoutbox MOD 2.0.0 Beta 8

Post by DavidIQ » Wed Aug 19, 2009 8:31 pm

Re-opening on Handyman's request.
Apply to become a Jr. Extension Validator
My extensions | In need of phpBB services? | Was I helpful today?
No unsolicited PMs unless you're planning on asking for paid help.

ihermit
Registered User
Posts: 251
Joined: Wed Mar 05, 2008 4:26 am

Re: [BETA] AJAX Chat/Shoutbox MOD 2.0.0 Beta 8

Post by ihermit » Wed Aug 19, 2009 11:05 pm

Interesting....

jimcarrel
Registered User
Posts: 671
Joined: Fri Jul 27, 2007 10:49 pm
Location: Oklahoma City, Oklahoma

Re: [BETA] AJAX Chat/Shoutbox MOD 2.0.0 Beta 8

Post by jimcarrel » Thu Aug 20, 2009 12:00 am

It most certainly is interesting. I await developments.
Grace--Getting what I don't deserve
Mercy--Not getting what I do deserve

User avatar
madmartyau
Registered User
Posts: 440
Joined: Sun Sep 12, 2004 12:42 pm
Location: Brisbane,Australia
Name: Marty
Contact:

Re: [BETA] AJAX Chat/Shoutbox MOD 2.0.0 Beta 8

Post by madmartyau » Thu Aug 20, 2009 8:02 am

I can feel an update coming on. Image
Call me Grumpy.

superj707
Registered User
Posts: 1136
Joined: Thu Feb 26, 2009 12:20 am

Re: [BETA] AJAX Chat/Shoutbox MOD 2.0.0 Beta 8

Post by superj707 » Thu Aug 20, 2009 8:12 am

madmartyau wrote:I can feel an update coming on. Image
here is one
http://www.wedevoy.com/web-programming/ ... e-t78.html

and another
http://www.demonmods.com/viewtopic.php? ... 1&start=70

User avatar
madmartyau
Registered User
Posts: 440
Joined: Sun Sep 12, 2004 12:42 pm
Location: Brisbane,Australia
Name: Marty
Contact:

Re: [BETA] AJAX Chat/Shoutbox MOD 2.0.0 Beta 8

Post by madmartyau » Thu Aug 20, 2009 8:50 am

superj707 wrote:
madmartyau wrote:I can feel an update coming on. Image
here is one
http://www.wedevoy.com/web-programming/ ... e-t78.html

and another
http://www.demonmods.com/viewtopic.php? ... 1&start=70
Yes I know but I would rather stick with this one thank you.
Call me Grumpy.

superj707
Registered User
Posts: 1136
Joined: Thu Feb 26, 2009 12:20 am

Re: [BETA] AJAX Chat/Shoutbox MOD 2.0.0 Beta 8

Post by superj707 » Thu Aug 20, 2009 5:53 pm

madmartyau wrote:
superj707 wrote:
madmartyau wrote:I can feel an update coming on. Image
here is one
http://www.wedevoy.com/web-programming/ ... e-t78.html

and another
http://www.demonmods.com/viewtopic.php? ... 1&start=70
Yes I know but I would rather stick with this one thank you.
No problem.. these upgrades are for people who want features like
  • sound with mute button
  • rooms
  • font color hold
  • avatars.
  • javascript errors fixed making IE compatible
  • button BBCODE options
  • view smilies
    etc
So it would make sense that you wouldn't want to upgrade the current chat if you don't want these features.

User avatar
phreakwars
Registered User
Posts: 239
Joined: Thu Feb 22, 2007 4:57 am
Location: Polaris Industries

Re: [BETA] AJAX Chat/Shoutbox MOD 2.0.0 Beta 8

Post by phreakwars » Thu Aug 20, 2009 6:37 pm

Glad this topic was reopened too. This is a great MOD with alot of potential. I've done quite a bit of hacking to the shoutbox code for my own board thanks to the tips on here.
.
.
MODS by me: Default Topic Icon

Jim0284
Registered User
Posts: 14
Joined: Fri Aug 21, 2009 1:21 am

Re: [BETA] AJAX Chat/Shoutbox MOD 2.0.0 Beta 8

Post by Jim0284 » Fri Aug 21, 2009 1:23 am

When I edit the chat.php file to change the refresh rate from 5 seconds to 2 seconds I get this error displayed in the actual chat frame:

phpBB Debug] PHP Notice: in file /includes/functions.php on line 3828: Cannot modify header information - headers already sent by (output started at /chat.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3830: Cannot modify header information - headers already sent by (output started at /chat.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3831: Cannot modify header information - headers already sent by (output started at /chat.php:1)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3832: Cannot modify header information - headers already sent by (output started at /chat.php:1)

Am I doing something wrong?

jimcarrel
Registered User
Posts: 671
Joined: Fri Jul 27, 2007 10:49 pm
Location: Oklahoma City, Oklahoma

Re: [BETA] AJAX Chat/Shoutbox MOD 2.0.0 Beta 8

Post by jimcarrel » Fri Aug 21, 2009 4:25 am

What are you editing the file in? Windows Notepad?
You need a text editor that can save as UTF8 without BOM.
Try Notepad++
It is excellent editor for HTML, PHP etc.

Either your editor cannot save right or you are somehow getting a blank space before the the beginning of the file <?php or after ?>
Grace--Getting what I don't deserve
Mercy--Not getting what I do deserve

Jim0284
Registered User
Posts: 14
Joined: Fri Aug 21, 2009 1:21 am

Re: [BETA] AJAX Chat/Shoutbox MOD 2.0.0 Beta 8

Post by Jim0284 » Fri Aug 21, 2009 1:58 pm

Another thing,

I have been able to modify the chatrows to look like this:

Image

But, now only admins or forum moderators can see the chat and not registered users.

I am at work and cannot post my chat_body.html here, but I can tell you that I made use of

Code: Select all

style="float:right;"
to move the timestamp and delete button to the right side of the chatrow. It would look something like this (I am not proficient at html and I just copied this from the uninstalled chat_body.html that I downloaded at work so the following may not be structured properly):

Code: Select all

<!-- BEGIN chatrow -->			
			<div id="p{chatrow.MESSAGE_ID}">				
				<table class="tablebg" cellpadding="6" cellspacing="0" width="100%">
                                       <tr class="row{chatrow.CLASS}">
					<td>							
	                                <!-- IF U_ACP or U_MCP --><a href="javascript:void({chatrow.MESSAGE_ID})" title="{L_DELETE_POST}" style="float:right;" onclick="delete_post('{chatrow.MESSAGE_ID}')"> {chatrow.TIME} &nbsp; <img src="{T_IMAGESET_LANG_PATH}/icon_post_delete.gif" /></a><!-- ENDIF --> <b class="postauthor">{chatrow.USERNAME_FULL}</b><span class="postbody">{chatrow.MESSAGE}</span>

</td>					
</tr>									
</table>			
</div>		
<!-- END chatrow -->---{LAST_ID}
I also placed this same string of between the next set of <!-- BEGIN chatrow --><!-- END chatrow --> that is towards the end.

Anyone have any idea what I did to make it so that only admins and moderators can see it and not registered users?

platinum_2007
Registered User
Posts: 1101
Joined: Tue Jul 22, 2008 2:47 am
Location: Nova Scotia, Canada

Re: [BETA] AJAX Chat/Shoutbox MOD 2.0.0 Beta 8

Post by platinum_2007 » Fri Aug 21, 2009 7:44 pm

You have the chat in <!-- IF U_ACP or U_MCP --> that means only people that can see the MCP and ACP link will be able to see the chat.

EDIT : sorry looks like its closed before the Message

Jim0284
Registered User
Posts: 14
Joined: Fri Aug 21, 2009 1:21 am

Re: [BETA] AJAX Chat/Shoutbox MOD 2.0.0 Beta 8

Post by Jim0284 » Fri Aug 21, 2009 10:01 pm

I figured it out and now my users properly see the chat. It was more human error than anything else.

A question though: I was able to move the delete button to the right side of the chatrow but I cannot move the date over there without making it part of the delete button string. Does anyone know what code I could use to move just the text itself to the right side without having it linked to the delete button?

Regards.

DenyBoy
Registered User
Posts: 25
Joined: Sat Oct 27, 2007 1:42 am

Re: [BETA] AJAX Chat/Shoutbox MOD 2.0.0 Beta 8

Post by DenyBoy » Sat Aug 22, 2009 2:13 pm

I found somewhere code witch limits rows to 25 rows (but i lost it). Without refreshing. So there is always only 25 rows.

If new row is entered last is removed. Always the same number of rows.

But now i cant find it. And i really need it. Any help.

dont tell me to use this "sql_query_limit($sql, 25"

changing the number 25 only affects number of chat posts showed when first entering chat or when manually refreshing the page. But while chating its still growing.

platinum_2007
Registered User
Posts: 1101
Joined: Tue Jul 22, 2008 2:47 am
Location: Nova Scotia, Canada

Re: [BETA] AJAX Chat/Shoutbox MOD 2.0.0 Beta 8

Post by platinum_2007 » Sat Aug 22, 2009 4:21 pm

DenyBoy wrote:I found somewhere code witch limits rows to 25 rows (but i lost it). Without refreshing. So there is always only 25 rows.

If new row is entered last is removed. Always the same number of rows.

But now i cant find it. And i really need it. Any help.

dont tell me to use this "sql_query_limit($sql, 25"

changing the number 25 only affects number of chat posts showed when first entering chat or when manually refreshing the page. But while chating its still growing.
Read the first post in this topic.

Locked

Return to “[3.0.x] Abandoned MODs”