Quote:
Originally Posted by RedFoxy
Ok I "fixed" it with a patch on the template, just it don't show the edit's buttons, vsa-chatbox need a real fix to prevent a JavaScript and vsa-chatbox's code injection about edit.
To patch it you must:
Open: vsa_chatbox
Search:
Code:
<td width="1%" align="{vb:stylevar right}">{vb:rawphrase edit} </td>
Replace with:
Code:
<vb:if condition="(($bbuserinfo[userid]==$vsacb_msg_arc[userid]) AND $vsacb_canmod) OR $vsacb_canmod">
<td width="1%" align="{vb:stylevar right}">{vb:rawphrase edit} </td>
</vb:if>
Open: vsa_chatbox_archive_bit
Search:
Code:
<vb:if condition="($bbuserinfo[userid]==$vsacb_msg_arc[userid]) OR $vsacb_canmod">
Replace with:
Code:
<vb:if condition="(($bbuserinfo[userid]==$vsacb_msg_arc[userid]) AND $vsacb_canmod) OR $vsacb_canmod">
Search:
Code:
<vb:if condition="($bbuserinfo[userid]==$vsacb_msg_arc[userid]) OR $vsacb_canmod">
Replace with:
Code:
<vb:if condition="(($bbuserinfo[userid]==$vsacb_msg_arc[userid]) AND $vsacb_canmod) OR $vsacb_canmod">
REMEMBER THAT IS A PATCH THAT DON'T SOLVE DEFINITELY THE TROUBLE, it don't fix the javascript or the code, a user with right knowledge can bypass that patch and use directly the javascript to edit the messages
|
thanks Redfoxy ,my site wont allowed trading also ,so i made the changes u suggested.
But is it possible that the mods and admins ,now also cant edit user messages on my board .since the edit box is gone lol
i have inserted the right user-group permissions
ps this should be inserted in the next release thats its not possible to edit messages
for the rest great mod