Jump to content
MakeWebGames

Recommended Posts

Posted
function ProfileSig() {
global $ir, $db;
if (isset($_POST['NewPSig'])) {
 $db->query(sprintf("UPDATE `users` SET `sig`='%s' WHERE `userid`='%d'", NoXSS($_POST['NewPSig']), $ir['userid']));
 echo 'Profile Sig Updated';
} else {
 echo '<h3>Profile Sig</h3>
  <form action="preferences.php?act=ProfileSig" method="post">';
  echo 'Signature (you may use BBcode):
';
  echo sprintf("<textarea rows='10' cols='50' name='NewPSig'>%s</textarea>
", $ir['sig']);
  echo '<input type="submit" value="Change Profile Sig" />
 </form>';
}
}

 

Can anyone make the sql for this??

Posted
[mysql]ALTER TABLE `users` ADD `sig` varchar(150) NOT NULL DEFAULT '';[/mysql]

Oh okay I thought text would have been better (so people can have images and crap in their signature XD)

Moved to Modification Support

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...