Copy the following code into your existing web pages to create links like those above.
If you want private conversation request links in your web pages to vary depending
on whether the recipient is online or not see the section at
the bottom of this page.
Guest Login Conversa a [MG Support] Bryan Conversa a (MG Support) Jesse
This section describes how to set up private conversation request links in
your web pages that vary depending on whether or not the recipient is online.
In order to create links in your existing web pages to allow users to contact you using
GameLink for online support, you can copy the following text into any of
your existing web pages. When a user views your web page, if you are online then
a link for a GameLink private conversation with you will be appear or if
you are offline, a message stating you are currently unavailable. You can also use
this to randomly pick the request recipient from an online member of a user group.
There are further examples at the bottom of this page for
alternative ways of setting this up. In all cases, make sure you do not paste
these scripts inside a form on your existing web page or they will not work.
Here is how this text would appear:
This script will insert an inline link into a page to talk to user id 1.
A description of the parameters
is given below. All are optional apart from the cmd_guest_talk parameter. As with all URL parameters,
each parameter must be separated with an & symbol and have an = sign between the parameter name and value.
URL parameters may not contain spaces so use a + symbol (which gets translated into spaces by the server) instead.
cmd_guest_talk
A user id or the letter g followed by a user group id of a user group from which a random online member is selected. For example, use a value of 1 to talk to user-id 1, or a value of g1 to talk to a random member of user group 1.
request_style
0=Send request immediately on opening talk window. 1=Send request as soon as the guest starts typing a message. 2=Send the request as soon as the guest presses enter at the end of the first line of text.
auto_open_window
Automatically open a talk window if the recipient is online without waiting for the guest to click the link
initial_message
A greeting message sent from the guest to the recipient of the request.
other_initial_message
A greeting message displayed to the guest when they first enter the talk session. -NAME- will be replaced by the display name of the request recipient.
online_msg
Text for the link that will be inserted into this page if the recipient is currently available (online). Use a value of 'x' if you don't want any text to appear. If you want an image instead of text, use something like this: <img src='image.gif'></img>. The image file name must be a file that exists in the same directory as the web page that this script is being inserted into.
offline_msg
Text that is inserted into this page if the recipient is not currently available. Use a value of 'x' if you don't want any text to appear.
title_message
Title text for the window rather than the default of "Private Conversation"
leave_message
Text for the link to leave the talk session rather than the default of "Leave Private Conversation"
pick_first
If the recipient is a user group and if the value of this parameter is 1, then the first online member of the user group will be picked rather than a random member.
secondary_link
If you want to have multiple links on a single page, then each link after the first one must give this parameter a unique value in order to avoid script errors due to multiple occurrences of the javascript functions that get inserted into the page. For example, use secondary_link=2 for the second link and secondary_link=3 for the third link
window_width
Width in pixels of popup window. Default is 290
sub_frame_name
If you want to embed that chat window within an existing web page, use an iframe and set this parameter to the name of the iframe. See the final example below for further details.
show_html_headers
If you are using an 'iframe src=...' to reference the command rather than a 'script src=...' then you should give this parameter a value of 1 so that the resulting page contains html and script tags.
Here is a more complex example that makes a request with a random member of user group 1.
The above link does not use encrypted server to client communication. If you want
encrypted communication, use the link below, but you should be aware that
each user will be warned that the certificate is not a trusted one unless the
GameLink server administrator
has registered and proved their identity with a certification authority.
If you are the GameLink server administrator, see
http://netwinsite.com/dbabble/manage.htm#enc for details.
Here is a final example that embeds the chat window within an existing web page, or
if you are not online, then displays an alternative page. In this example,
http://netwinsite.com/dbabble/offline.htm is a page that is displayed instead of
the chat window if you are not online.