Author Topic: Integration with Joomla 1.5 Part 1  (Read 20050 times)

0 Members and 1 Guest are viewing this topic.

jarradyuhas

  • Sr. Member
  • ****
  • Posts: 36
    • SusQ-Cyber Charter School
Integration with Joomla 1.5 Part 1
« on: September 12, 2010, 02:21:05 PM »
I have noticed numerous requests for information about integrating Mibew with Joomla 1.5. I have recently done this and, if you are tech savvy, you can do it too. What I did is I created it as a module to be added into the website's template in the right column.

First, to make things much easier on yourself, go ahead and install Easy Creator from http://easy-joomla.org/en.html. This allows you to create your own downloadable module in Joomla zip format and will even install the created module on the site automatically. With that installed, go ahead and create a new project and make a Frontend Plain module. After you have set your parameters for the module, go ahead and create it by following the prompts. Once it is created, access the files and edit the file named mod_modulename.php and enter the following coding under the first complete PHP statement (starts with "<?php" and ends with "php?>". Contains the parameters that you specified earlier for the module):

Code: [Select]
<?PHP

$user =& JFactory::getUser();
$username = $user->name;
$email = $user->email;
switch($username) {
   case '':
      $username = 'Guest';
   break;
   case ' ';
      $username = 'Guest';
   break;
}
?>
<script>
var username = "<?php echo $username?>"
var email = "<?php echo $email?>"
</script>
<!-- Button code. Attention!!! If you are editing the code, make sure to -->

<!-- webim button --><br><a href="/mibew/client.php?locale=en" target="_blank" onclick="if(navigator.userAgent.toLowerCase().indexOf('opera') != -1 &amp;&amp; window.event.preventDefault) window.event.preventDefault();this.newWindow = window.open('/mibew/client.php?locale=en&&amp;url='+escape(document.location.href)+'&amp;referrer='+escape(document.referrer)+'&name='+escape(username)+'&email='+escape(email), 'webim', 'toolbar=0,scrollbars=0,location=0,status=1,menubar=0,width=640,height=480,resizable=1');this.newWindow.focus();this.newWindow.opener=window;return false;"><img src="/mibew/button.php?image=webim&amp;lang=en" border="0" width="150" alt=""/></a><!-- / webim button -->
</p>

The code containing $username = $user->name; can be changed to $username = $user->username; as well, depending on your preference. Name displays their First and Last name and username displays their login ID.

This works wonderfully. Make sure to enable the changing of the name so that Guests are able to change their name from Guest. This will allow you to pull the email and name directly from the logged in Joomla users profile.



For some added benefit, you can also hide the name field if you are only allowing registered users access to the Mibew Messenger. To do this, you would need to modify the style template file for the style that you are using. Once you determine what style you are using, go ahead and access the file called survey.tpl in the templates folder of the desired style directory. Copy the survey.tpl file so that you have a backup and find and replace the existing text in survey.tpl with the following:

Code: [Select]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>${msg:presurvey.title}</title>
<link rel="shortcut icon" href="${webimroot}/images/favicon.ico" type="image/x-icon"/>
<link rel="stylesheet" type="text/css" href="${tplroot}/chat.css" />
<style type="text/css">
#header{
    height:50px;
    background:url(${tplroot}/images/bg_domain.gif) repeat-x top;
    background-color:#5AD66B;
    width:99.6%;
    margin:0px 0px 20px 0px;
}
#header .mmimg{
    background:url(${tplroot}/images/quadrat.gif) bottom left no-repeat;
}
.form td{
    background-color:#f4f4f4;
    color:#525252;
}
.but{
    font-family:Verdana !important;
    font-size:11px;
    font-weight: bold;
    background:url(${tplroot}/images/wmchat.png) top left no-repeat;
    background-position:0px -25px;
    display:block;
    text-align:center;
    padding-top:2px;
    color:white;
    width:186px;
    height:18px;
    text-decoration:none;
}
</style>

</head>
<body bgcolor="#FFFFFF" text="#000000" link="#C28400" vlink="#C28400" alink="#C28400" style="margin:0px;">
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td valign="top">


<form name="surveyForm" method="post" action="${webimroot}/client.php">
<input type="hidden" name="style" value="${styleid}"/>
<input type="hidden" name="info" value="${form:info}"/>
<input type="hidden" name="referrer" value="${page:referrer}"/>
<input type="hidden" name="survey" value="on"/>
${ifnot:showemail}<input type="hidden" name="email" value="${form:email}"/>${endif:showemail}
${ifnot:groups}${if:formgroupid}<input type="hidden" name="group" value="${form:groupid}"/>${endif:formgroupid}${endif:groups}
${ifnot:showmessage}<input type="hidden" name="message" value="${form:message}"/>${endif:showmessage}
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
    <td valign="top" height="150" style="padding:5px">
        <table width="100%" cellspacing="0" cellpadding="0" border="0">
        <tr>
            <td width="100%" height="100" style="padding-left:20px;">
                ${if:ct.company.chatLogoURL}
                    ${if:webimHost}
                        <a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">
                            <img src="${page:ct.company.chatLogoURL}" border="0" alt=""/>
                        </a>
                    ${else:webimHost}
                        <img src="${page:ct.company.chatLogoURL}" border="0" alt=""/>
                    ${endif:webimHost}
                ${else:ct.company.chatLogoURL}
                    ${if:webimHost}
                        <a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">
                            <img src="${webimroot}/images/webimlogo.gif" border="0" alt=""/>
                        </a>
                    ${else:webimHost}
                        <img src="${webimroot}/images/webimlogo.gif" border="0" alt=""/>
                    ${endif:webimHost}
                ${endif:ct.company.chatLogoURL}
            </td>
            <td nowrap="nowrap" style="padding-right:10px"><span style="font-size:16px;font-weight:bold;color:#525252">${msg:presurvey.title}</span></td>
        </tr>
        </table>
            <table cellspacing="0" cellpadding="0" border="0" id="header" class="bg_domain">
            <tr>
                <td style="padding-left:20px;width:612px;color:white;" class="mmimg">
                    ${msg:presurvey.intro}
                </td>
                <td align="right" style="padding-right:17px;">
                    <table cellspacing="0" cellpadding="0" border="0">
                    <tr>
                    <td><a href="javascript:window.close();" title="${msg:leavemessage.close}"><img src='${tplroot}/images/buttons/back.gif' width="25" height="25" border="0" alt="" /></a></td>
                    <td width="5"></td>
                    <td class="button"><a href="javascript:window.close();" title="${msg:leavemessage.close}">${msg:leavemessage.close}</a></td>
                    </tr>
                    </table>
                </td>
            </tr>
            </table>
    </td>
</tr>
<tr>
    <td valign="top" style="padding:0px 24px;">
${if:errors}
        <table cellspacing="0" cellpadding="0" border="0">
        <tr>
        <td valign="top"><img src='${webimroot}/images/icon_err.gif' width="40" height="40" border="0" alt="" /></td>
        <td width="10"></td>
        <td class="text">
            ${errors}
        </td>
        </tr>
        </table>
${endif:errors}
        <table cellspacing="1" cellpadding="5" border="0" class="form">

${if:groups}
            <tr>
                <td class="text">${msg:presurvey.department}</td>
                <td>
                <select name="group" style="min-width:200px;">${page:groups}</select>
                </td>
            </tr>
${endif:groups}

            <tr>

<!--THIS IS THE PART THAT I CHANGED TO MAKE THE USERNAME FIELD HIDDEN -->

                <!--<td class="text">${msg:presurvey.name}</td>
                <td>--><input type="hidden" name="name" size="50" value="${form:name}" class="username" ${ifnot:showname}disabled="disabled"${endif:showname}/><!--</td>-->

<!--END OF MODIFICATIONS-->

            </tr>

${if:showemail}
            <tr>
                <td class="text">${msg:presurvey.mail}</td>
                <td><input type="text" name="email" size="50" value="${form:email}" class="username"/></td>
            </tr>
${endif:showemail}
            
${if:showmessage}            
            <tr>
                <td class="text">${msg:presurvey.question}:</td>
                <td valign="top">
                    <textarea name="message" tabindex="0" cols="45" rows="2" style="border:1px solid #878787; overflow:auto">${form:message}</textarea>
                </td>
            </tr>
${endif:showmessage}            
            <tr>
                <td colspan="2" align="right">
                    <table cellspacing="0" cellpadding="0" border="0">
                    <tr>
                    <td><a href="javascript:document.surveyForm.submit();" class="but" id="sndmessagelnk">${msg:presurvey.submit}</a></td>
                    </tr>
                    </table>
                </td>
            </tr>
        </table>

        <table cellpadding="7" cellspacing="5" border="0" width="450">
        <tr>
            <td id="poweredByTD" align="center" class="copyr">
                ${msg:chat.window.poweredby} <a id="poweredByLink" href="http://mibew.org" title="Mibew Community" target="_blank">mibew.org</a>
            </td>
        </tr>
        </table>
    </td>
</tr>
<tr>
    <td valign="top" style="padding:24px">
    </td>
</tr>
</table>
</form>


</td>
</tr>
</table>
</body>
</html>

**Continued in next post**

jarradyuhas

  • Sr. Member
  • ****
  • Posts: 36
    • SusQ-Cyber Charter School
Integration with Joomla 1.5 Part 2
« Reply #1 on: September 12, 2010, 02:21:53 PM »


To top it all off, you can also update the chat window so that the user cant change their name there as well. Go ahead and access chat.tpl and make a copy of it. Replace the text of that file with the following:

Code: [Select]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>${msg:chat.window.title.agent}</title>
<link rel="shortcut icon" href="${webimroot}/images/favicon.ico" type="image/x-icon">
<link rel="stylesheet" type="text/css" href="${tplroot}/chat.css">
<script type="text/javascript" language="javascript" src="${webimroot}/js/${jsver}/common.js"></script>
<script type="text/javascript" language="javascript" src="${webimroot}/js/${jsver}/brws.js"></script>
<script type="text/javascript" language="javascript"><!--
var threadParams = { servl:"${webimroot}/thread.php",wroot:"${webimroot}",frequency:${page:frequency},${if:user}user:"true",${endif:user}threadid:${page:ct.chatThreadId},token:${page:ct.token},cssfile:"${tplroot}/chat.css",ignorectrl:${page:ignorectrl} };
//-->
</script>
<script type="text/javascript" language="javascript" src="${webimroot}/js/${jsver}/chat.js"></script>
<style type="text/css">
#header{
    height:50px;
    background:url(${tplroot}/images/bg_domain.gif) repeat-x top;
    background-color:#5AD66B;
    width:99.6%;
    margin:0px 0px 20px 0px;
}
#header .mmimg{
    background:url(${tplroot}/images/quadrat.gif) bottom left no-repeat;
}
.but{
    font-family:Verdana !important;
    font-size:11px;
    background:url(${tplroot}/images/wmchat.png) top left no-repeat;
    background-position:0px -25px;
    display:block;
    text-align:center;
    padding-top:2px;
    color:white;
    width:186px;
    height:18px;
    text-decoration:none;
}
.tplimage {
    background: transparent url(${tplroot}/images/wmchat.png) no-repeat scroll 0px 0px;
    width: 25px; height: 25px;
    -moz-background-clip: -moz-initial;
    -moz-background-origin: -moz-initial;
    -moz-background-inline-policy: -moz-initial;
}
.irefresh { background-position:-72px 0px; }
.iclose { background-position:-24px 0px; }
.iexec { background-position:-48px 0px; }
.ihistory, .ichangeuser { background-position:-96px 0px; }
.isend { background-position:-120px 0px; }
.issl { background-position:-144px 0px; }
.isound { background-position:-168px 0px; }
.inosound { background-position:-192px 0px; }
.iemail { background-position:0px 0px; }
.iclosewin { background-position:-187px -27px; width: 15px; height: 15px; }
.tplimageloc {
    background: transparent url(${webimroot}${url:image.chat.sprite}) no-repeat scroll 0px 0px;
    -moz-background-clip: -moz-initial;
    -moz-background-origin: -moz-initial;
    -moz-background-inline-policy: -moz-initial;
}
.ilog { background-position: 0px 0px;width: 20px; height: 80px; }
.imessage { background-position: 0px -82px;width: 20px; height: 85px; }
</style>

</head>
<body bgcolor="#FFFFFF" text="#000000" link="#C28400" vlink="#C28400" alink="#C28400" style="margin:0px;">

<table width="100%" style="height:100%;" cellspacing="0" cellpadding="0" border="0">
<tr>
<td valign="top">

    <table width="100%" style="height:100%;" cellspacing="0" cellpadding="0" border="0">
    <tr>
    <td></td>
    <td colspan="2" height="100" valign="top" class="bgrn">
        <table width="100%" cellspacing="0" cellpadding="0" border="0">
        <tr>
            <td width="100%">
                ${if:ct.company.chatLogoURL}
                    ${if:webimHost}
                        <a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">
                            <img src="${page:ct.company.chatLogoURL}" border="0" alt=""/>
                        </a>
                    ${else:webimHost}
                        <img src="${page:ct.company.chatLogoURL}" border="0" alt=""/>
                    ${endif:webimHost}
                ${else:ct.company.chatLogoURL}
                    ${if:webimHost}
                        <a onclick="window.open('${page:webimHost}');return false;" href="${page:webimHost}">
                            <img src="${webimroot}/images/webimlogo.gif" border="0" alt=""/>
                        </a>
                    ${else:webimHost}
                        <img src="${webimroot}/images/webimlogo.gif" border="0" alt=""/>
                    ${endif:webimHost}
                ${endif:ct.company.chatLogoURL}
            </td>
            <td align="right" valign="top" id="banner_orange">
                <table cellspacing="0" cellpadding="0" border="0" width="460">
                <tr>
                    <td height="30" align="right" valign="top" style="padding:5px">
                        <div id="engineinfo" style="display:none;">
                        </div>
                        <div id="typingdiv" style="display:none;">
                            ${msg:typing.remote}   
                        </div>
                    </td>
                </tr>
                <tr>
                    <td height="40" align="right" nowrap style="padding-right:10px"><span style="font-size:16px;font-weight:bold;color:#525252">${page:chat.title}</span></td>
                </tr>
                <tr>
                    <td height="30"></td>
                </tr>
                </table>
            </td>
        </tr>
        </table>

        <table cellspacing="0" cellpadding="0" border="0" id="header" class="bg_domain">
        <tr>
            <td style="padding-left:20px" class="mmimg">
                <table cellspacing="0" cellpadding="0" border="0">
                <tr>
${if:agent}
                <td class="text" nowrap>
                    ${if:historyParams}
                        ${msg:chat.window.chatting_with}
                        <a href="${page:historyParamsLink}" target="_blank" title="${msg:page.analysis.userhistory.title}" onclick="this.newWindow = window.open('${page:historyParamsLink}', 'UserHistory', 'toolbar=0,scrollbars=0,location=0,statusbar=1,menubar=0,width=703,height=380,resizable=1');this.newWindow.focus();this.newWindow.opener=window;return false;">${page:ct.user.name}</a>
                    ${else:historyParams}
                        ${msg:chat.window.chatting_with} <b>${page:ct.user.name}</b>
                    ${endif:historyParams}
                </td>
${endif:agent}
${if:user}
    ${if:canChangeName}
                <td class="text" nowrap>
                    <div id="changename1" style="display:${page:displ1};">
                        <table cellspacing="0" cellpadding="0" border="0"><tr>
                        <td class="text" nowrap>${msg:chat.client.name}</td>
                        <td width="10" valign="top"><img src='${webimroot}/images/free.gif' width="10" height="1" border="0" alt="" /></td>
                        <td><input id="uname" type="text" size="12" value="${page:ct.user.name}" class="username"></td>
                        <td width="5" valign="top"><img src='${webimroot}/images/free.gif' width="5" height="1" border="0" alt="" /></td>
                        <td><a href="javascript:void(0)" onclick="return false;" title="${msg:chat.client.changename}"><img class="tplimage iexec" src="${webimroot}/images/free.gif" border="0" alt="&gt;&gt;" /></a></td>
                        </tr></table>
                    </div>
                    <div id="changename2" style="display:${page:displ2};">
                        <table cellspacing="0" cellpadding="0" border="0"><tr>
                        <td class="text" nowrap>

<!--THIS IS WHAT I MODIFIED TO MAKE THE USERNAME APPEAR AS TEXT INSTEAD OF EDITABLE FORM-->

<!--<a id="unamelink" href="javascript:void(0)" onclick="return false;" title="${msg:chat.client.changename}">-->${page:ct.user.name}<!--</a>--></td>
                        <td width="10" valign="top"><img src='${webimroot}/images/free.gif' width="10" height="1" border="0" alt="" /></td>
                        <td><!--<a href="javascript:void(0)" onclick="return false;" title="${msg:chat.client.changename}"><img class="tplimage ichangeuser" src="${webimroot}/images/free.gif" border="0" alt="" /></a>-->

<!--END OF MODIFICATION-->

</td>
                        </tr></table>
                    </div>
                </td>
    ${else:canChangeName}
                <td class="text" nowrap>
                    ${msg:chat.client.name}&nbsp;${page:ct.user.name}
                </td>
    ${endif:canChangeName}
${endif:user}
${if:agent}
                <td width="10" valign="top"><img src='${webimroot}/images/free.gif' width="10" height="1" border="0" alt="" /></td>
                <td><a class="closethread" href="javascript:void(0)" onclick="return false;" title="${msg:chat.window.close_title}">
                <img class="tplimage iclose" src="${webimroot}/images/free.gif" border="0" alt="${msg:chat.window.close_title}"/></a></td>
${endif:agent}

                <td style="color:#C9C9C9;font-size:40px;padding:0px 15px 5px 15px">|</td>
${if:user}
                <td><a href="${page:mailLink}&amp;style=${styleid}" target="_blank" title="${msg:chat.window.toolbar.mail_history}" onclick="this.newWindow = window.open('${page:mailLink}&amp;style=${styleid}', 'ForwardMail', 'toolbar=0,scrollbars=0,location=0,statusbar=1,menubar=0,width=603,height=254,resizable=0'); if (this.newWindow != null) {this.newWindow.focus();this.newWindow.opener=window;}return false;"><img class="tplimage iemail" src="${webimroot}/images/free.gif" border="0" alt="Mail&nbsp;"/></a></td>
${endif:user}
${if:agent}
${if:canpost}
                <td><a href="${page:redirectLink}&amp;style=${styleid}" title="${msg:chat.window.toolbar.redirect_user}">
                <img class="tplimage isend" src="${webimroot}/images/free.gif" border="0" alt="Redirect&nbsp;" /></a></td>
${endif:canpost}
${if:historyParams}
                <td><a href="${page:historyParamsLink}" target="_blank" title="${msg:page.analysis.userhistory.title}" onclick="this.newWindow = window.open('${page:historyParamsLink}', 'UserHistory', 'toolbar=0,scrollbars=0,location=0,statusbar=1,menubar=0,width=720,height=480,resizable=1');this.newWindow.focus();this.newWindow.opener=window;return false;"><img class="tplimage ihistory" src="${webimroot}/images/free.gif" border="0" alt="History&nbsp;"/></a></td>
${endif:historyParams}
${endif:agent}
                <td><a id="togglesound" href="javascript:void(0)" onclick="return false;" title="Turn off sound">
                <img id="soundimg" class="tplimage isound" src="${webimroot}/images/free.gif" border="0" alt="Sound&nbsp;" /></a></td>
   
                <td><a id="refresh" href="javascript:void(0)" onclick="return false;" title="${msg:chat.window.toolbar.refresh}">
                <img class="tplimage irefresh" src="${webimroot}/images/free.gif" border="0" alt="Refresh&nbsp;" /></a></td>
${if:sslLink}
                <td><a href="${page:sslLink}&amp;style=${styleid}" title="SSL" >
                <img class="tplimage issl" src="${webimroot}/images/free.gif" border="0" alt="SSL&nbsp;"/></a></td>
${endif:sslLink}
                <td width="20" valign="top"><img src='${webimroot}/images/free.gif' width="20" height="1" border="0" alt="" /></td>
                </tr>
                </table>
            </td>
            <td align="right" style="padding-right:17px;">
                <table cellspacing="0" cellpadding="0" border="0">
                <tr>
                <td class="text"><span class="grey"></span></td>
                <td width="5"></td>
                <td>
                    <table cellspacing="0" cellpadding="0" border="0">
                    <tr>
                    <td width="95" height="13" bgcolor="#D09221" align="center" class="www"><a href="${msg:site.url}" title="${msg:company.title}" target="_blank">${msg:site.title}</a></td>
                    </tr>
                    </table>
                </td>
                <td width="5"></td>
                <td><a class="closethread" href="javascript:void(0)" onclick="return false;" title="${msg:chat.window.close_title}"><img class="tplimage iclosewin" src="${webimroot}/images/free.gif" border="0" alt="${msg:chat.window.close_title}"/></a></td>
                <td width="5"></td>
                </tr>
                </table>
            </td>
        </tr>
        </table>

    </td>
    </tr>

    <tr>
    <td></td>
    <td valign="top">

        <table width="100%" style="height:100%;" cellspacing="0" cellpadding="0" border="0">
        <tr>
        <td width="20" valign="top"><img class="tplimageloc ilog" src="${webimroot}/images/free.gif" border="0" alt="" /></td>
        <td colspan="2" width="100%" height="100%" valign="top" id="chatwndtd">
            <table width="100%" style="height:100%;" cellspacing="0" cellpadding="0" border="0">
            <tr>
            <td colspan="3" bgcolor="#A1A1A1"><img src='${webimroot}/images/free.gif' width="1" height="1" border="0" alt="" /></td>
            </tr>
            <tr>
            <td bgcolor="#A1A1A1"><img src='${webimroot}/images/free.gif' width="1" height="1" border="0" alt="" /></td>
            <td width="100%" height="100%" bgcolor="#FFFFFF" valign="top">
                <iframe id="chatwnd" width="100%" height="100%" src="${if:neediframesrc}${webimroot}/images/blank.html${endif:neediframesrc}" frameborder="0" style="overflow:auto;">
                Sorry, your browser does not support iframes; try a browser that supports W3 standards.
                </iframe>
            </td>
            <td bgcolor="#A1A1A1"><img src='${webimroot}/images/free.gif' width="1" height="1" border="0" alt="" /></td>
            </tr>
            <tr>
            <td colspan="3" bgcolor="#A1A1A1"><img src='${webimroot}/images/free.gif' width="1" height="1" border="0" alt="" /></td>
            </tr>
            </table>
        </td>
        </tr>
${if:canpost}
        <tr>
        <td colspan="3" height="5" style="cursor:n-resize;" id="spl1"></td>
        </tr>

        <tr>
        <td width="20" valign="top"><img class="tplimageloc imessage" src="${webimroot}/images/free.gif" border="0" alt="" /></td>
        ${if:isOpera95}
        <td width="100%" height="60%" valign="top" id="msgwndtd">
        ${else:isOpera95}
                        <td width="100%" height="100" valign="top" id="msgwndtd">
        ${endif:isOpera95}
                    <table width="100%" style="height:100%;" cellspacing="0" cellpadding="0" border="0"><tr><td colspan="3" bgcolor="#A1A1A1"><img src="${webimroot}/images/free.gif" width="1" height="1" border="0" alt="" /></td></tr><tr><td bgcolor="#A1A1A1"><img src="${webimroot}/images/free.gif" width="1" height="1" border="0" alt="" /></td><td width="100%" height="100%" bgcolor="#FFFFFF" valign="top">
                <textarea id="msgwnd" class="message" tabindex="0"></textarea>
            </td><td bgcolor="#A1A1A1"><img src="${webimroot}/images/free.gif" width="1" height="1" border="0" alt="" /></td></tr><tr><td colspan="3" bgcolor="#A1A1A1"><img src="${webimroot}/images/free.gif" width="1" height="1" border="0" alt="" /></td></tr></table>
        </td>
        <td valign="middle" id="avatarwnd"></td>
        </tr>
${endif:canpost}
        </table>

    </td>
    <td></td>
    </tr>

    <tr>
    <td height="45"></td>
    <td>
        <table width="100%" cellspacing="0" cellpadding="0" border="0">
        <tr>
        <td align="left">
            <table cellspacing="0" cellpadding="0" border="0">
            <tr>
            <td width="20"></td>

${if:agent}${if:canpost}
            <td>
                <select id="predefined" size="1" class="answer">
                <option>${msg:chat.window.predefined.select_answer}</option>
                ${page:predefinedAnswers}
                </select>
            </td>
${endif:canpost}${endif:agent}
            </tr>
            </table>
        </td>
        <td id="poweredByTD" align="center" class="copyr">${msg:chat.window.poweredby} <a id="poweredByLink" href="http://mibew.org" title="Mibew Community" target="_blank">mibew.org</a></td>
        <td align="right">

${if:canpost}
            <table cellspacing="0" cellpadding="0" border="0" id="postmessage">
            <tr>
            <td><a href="javascript:void(0)" onclick="return false;" class="but" id="sndmessagelnk">${msg:chat.window.send_message_short,send_shortcut}</a></td>
            </tr>
            </table>
${endif:canpost}
        </td>
        </tr>
        </table>
    </td>
    <td></td>
    </tr>

    <tr>
    <td width="10"><img src='${webimroot}/images/free.gif' width="10" height="1" border="0" alt="" /></td>
    <td width="100%"><img src='${webimroot}/images/free.gif' width="585" height="1" border="0" alt="" /></td>
    <td width="5"><img src='${webimroot}/images/free.gif' width="5" height="1" border="0" alt="" /></td>
    </tr>
    </table>

</td>
</tr>
</table>

</body>
</html>


That modification will remove the text link to edit the name as well as the Picture link that is used to edit name.

If Ive missed anything, let me know. Its kinda late and I might have forgotten o.O


Note: I am not the OP for these systems, but I am the OP for the hiding the User Name field and for the unlinking of the name from change system