[7.0] [Finished] - Admin edit message hack - 07/30/2006 9:42 AM
Guys,
Here is my hack for UBB threads 7.0 This mod gives the admin the option of the radio button to edit ANY message and tick off the 'edited by'. It can easily be scripted to allow mods to do this as well.
Enjoy!
MOD START
*****
Admin No Edit hack mod 1.0 - UBB 7 beta 2
by aus-city
http://www.aus-city.com/ubbthreads/ubbthreads.php
files modified (1): /scripts/editpost.inc.php
Here is my hack for UBB threads 7.0 This mod gives the admin the option of the radio button to edit ANY message and tick off the 'edited by'. It can easily be scripted to allow mods to do this as well.
Enjoy!
MOD START
*****
Admin No Edit hack mod 1.0 - UBB 7 beta 2
by aus-city
http:/
files modified (1): /scripts/editpost.inc.php
Code
Find:
// Signature added to this post?
$addsigcheck = "";
if ($addsig) {
$addsigcheck = "checked = \"checked\"";
}
$iconselect = $html -> icon_select($Icon);
if ( $user['USER_ID'] == $Postedby ) {
$markeditselect = "<input type=\"checkbox\" value=\"1\" name=\"markedit\" checked=\"checked\" class=\"form-checkbox\" /> {$ubbt_lang['MARK_EDIT']}
";
Code
Replace with:
// Signature added to this post?
$addsigcheck = "";
if ($addsig) {
$addsigcheck = "checked = \"checked\"";
}
$iconselect = $html -> icon_select($Icon);
if ( $user['USER_ID'] == $Postedby || $user['USER_MEMBERSHIP_LEVEL'] == "Administrator") {
$markeditselect = "<input type=\"checkbox\" value=\"1\" name=\"markedit\" checked=\"checked\" class=\"form-checkbox\" /> {$ubbt_lang['MARK_EDIT']}
";