Guest Login
Conversa a [MG Support] Bryan
Conversa a (MG Support) Jesse

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. <!--Start of "C:\dbabblesvr2/tpl/login_sample_include.htm"--> <script> <!--Start of "C:\dbabblesvr2/tpl/guest_login_form.htm"--> document.write("<form "); if (!document.layers) document.write("style=\"margin:0\""); document.write("\n"); document.write(" name=\"loginform\" method=\"POST\" action=\"http://gamelink.mammothgames.net:8134/gamelink\">\n"); document.write("<input type=hidden name=\"user\" value=\"Guest\">\n"); document.write("<input type=hidden name=\"pass\" value=\"\">\n"); document.write("<input type=hidden name=\"r_login\" value=\"r_login\">\n"); document.write("<input type=hidden name=\"u_day\" value=\"\">\n"); document.write("<input type=hidden name=\"u_hour\" value=\"\">\n"); document.write("<input type=hidden name=\"u_min\" value=\"\">\n"); document.write("<input type=hidden name=\"u_sec\" value=\"\">\n"); document.write("<input type=hidden name=\"after_logout_page\" value=\"\">\n"); document.write("<input type=hidden name=\"override_dot_top\" value=\"\">\n"); document.write("<input type=hidden name=\"override_main_name\" value=\"\">\n"); document.write("<input type=hidden name=\"override_check_main_window\" value=\"\">\n"); document.write("<input type=hidden name=\"new_window\" value=\"\">\n"); document.write("<input type=hidden name=\"window_title\" value=\"\">\n"); document.write("<input type=hidden name=\"after_login_page\" value=\"\">\n"); document.write("<input type=hidden name=\"hide_menu_and_friends\" value=\"\">\n"); document.write("<input type=hidden name=\"show_features\" value=\"0\">\n"); document.write("\n"); document.write("</form>\n"); function FetchDate() { x = new Date(); document.loginform.u_hour.value=x.getHours(); document.loginform.u_min.value=x.getMinutes(); document.loginform.u_sec.value=x.getSeconds(); document.loginform.u_day.value=x.getDate(); } function GuestLogin() { document.loginform.user.value="Convidado" document.loginform.pass.value=""; FetchDate(); document.loginform.submit(); } function GuestLoginClearForm() { document.loginform.new_window.value="" document.loginform.hide_menu_and_friends.value="" document.loginform.after_login_page.value="" document.loginform.after_logout_page.value="" document.loginform.override_dot_top.value="" document.loginform.override_main_name.value="" document.loginform.override_check_main_window.value="" document.loginform.target="" } function ClearFormSoon() { setTimeout('GuestLoginClearForm()',2000) } function GuestLoginChatRoomInvite(gid,hide_menu_and_friends, invite_uid) { GuestLoginClearForm() if (hide_menu_and_friends) document.loginform.hide_menu_and_friends.value="true" document.loginform.show_features.value="3" pv="cmd=chat_list&gid="+gid if (invite_uid>0) { pv=pv+"&invite_hid=1&invite_uid="+invite_uid+"&invite_is_ugroup=0"; } document.loginform.after_login_page.value=pv; GuestLogin(); ClearFormSoon() } function GuestLoginChatRoom(gid,hide_menu_and_friends) { GuestLoginChatRoomInvite(gid,hide_menu_and_friends,0); } function GuestLoginDiscussion(gid,hide_menu_and_friends) { GuestLoginClearForm() if (hide_menu_and_friends) document.loginform.hide_menu_and_friends.value="true" document.loginform.show_features.value="2" document.loginform.after_login_page.value="cmd=group_items&gid="+gid; GuestLogin(); ClearFormSoon() } function GuestLoginNow() { GuestLogin(); ClearFormSoon() } function GuestLoginTalkDo2(new_window,window_width, window_height, is_ugroup, group_pick_first, uid,hide_menu_and_friends,talk_request_style,initial_message,other_initial_message, title_message, heading_message, alt_message, leave_message, sub_frame_name, after_logout_page) { GuestLoginClearForm() txt="uid" if (is_ugroup) txt="ugid" document.loginform.after_logout_page.value=after_logout_page; if (new_window) { document.loginform.new_window.value="true" window.open("", "messageWindow", "width="+window_width+",height="+window_height+",resizable=yes") document.loginform.target="messageWindow" document.loginform.after_logout_page.value="javascript:window.close()" } if (sub_frame_name!="") { if (after_logout_page=="") { document.loginform.after_logout_page.value="blank.htm"; } document.loginform.override_dot_top.value=".top."+sub_frame_name document.loginform.override_main_name.value=sub_frame_name document.loginform.override_check_main_window.value="window.length>1 && window.top.frames[1].name=='"+sub_frame_name+"'" } if (hide_menu_and_friends) document.loginform.hide_menu_and_friends.value="true" document.loginform.show_features.value="0" document.loginform.after_login_page.value="cmd=u_talk&hid=1&"+txt+"="+uid+"&talk_first_message="+escape(initial_message)+"&talk_other_first_message="+escape(other_initial_message)+"&talk_request_style="+talk_request_style+"&title_message="+escape(title_message)+"&leave_message="+escape(leave_message)+"&pick_first="+group_pick_first+"&heading_message="+escape(heading_message)+"&alt_message="+escape(alt_message);; document.loginform.window_title.value=title_message; setTimeout("GuestLoginNow()",250); } function GuestLoginTalkDo(new_window,is_ugroup, group_pick_first, uid,hide_menu_and_friends,talk_request_style,initial_message,other_initial_message, title_message, heading_message, alt_message, leave_message) { GuestLoginTalkDo2(new_window,290,190,is_ugroup, group_pick_first, uid,hide_menu_and_friends,talk_request_style,initial_message,other_initial_message, title_message, heading_message, alt_message, leave_message,"","") } function GuestLoginTalk(new_window, is_ugroup, uid,hide_menu_and_friends,initial_message) { other_initial_message="Hi, -NAME- here. How can I help you?" talk_request_style=1 // 0 = Send request to recipient as soon as clicking on the link // 1 = Send request as soon as you start typing // 2 = Send request as soon as you have finished typing a complete line GuestLoginTalkDo(new_window,is_ugroup,0,uid,hide_menu_and_friends,talk_request_style,initial_message,other_initial_message,'','','','') } <!--End of "C:\dbabblesvr2/tpl/guest_login_form.htm"--> </script> <a href="javascript:GuestLogin()">Guest Login</a><br> <a href="javascript:GuestLoginTalk(1,0,110,1,'')">Conversa a [MG Support] Bryan</a><br> <a href="javascript:GuestLoginTalk(1,0,304,1,'')">Conversa a (MG Support) Jesse</a><br> <!--End of "C:\dbabblesvr2/tpl/login_sample_include.htm"-->
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. <script src="http://gamelink.mammothgames.net:8134/dbabble?cmd_guest_talk=1&title_message=Live+Chat&leave_message=Leave+Live+Chat"> </script>
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. Here is a more complex example that makes a request with a random member of user group 1. <script src="http://gamelink.mammothgames.net:8134/dbabble?cmd_guest_talk=g1&auto_open_window=1&online_msg=x&offline_msg=x&request_style=1&other_initial_message=Hi,+-NAME-+here.+I'm+online+at+the+moment+so+if+you+get+stuck+or+can't+find+what+you+want+just+type+in+your+question+here+and+I'll+try+and+help+you+out.+Feel+free+to+ignore+this+window+if+you+are+just+browsing+:-)&title_message=Live+Chat&leave_message=Leave+Live+Chat"> </script> 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. <script src="https://gamelink.mammothgames.net:8135/dbabble?cmd_guest_talk=1&request_style=1&auto_open_window=0&title_message=Live+Chat&leave_message=Leave+Live+Chat"> </script> 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. <table border=1><tr><td nowrap> <iframe scrolling=no FRAMEBORDER=0 MARGINHEIGHT=0 MARGINWIDTH=0 border=0 width=328 height=245 align=right name="ifr" src="http://gamelink.mammothgames.net:8134?cmd_guest_talk=1&show_html_headers=1&sub_frame_name=ifr&auto_open_window=1&other_initial_message=Hi,+-NAME-+here.+I'm+online+at+the+moment+so+if+you+have+any+questions+please+let+me+know&after_logout_page=http://netwinsite.com/dbabble/offline_ad.htm&online_msg=x&offline_msg=<iframe border=0 FRAMEBORDER=0 MARGINHEIGHT=0 MARGINWIDTH=0 height=240 src='http://netwinsite.com/dbabble/offline_ad.htm'></iframe>&request_style=1"> Text to display if the web browser does not support iframes. </iframe> </td></tr></table>