[ABD] AJAX 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.
Locked
sharathu7
Registered User
Posts: 173
Joined: Fri Jan 11, 2008 1:22 pm

Re: [RC] AJAX Chat

Post by sharathu7 » Tue Apr 08, 2008 11:30 am

how do i add a small box in top of my forum showing online chat users.

User avatar
cichlides.be
Registered User
Posts: 50
Joined: Fri Dec 28, 2007 2:49 am
Contact:

Re: [RC] AJAX Chat

Post by cichlides.be » Tue Apr 08, 2008 12:05 pm

@sharathu7

If you search a littel bit your solution is on page 4, 5 and 6

The code is in you PM BOX :D
Last edited by cichlides.be on Tue Apr 08, 2008 12:25 pm, edited 2 times in total.
Sorry for my bad english, i'm Belgian /URL = http://www.cichlides.be / Installed MOD.

proton2112
Registered User
Posts: 19
Joined: Sun Nov 27, 2005 1:02 am

Re: [RC] AJAX Chat

Post by proton2112 » Tue Apr 08, 2008 12:19 pm

cichlides.be wrote:My forum speaks about exotic fish And my truths members are lost and believe that the forum is attacked by pirates ! :D
i hate it when the fish come... :?


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

Re: [RC] AJAX Chat

Post by jimcarrel » Tue Apr 08, 2008 2:12 pm

cichlides.be

look at the lines in config.php, lines 61 and following:

Code: Select all

// Session name used to identify the session cookie:
$config['sessionName'] = 'phpbb3_5dqkc';
// Prefix added to every session key:
$config['sessionKeyPrefix'] = 'ajaxChat';
// The lifetime of the language, style and setting cookies in days:
$config['sessionCookieLifeTime'] = 365;
// The path of the cookies, '/' allows to read the cookies from all directories:
$config['sessionCookiePath'] = '/';
// The domain of the cookies, defaults to the hostname of the server if set to null:
$config['sessionCookieDomain'] = null;
// If enabled, cookies must be sent over secure (SSL/TLS encrypted) connections:
$config['sessionCookieSecure'] = null;
Line 61, this:

Code: Select all

// Session name used to identify the session cookie:
$config['sessionName'] = 'phpbb3_5dqkc';
You get your forums cookie from inside your ACP, and the Chat will use it.

In this line, 96:

Code: Select all

// If enabled, users will be logged in automatically as guest users (if allowed), if not authenticated:
$config['forceAutoLogin'] = false;
set to false,

and lines 114 thru 118:

Code: Select all

// Enable/Disable guest logins:
$config['allowGuestLogins'] = false;
// Enable/Disable write access for guest users - if disabled, guest users may not write messages:
$config['allowGuestWrite'] = false;
// Allow/Disallow guest users to choose their own userName:
$config['allowGuestUserName'] = false;


All set to false to follow suit with line 114
Grace--Getting what I don't deserve
Mercy--Not getting what I do deserve

User avatar
cichlides.be
Registered User
Posts: 50
Joined: Fri Dec 28, 2007 2:49 am
Contact:

Re: [RC] AJAX Chat

Post by cichlides.be » Tue Apr 08, 2008 4:45 pm

Thank's jimcarrel, the change are effective !

Now my the last question for me.
after I let my members play with their new toy :D

I Disable the "/nick" fonction
But i want, delete the sentence "Change username" of the templace
Where can i do this ?

Thank you for your help.
Sorry for my bad english, i'm Belgian /URL = http://www.cichlides.be / Installed MOD.

User avatar
Yukan
Registered User
Posts: 155
Joined: Mon Aug 27, 2007 5:06 pm
Location: http://localhost/

Re: [RC] AJAX Chat

Post by Yukan » Tue Apr 08, 2008 9:00 pm

Hm...would it be possible to add a function that allows a user to add other user's to their 'friendslist' on phpBB3 thru the chat interface?

like.. a /add {USERNAME} command.

Is that possible?

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

Re: [RC] AJAX Chat

Post by jimcarrel » Tue Apr 08, 2008 9:47 pm

Yukan wrote:Hm...would it be possible to add a function that allows a user to add other user's to their 'friendslist' on phpBB3 thru the chat interface?

like.. a /add {USERNAME} command.

Is that possible?
As of right now, I know of no code written, (other than the chat users showing in the "whos online", and in the nav bar) that
allows one to pull that info into phpBB3.
I'm pretty sure there is no code written for the chat "pushing" info into phpBB3.

Who knows maybe someone will do it someday
Grace--Getting what I don't deserve
Mercy--Not getting what I do deserve

User avatar
cichlides.be
Registered User
Posts: 50
Joined: Fri Dec 28, 2007 2:49 am
Contact:

Re: [RC] AJAX Chat

Post by cichlides.be » Wed Apr 09, 2008 2:13 am

OK, for delete the sentence "Change username" of the templace.

Go on file

chat\js\chat.js

And delete in the file the lines 1086 to 1088

Code: Select all

					+ '<li><a href="javascript:ajaxChat.insertMessageWrapper(\'/nick \');">'
					+ this.lang['userMenuNick']
					+ '</a></li>';

This delete just the sentence !
You must too disable the fonction "/nick" in config.php i tkink

The line 1068 to 1102 is the righ menu of the box :D
Last edited by cichlides.be on Wed Apr 09, 2008 10:24 am, edited 4 times in total.
Sorry for my bad english, i'm Belgian /URL = http://www.cichlides.be / Installed MOD.

sharathu7
Registered User
Posts: 173
Joined: Fri Jan 11, 2008 1:22 pm

Re: [RC] AJAX Chat

Post by sharathu7 » Wed Apr 09, 2008 5:57 am

how do i disable guest users.. i saw this line in this forum.. but don't know where to put it in customajaxchat file....

Code: Select all

function isValidGuestUser($userID, $userName) {
         return false;
   }
Please help.

User avatar
Yukan
Registered User
Posts: 155
Joined: Mon Aug 27, 2007 5:06 pm
Location: http://localhost/

Re: [RC] AJAX Chat

Post by Yukan » Wed Apr 09, 2008 8:58 am

sharathu7 wrote:how do i disable guest users.. i saw this line in this forum.. but don't know where to put it in customajaxchat file....

Code: Select all

function isValidGuestUser($userID, $userName) {
         return false;
   }
Please help.
Open: chat/lib/config.php

Find:

Code: Select all

// Enable/Disable guest logins:
$config['allowGuestLogins'] = true;
True = enabled.
False = disabled.

If you want guest logins to be disabled set it to false.

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

Re: [RC] AJAX Chat

Post by jimcarrel » Wed Apr 09, 2008 12:10 pm

cichlides.be wrote:OK, for delete the sentence "Change username" of the templace.

Go on file

chat\js\chat.js

And delete in the file the lines 1086 to 1088

Code: Select all

					+ '<li><a href="javascript:ajaxChat.insertMessageWrapper(\'/nick \');">'
					+ this.lang['userMenuNick']
					+ '</a></li>';

This delete just the sentence !
You must too disable the fonction "/nick" in config.php i tkink



The line 1068 to 1102 is the righ menu of the box :D
cichlides.be,
Good tip, I merely commented out those lines, actualy I commented out quite a few that I didn't want or need for users.
Thanks.
Oh, I didn't have to mess with any other files either.
Grace--Getting what I don't deserve
Mercy--Not getting what I do deserve

User avatar
cichlides.be
Registered User
Posts: 50
Joined: Fri Dec 28, 2007 2:49 am
Contact:

Re: [RC] AJAX Chat

Post by cichlides.be » Wed Apr 09, 2008 1:11 pm

Perhaps my question is in best place in "General Discussion", i don't know but

for a little bit more "head twists"
My chat is in a pop-up
I would like to benefit from the small cross of closing

to use the JAVA function "onbeforeunload" in oveall html

For include the logout of the chat ! :D

Do you have some informations of this function. ;)
Sorry for my bad english, i'm Belgian /URL = http://www.cichlides.be / Installed MOD.

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

Re: [RC] AJAX Chat

Post by jimcarrel » Wed Apr 09, 2008 5:14 pm

cichlides.be
I'm not sure I understand your question, sorry
Grace--Getting what I don't deserve
Mercy--Not getting what I do deserve

User avatar
cichlides.be
Registered User
Posts: 50
Joined: Fri Dec 28, 2007 2:49 am
Contact:

Re: [RC] AJAX Chat

Post by cichlides.be » Wed Apr 09, 2008 5:33 pm

OK when you use This Ajax chat in a pop up
If the member go out and click on the littel cross
He stay logged since the time out is finish, it's not the same of the ajax argument of the menu

chat.js

Code: Select all

menu 	= '<li><a href="javascript:ajaxChat.sendMessageWrapper(\'/quit\');">'
					+ this.lang['userMenuLogout']
					+ '</a></li>'

..........................................................................................................
	handleLogout: function(url) {
		window.location.href = url;
	},
config.php

Code: Select all

ajaxChat.handleLogout = function(url) {
   setTimeout("window.close()", 1);
}
I try, with a java fonction onbeforeunload
to applique setTimeout on the cross.

MG
Sorry for my bad english, i'm Belgian /URL = http://www.cichlides.be / Installed MOD.

Locked

Return to “[3.0.x] Abandoned MODs”