Or - if you want to, just comment out the whole thing - change this
PHP Code:
// get user's signature
if ($newthread['userid']){
$signature = "\n-- \n";
$signature .= $newthread['username'];
//if ($userinfo[customtitle]){ $signature .= " - $userinfo[usertitle]"; }
//Only show signature if showsignature is true for this post
if ($newthread['showsignature']){
$get_userinfo=$DB_site->query("SELECT field1 AS signature,usertitle,customtitle ".
"FROM " . TABLE_PREFIX . "user AS user LEFT JOIN " .
TABLE_PREFIX . "userfield AS userfield ON user.userid=userfield.userid WHERE
user.userid={$newthread['userid']} LIMIT 1");
$userinfo=$DB_site->fetch_array($get_userinfo);
$signature .= "\n\n";
$signature .= format_text($userinfo['signature']);
}
$signature .= "\n------------------------------------------------------------------------\n";
$signature .= "{$newthread['username']}'s Profile: {$settings['profileurl']}{$newthread['userid']}\n";
$signature .= "View this thread: {$settings['threadurl']}{$newthread['threadid']}\n";
} else {
$userinfo = false;
$signature = "\n-- \n{$newthread['username']} - Unregistered User";
$signature .= "\n------------------------------------------------------------------------\n";
$signature .= "View this thread: {$settings['threadurl']}{$newthread['threadid']}\n";
}
to this
PHP Code:
// get user's signature
// if ($newthread['userid']){
// $signature = "\n-- \n";
// $signature .= $newthread['username'];
//if ($userinfo[customtitle]){ $signature .= " - $userinfo[usertitle]"; }
//Only show signature if showsignature is true for this post
// if ($newthread['showsignature']){
// $get_userinfo=$DB_site->query("SELECT field1 AS signature,usertitle,customtitle ".
// "FROM " . TABLE_PREFIX . "user AS user LEFT JOIN " .
// TABLE_PREFIX . "userfield AS userfield ON user.userid=userfield.userid WHERE
// user.userid={$newthread['userid']} LIMIT 1");
//
// $userinfo=$DB_site->fetch_array($get_userinfo);
//
// $signature .= "\n\n";
// $signature .= format_text($userinfo['signature']);
// }
//
// $signature .= "\n------------------------------------------------------------------------\n";
// $signature .= "{$newthread['username']}'s Profile: {$settings['profileurl']}{$newthread['userid']}\n";
// $signature .= "View this thread: {$settings['threadurl']}{$newthread['threadid']}\n";
// } else {
// $userinfo = false;
// $signature = "\n-- \n{$newthread['username']} - Unregistered User";
// $signature .= "\n------------------------------------------------------------------------\n";
// $signature .= "View this thread: {$settings['threadurl']}{$newthread['threadid']}\n";
// }
or - you can remove the entire routine. I choose to leave the code in place - which causes a tiny performance hit, but at least it's easy to remember what I did when a new release comes out
cheers,
allan