Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 flashchat mod - grab the username
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

dabade
Starting Member

2 Posts

Posted - 21 October 2008 :  17:34:35  Show Profile
Hello. Simple question :-

I've installed the flashchat "mod" in a subfolder under the forum, the login file of flashchat lets me fill in any username "nick", but i'd like to have it prefill with the currently logged in snitz user.

Here's the line wher the username is loaded in.

<input type="text" name="txtUserName" value="boris" disabled size="30">

So replacing "boris" with the currently logged in snitz user.

I know it won't prevent people from logging in with different names, but it will simplify login and help consistancy.<

balexandre
Junior Member

Denmark
418 Posts

Posted - 22 October 2008 :  07:34:13  Show Profile  Visit balexandre's Homepage  Send balexandre an ICQ Message
for that you need to load config file and get the cookie

in the begining of the code

<!-- #include file="config.asp" -->


then you can do this:
strUserName = Request.Cookies(strUniqueID & "User")("Name")

and use:

<input type="text" name="txtUserName" value="<%=(strUserName)%>" disabled size="30">
<

Bruno Alexandre
(Strøby, DANMARK)

"a Portuguese in Danmark"


Go to Top of Page

dabade
Starting Member

2 Posts

Posted - 22 October 2008 :  20:48:32  Show Profile
Exactly what I needed,
Works perfectly, Muito Obrigado!<

Edited by - dabade on 22 October 2008 20:50:35
Go to Top of Page

balexandre
Junior Member

Denmark
418 Posts

Posted - 23 October 2008 :  02:19:19  Show Profile  Visit balexandre's Homepage  Send balexandre an ICQ Message
de nada <

Bruno Alexandre
(Strøby, DANMARK)

"a Portuguese in Danmark"


Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 5 seconds. Powered By: Snitz Forums 2000 Version 3.4.07