Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > 123 Flash Chat Server Software > 123 Flash Chat Support

Closed Thread
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-15-2006, 03:59 PM
Junior Member
 
Join Date: Jul 2006
Posts: 9
Default Javascript function in profileUrl

How can i call a javascript function in client.xml - profileUrl?
I need to open a popup-window with a users Profile when clicking on profileUrl-"Show profile".

Thx
Oneside
  #2 (permalink)  
Old 10-15-2006, 11:11 PM
Junior Member
 
Join Date: Aug 2006
Posts: 4
Default Re:Javascript function in profileUrl

Actually, it used to auto create a new window for profiles. This has recently stopped and it just loads profile URLs in the same window as the chat control.

Any work on fixing this bug?

- Compu
  #3 (permalink)  
Old 10-17-2006, 04:15 PM
Senior Member
 
Join Date: Jan 2001
Posts: 413
Default Re:Javascript function in profileUrl

Did you purchased the golden package or the client source code ?

If you have the src, you can edit the functions.as file for the profile section, it's easily to do it by your self , if you want our enginner to help you generate such a client, please send an email to support@123flashchat.com, we would like to make such a client for you, we charge 1 hour service fee.
  #4 (permalink)  
Old 10-20-2006, 11:01 AM
Junior Member
 
Join Date: Jul 2006
Posts: 9
Default Re:Javascript function in profileUrl

We purchased a 500+ golden licence and its really annoying that a lot of basic features like this one are not integrated in a chat which is thought to integrate in communitys...
  #5 (permalink)  
Old 10-23-2006, 09:26 AM
Senior Member
 
Join Date: Jan 2001
Posts: 413
Default Re:Javascript function in profileUrl

OK, glad to hear that you have the src code, I'll post the details here for popup the custom profile page.

I've tested in IE and firefox, it won't be blocked by the popup-killer software.

1. open buttons.as file:

find the function:
Code:
function clickProfile(who, profileUrl) {
var thisUrl = _root.getReplaceStr(profileUrl, who, "%USER%");
getURL(thisUrl, "_blank");
}
change one line: getURL(thisUrl, "_blank"); to: getURL(thisUrl, "_top");
now the function is:

Code:
function clickProfile(who, profileUrl) {
var thisUrl = _root.getReplaceStr(profileUrl, who, "%USER%");
getURL(thisUrl, "_top");
}
OK, now open the "123flashchat.fla" file with flash mx 2004 or flash 8,
generate a new swf file.


2. open client.xml file:
find the profileUrl section, set:

Code:
<profileUrl enable="true">
<item name="Profile" url="javascript:openProfile('%USER%')" />
</profileUrl>
3. edit your html code , and add a javascript function:

Code:
<script language="javascript">
function openProfile(who)
{
window.open ("http://myprofileurl?userid=" + who, null, "height=500, width=600, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, resizable=yes,location=no, status=no");
}
</script>
set your owen profile url , height, and width.

4. open "<123flashchat server installed folder>/etc/groups/default.xml"
find:
<change-nick enable="On" enableCustomProfile="On"></change-nick>

set it to:

<change-nick enable="On" enableCustomProfile="Off"></change-nick>

restart the chat server, it should be working now,
Closed Thread

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 01:00 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.