Author |
Topic  |
leatherlips
Senior Member
   
USA
1838 Posts |
|
leatherlips
Senior Member
   
USA
1838 Posts |
Posted - 17 October 2006 : 19:01:28
|
In the chat, there is a command that will allow users to change their name while in chat. I disabled mine because it would be easy for someone to say they were you. It is also possible to change your name to someone that is currently in chat. Then two people are using the same name.
I would recommend disabling it. Here is how to do it if you want to.
In postmessage.asp look for the below code and add the parts in red:
'ElseIf Mid(strMessage, 1, 6) = "/name " Then 'strCommand = Trim(Mid(strMessage, 6, Len(strMessage)))
'Session("Username") = strCommand
'strMessage = strUsername & " changed username to " & strCommand
'saryUserMsgTo = 0 'intType = 1
You will also want to remove the line in the /commands menu that says how to change the username.
Look for this in postmessage.asp and delete it:
"<tr><td><b>Change Name:</b></td><td>/name [Username]</td></tr>" & _
If someone then tries to change their name, it will say:
You have typed an unknown command. Type /commands for help. |
Mangione Magic Forum - The Music of Chuck Mangione
My Mods: Googiespell MOD | Link To Reply MOD | Petition MOD | Contact Page MOD | Share This Topic MOD | MP3 MOD | PageEar MOD | Google Viewer MOD |
Edited by - leatherlips on 17 October 2006 19:02:05 |
 |
|
TastyNutz
Junior Member
 
USA
251 Posts |
Posted - 17 October 2006 : 22:44:07
|
Thanks for the updates leatherlips!
I also did not want users changing their names. But I'd like to retain the ability as administrator to change my own name (just because). So, what I did, was simply edit the chatroom.asp file and remove the part in red:
<td bgcolor="#D1E0F8" width="70%" class="chatBorderText">ASP ChatNow Beta (type <i>/commands</i> in message box for commands)</td>
That way, the change name command still works. Users just don't know about it. And it's not really necessary for users to be able to use the /command function is the other two user functions (private message and text formatting) can be accessed elsewhere.
But of course the key is to remove the /commands reference before anyone sees it. 
|
PowerQuad Disability Support Forum |
 |
|
thermal_seeker
Junior Member
 
United Kingdom
430 Posts |
Posted - 19 October 2006 : 08:08:23
|
Do these changes sort out the problem of the chat "crashing" when a member joins/leaves??
Dave |
No good at coding, but I can plough a field !! |
 |
|
leatherlips
Senior Member
   
USA
1838 Posts |
|
thermal_seeker
Junior Member
 
United Kingdom
430 Posts |
Posted - 20 October 2006 : 01:49:40
|
Thanks leatherlips :)
Dave |
No good at coding, but I can plough a field !! |
 |
|
leatherlips
Senior Member
   
USA
1838 Posts |
|
TastyNutz
Junior Member
 
USA
251 Posts |
|
kolucoms6
Average Member
  
845 Posts |
Posted - 16 March 2007 : 13:31:27
|
Is ASPChat Free to use ?
If yes, can anyone guide me up with the link for the MOD. |
 |
|
Andy Humm
Average Member
  
United Kingdom
908 Posts |
Posted - 23 March 2007 : 16:56:50
|
Regarding using the smiley icons if you enter url in the chat message ie http://www.xxx.com it displays a smiley image in the message area where the first:/ appears http /ww.xxx.com
I have changed my code to allow urls to be posted without smiley's being inserted File: Chatroom.asp find line 65 <td align="center" height="20" width="20"><a href="Javascript:postmessage.AddSmileyIcon(':/');"><img border="0" hspace="10" src="smilies/on_11.gif"></a></td> amend to read <td align="center" height="20" width="20"><a href="Javascript:postmessage.AddSmileyIcon(':-');"><img border="0" hspace="10" src="smilies/on_11.gif"></a></td>
functions_chat.asp find line 140 strMessage = Replace(strMessage, ":/", "<img src=smilies/on_11.gif align=absmiddle>")
amend to read strMessage = Replace(strMessage, ":-", "<img src=smilies/on_11.gif align=absmiddle>")
|
 |
|
kolucoms6
Average Member
  
845 Posts |
Posted - 24 March 2007 : 03:04:12
|
Sorry to jump in between these discussions, I just found a Tag Board which I am using instead of Chat application.
Just to share with you guys..here it goes..
www.cbox.ws ( I am no way related with this)
Regards, David |
 |
|
thermal_seeker
Junior Member
 
United Kingdom
430 Posts |
Posted - 17 September 2007 : 12:15:11
|
quote: Originally posted by Pull My Finger
quote: Originally posted by TastyNutz
Your fix works great, but you should incorporate the tweak that Shaggy posted to remove the annoying trailing comma.
Thanks TN... I did just that (added Shaggy change you posted)on the inc_chat.asp file I use for my live site. As for the inc_chat.asp that I linked to in my last post I left that as is so others can add the change you posted.
This is for the future a few weeks down the road when people read this thread...
In my last post I posted a "View New inc_chat.asp" link. That link is linking to the inc-chat.asp file in a temp folder on my server. Files that I put in that temp folder are files I keep on server for about 2 weeks.
The "View New inc_chat.asp" link at the end of this post is linking to the inc_chat.asp file I use on my live site and won't get deleted. That inc_chat.asp file has My personal text changes that I use for my site. You will have to edit line 1 that has My domain address to your domain address. Plus edit My personal text changes to how you like it.
My personal changes will look like this No members logged-on--> Who's in the Live Chat Room? [ Nobody in Chat ] 1 member logged-on--> Who's in the Live Chat Room? PMF 3 members logged-on--> Who's in the Live Chat Room? PMF | Tom | Mike
Link (Source Viewer) of inc_chat.asp that is being used for my live site.......... View New inc_chat.asp
does anyone have a copy of this new file??? that link doesn't seem to work
Dave
|
No good at coding, but I can plough a field !! |
Edited by - thermal_seeker on 17 September 2007 12:15:49 |
 |
|
NiteOwl
Junior Member
 
Canada
403 Posts |
Posted - 18 January 2008 : 12:13:36
|
Does anyone have a copy of the inc_chat.asp that was mentioned above? or a sample of that file?
|
-=NiteOwl=-
|
 |
|
mdelcour2000
Junior Member
 
United States
133 Posts |
Posted - 20 January 2008 : 13:27:47
|
I found this link: http://www.aspchatnow.com/ however, for some reason the file is corrupt or missing. It says it's downloading a Zip File, but all I get when I download is a downloaded link to the same thing. |
http://lacledeforum.com/
"Never get so busy doing the work of the kingdom that you forget who the King is" |
 |
|
NiteOwl
Junior Member
 
Canada
403 Posts |
Posted - 20 January 2008 : 13:37:06
|
got one from leatherlips that worked great! thanks |
-=NiteOwl=-
|
 |
|
Topic  |
|