[ABD] phpbbchat 0.4.0 (facebook like chat)

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
stathisch
Registered User
Posts: 145
Joined: Fri Jul 24, 2009 11:33 am
Location: Greece

Re: [BETA] phpbbchat 0.3.0 (facebook like chat)

Post by stathisch »

Will have to look into that.

I've got fixes for IE8+ btw, soon there will be style fixes for IE7 too.
For IE8+:

open up js/phpbbchat.js
Find

Code: Select all

					'typing': 0,
Replace-with

Code: Select all

					'typing': 0
Find

Code: Select all

		var UsersChatting = ($.cookie( 'phpBBchat_chatting' )).split( '.' );
Replace-with

Code: Select all

		var UsersChatting = ( $.cookie( 'phpBBchat_chatting' ) == undefined ) ? '' : ($.cookie( 'phpBBchat_chatting' )).split( '.' );
Find

Code: Select all

						'unread': ( Unread[ item.USER_ID ] == undefined ) ? 0 : Unread[ item.USER_ID ],
Replace-with

Code: Select all

						'unread': ( Unread[ item.USER_ID ] == undefined ) ? 0 : Unread[ item.USER_ID ]

That's it.
User avatar
darkonia
Registered User
Posts: 1901
Joined: Tue May 13, 2008 1:10 pm
Location: Munich, Germany

Re: [BETA] phpbbchat 0.3.0 (facebook like chat)

Post by darkonia »

the performance must be better in the future, so the mod is sinfree on a big board.
MMOG-Heaven - Das Gaming Portal
Community bedeutet Gleichgesinnte finden - MMOG-Heaven ist Deine Community! Von Spielern für Spieler bietet Dir dieses Portal genau das, was ein Spieler braucht. Bleibe ständig informiert, finde die neuesten MMORPGs, oder suche die frischesten News aus der Welt des Online Gamings - dieses und vieles mehr erwartet Dich auf MMOG-Heaven.
User avatar
master1986
Registered User
Posts: 49
Joined: Wed Apr 30, 2008 9:17 am
Location: Italy

Re: [BETA] phpbbchat 0.3.0 (facebook like chat)

Post by master1986 »

stathisch wrote:Will have to look into that.

I've got fixes for IE8+ btw, soon there will be style fixes for IE7 too.
For IE8+:

open up js/phpbbchat.js
Find

Code: Select all

					'typing': 0,
Replace-with

Code: Select all

					'typing': 0
Find

Code: Select all

		var UsersChatting = ($.cookie( 'phpBBchat_chatting' )).split( '.' );
Replace-with

Code: Select all

		var UsersChatting = ( $.cookie( 'phpBBchat_chatting' ) == undefined ) ? '' : ($.cookie( 'phpBBchat_chatting' )).split( '.' );
Find

Code: Select all

						'unread': ( Unread[ item.USER_ID ] == undefined ) ? 0 : Unread[ item.USER_ID ],
Replace-with

Code: Select all

						'unread': ( Unread[ item.USER_ID ] == undefined ) ? 0 : Unread[ item.USER_ID ]

That's it.

This fix did you also introduced on your board? if you need to login with IE8, by username tester, still gives me error.
User avatar
stathisch
Registered User
Posts: 145
Joined: Fri Jul 24, 2009 11:33 am
Location: Greece

Re: [BETA] phpbbchat 0.3.0 (facebook like chat)

Post by stathisch »

darkonia wrote:the performance must be better in the future, so the mod is sinfree on a big board.
Define performance :P
I mean, server requests can't be cut down too much. It is already lighter than facebook's, making less requests and transferring less data. A big board will need a big server with a big processor and a lot of ram.

Now, about client performance... I will try to fix things up, as much as I can and/or is possible. Don't forget the fact that, for example, when you browse facebook you usually have 1 tab open. When you're on a forum, it may be 10. How far can optimization go?
master1986 wrote:This fix did you also introduced on your board? if you need to login with IE8, by username tester, still gives me error.
No, this patch hasn't yet been applied on the demo board. I will do that now.
User avatar
keith10456
Registered User
Posts: 2315
Joined: Thu Feb 24, 2005 6:55 pm

Re: [BETA] phpbbchat 0.3.0 (facebook like chat)

Post by keith10456 »

This one is pretty fast (although buggy). Maybe you can compare and see where an improvement can be made on the performance/speed/lag issue:

http://www.phpbb.com/community/viewtopi ... &t=2008845
User avatar
stathisch
Registered User
Posts: 145
Joined: Fri Jul 24, 2009 11:33 am
Location: Greece

Re: [BETA] phpbbchat 0.3.0 (facebook like chat)

Post by stathisch »

keith10456 wrote:This one is pretty fast (although buggy). Maybe you can compare and see where an improvement can be made on the performance/speed/lag issue:

http://www.phpbb.com/community/viewtopi ... &t=2008845
When you say 'lag', I guess you mean the lag when sending a message. Well, you see there are three techniques, mainly of doing this:
1) Post a message, show it to the user and parallel to that, send it to the server. End of story. If a message doesn't finally get sent, say, 'cause of a problem, nothing happens, the user thinks it's sent.
2) Post a message, send it to the server, and show it to the user when the server informs the client that it's sent. Makes the user think it lags.
3) Combination of the above 2. This way the user never knows it lags. There are of course, downsides of this, like in the above 2.

I am currently using #2. I will try to make it work like #3.

Now, about the mod you posted me. It may be using technique #1. Fixing bugs, in this kind of mod, or software, will involve error checking or other methods that will add server requests/client side code. This 'extra' code, can then, lead to 'lag'. :)
User avatar
darkonia
Registered User
Posts: 1901
Joined: Tue May 13, 2008 1:10 pm
Location: Munich, Germany

Re: [BETA] phpbbchat 0.3.0 (facebook like chat)

Post by darkonia »

@keith: on ya board with so many people it runs ok?

on my small board wirh only 1k people i have a much of probs with the performance...
MMOG-Heaven - Das Gaming Portal
Community bedeutet Gleichgesinnte finden - MMOG-Heaven ist Deine Community! Von Spielern für Spieler bietet Dir dieses Portal genau das, was ein Spieler braucht. Bleibe ständig informiert, finde die neuesten MMORPGs, oder suche die frischesten News aus der Welt des Online Gamings - dieses und vieles mehr erwartet Dich auf MMOG-Heaven.
User avatar
keith10456
Registered User
Posts: 2315
Joined: Thu Feb 24, 2005 6:55 pm

Re: [BETA] phpbbchat 0.3.0 (facebook like chat)

Post by keith10456 »

darkonia wrote:@keith: on ya board with so many people it runs ok?

on my small board wirh only 1k people i have a much of probs with the performance...
On my live board I'm using the mod I posted and referenced (I looking forward to using the one in this topic). No noticeable problem with performance... but as I said, it's quite buggy. Also, I don't know for sure if there would or wouldn't be a problem if a lot of people were chatting at the same time.

I tested this mod on the demo site. That's where I noticed the performance issue.
User avatar
stathisch
Registered User
Posts: 145
Joined: Fri Jul 24, 2009 11:33 am
Location: Greece

Re: [BETA] phpbbchat 0.3.0 (facebook like chat)

Post by stathisch »

keith10456 wrote:On my live board I'm using the mod I posted and referenced (I looking forward to using the one in this topic). No noticeable problem with performance... but as I said, it's quite buggy. Also, I don't know for sure if there would or wouldn't be a problem if a lot of people were chatting at the same time.

I tested this mod on the demo site. That's where I noticed the performance issue.
Please, don't use the demo board as a performance-reference site.
It's running on my dev server, in my office with 1mbit of upload. ;)
User avatar
master1986
Registered User
Posts: 49
Joined: Wed Apr 30, 2008 9:17 am
Location: Italy

Re: [BETA] phpbbchat 0.3.0 (facebook like chat)

Post by master1986 »

master1986 wrote:
stathisch wrote:Will have to look into that.

I've got fixes for IE8+ btw, soon there will be style fixes for IE7 too.
For IE8+:

open up js/phpbbchat.js
Find

Code: Select all

					'typing': 0,
Replace-with

Code: Select all

					'typing': 0
Find

Code: Select all

		var UsersChatting = ($.cookie( 'phpBBchat_chatting' )).split( '.' );
Replace-with

Code: Select all

		var UsersChatting = ( $.cookie( 'phpBBchat_chatting' ) == undefined ) ? '' : ($.cookie( 'phpBBchat_chatting' )).split( '.' );
Find

Code: Select all

						'unread': ( Unread[ item.USER_ID ] == undefined ) ? 0 : Unread[ item.USER_ID ],
Replace-with

Code: Select all

						'unread': ( Unread[ item.USER_ID ] == undefined ) ? 0 : Unread[ item.USER_ID ]

That's it.

This fix did you also introduced on your board? if you need to login with IE8, by username tester, still gives me error.

Very good, the fix works, now I can see the chat with IE8. The strange thing is the chat bar. Google and Firefox with C output only on the right, under the open windows. While IE with the extended view from left to right. You could have the same result in firefox and google c?
User avatar
stathisch
Registered User
Posts: 145
Joined: Fri Jul 24, 2009 11:33 am
Location: Greece

Re: [BETA] phpbbchat 0.3.0 (facebook like chat)

Post by stathisch »

master1986 wrote:Very good, the fix works, now I can see the chat with IE8. The strange thing is the chat bar. Google and Firefox with C output only on the right, under the open windows. While IE with the extended view from left to right. You could have the same result in firefox and google c?
You mean, extended view with the bar spanning from left to right?
Thats a problem with IE, it's supposed to be like it is in Firefox or Chrome. :P
User avatar
master1986
Registered User
Posts: 49
Joined: Wed Apr 30, 2008 9:17 am
Location: Italy

Re: [BETA] phpbbchat 0.3.0 (facebook like chat)

Post by master1986 »

stathisch wrote:
master1986 wrote:Very good, the fix works, now I can see the chat with IE8. The strange thing is the chat bar. Google and Firefox with C output only on the right, under the open windows. While IE with the extended view from left to right. You could have the same result in firefox and google c?
You mean, extended view with the bar spanning from left to right?
Thats a problem with IE, it's supposed to be like it is in Firefox or Chrome. :P

It is true. In IE bar expands from left to right. While in Firefox and Google C, is scaled down to the right, based on the number of open chat.

is a problem in IE?
User avatar
master1986
Registered User
Posts: 49
Joined: Wed Apr 30, 2008 9:17 am
Location: Italy

Re: [BETA] phpbbchat 0.3.0 (facebook like chat)

Post by master1986 »

would be interesting, if imported into the time that messages are delivered
AndreasP
Registered User
Posts: 10
Joined: Wed Nov 24, 2010 2:44 am

Re: [BETA] phpbbchat 0.3.0 (facebook like chat)

Post by AndreasP »

Will this work with any other theme? I have quasar theme (http://www.students2share.com/quasar.zip)
Thanks
User avatar
stathisch
Registered User
Posts: 145
Joined: Fri Jul 24, 2009 11:33 am
Location: Greece

Re: [BETA] phpbbchat 0.3.0 (facebook like chat)

Post by stathisch »

master1986 wrote:is a problem in IE?
Yes, but I will figure out a workaround for it.
master1986 wrote:would be interesting, if imported into the time that messages are delivered
What?
AndreasP wrote:Will this work with any other theme? I have quasar theme (http://www.students2share.com/quasar.zip)
Thanks
It probably will.

Return to “[3.0.x] Abandoned MODs”