Integrate with RealChat

Discussion in 'Integration' started by Phoenix, Jan 27, 2004.

  1. Phoenix

    Phoenix Guest

    I have setup successfully aMember and am trying to get it so that once the member logs into aMember, the login name gets passed to the chat client so that the login name is passed through. The documentation for RealChat leaves a bit to be desired and their support is worse. Here is an example of what the RealChat client code looks like:

    <!-- Begin: RealChat Client code -->
    <applet
    archive = "RealChat.jar"
    codebase = "."
    code = "rcs.client.RealChatClient.class"
    name = "ChatClient"
    width = "300"
    height = "100"
    align = "top"
    alt = "RealChat Client applet"
    MAYSCRIPT>
    <param name="channel" value="Room of Choice">
    <!-- no java or java disabled -->
    RealChat client requires Java compatible web browser
    </applet>
    <!-- End: RealChat Client code -->


    The parameter for an automatic login would be:

    <param name="nick" value="">

    Any ideas Alex on how to do this?

    Thanks,

    Sonny
  2. Phoenix

    Phoenix Guest

    OK, I've been playing with this. When I put this in this way:

    <param name="nick" value="<?php include ('_amember_login');?>">

    I get logged into the room but with this error - which it also uses for my nickname:

    _br___b_Warning__b___open_basedir_restriction_in_effect__File_is_in_wrong_directory_in_usr_local_psa_home_vhosts_domain.com_httpdocs_chat

    And then it runs out of room to complete the statement. Of course, aMember and RealChat are in different directories.

    Any help?

    Sonny
  3. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    it is right direction, try this code:
    1. add to very top of your page:
    PHP:
    <? session_start(); ?>
    2. then scroll down and use the following code:
    PHP:
    <param name="nick" value="<? print $_SESSION['_amember_user']['login']; ?>">
    Let me know if it works or not. You may contact support@cgi-central.net for better response time.
  4. Phoenix

    Phoenix Guest

    EXCELLENT!!!

    Once again, you've come through for me.

    Thanks,

    Sonny

Share This Page