Version: , by (Guest)
Developer Last Online: Jan 1970
Version: Unknown
Rating:
Released: 03-24-2001
Last Update: Never
Installs: 19
No support by the author.
This is just a re-release of a hack by AA. He made this hack for vB 1.x and I made some small changes to make it work with vb 2.x
It adds a signature-editor with preview ability to your vB.
It's very simple. You just have to create a new template (_editsignature) and copy sedit.php to your vB directory. Then add a link to sedit.php in the modifyprofile template. Done.
Install instructions are included.
Fryzid
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
If you go to the usercp click on edit profile than on Signatur editor it shows the bug in the attachment, if you click on prewiew (also without changes) it seems OK
find:
-------------------------------------------------------------------------------
$DB_site->query("UPDATE user SET birthday='".addslashes($birthday)."',signature='". addslashes($signature)."',cust omtitle='$customtitle',usertitle='".addslashes($cu stomtext)."',email='".addslash es(htmlspecialchars($email))."',parentemail='".add slashes(htmlspecialchars($pare ntemail))."',coppauser='$coppauser',homepage='".ad dslashes(htmlspecialchars($hom epage))."',icq='".addslashes(htmlspecialchars($icq ))."',aim='".addslashes(htmlsp ecialchars($aim))."',yahoo='".addslashes(htmlspeci alchars($yahoo))."',usergroupi d='$bbuserinfo[usergroupid]' WHERE userid='$bbuserinfo[userid]'");
and replace with:
-------------------------------------------------------------------------------
$DB_site->query("UPDATE user SET birthday='".addslashes($birthday)."',customtitle=' $customtitle',usertitle='".add slashes($customtext)."',email='".addslashes(htmlsp ecialchars($email))."',parente mail='".addslashes(htmlspecialchars($parentemail)) ."',coppauser='$coppauser',hom epage='".addslashes(htmlspecialchars($homepage))." ',icq='".addslashes(htmlspecia lchars($icq))."',aim='".addslashes(htmlspecialchar s($aim))."',yahoo='".addslashe s(htmlspecialchars($yahoo))."',usergroupid='$bbuse rinfo[usergroupid]' WHERE userid='$bbuserinfo[userid]'");
In the old SQL-Statement was the Signature Field in the Database updated with a non-existing Form-Field of the Site. So i removed the Signature-Filed from the SQL-Statement.
Before this, the Signature was deleted when saving the Profile, because the Filed was missing.
find:
-------------------------------------------------------------------------------
$DB_site->query("UPDATE user SET birthday='".addslashes($birthday)."',signature='". addslashes($signature)."',customtitle='$customtitl e',usertitle='".addslashes($customtext)."',email=' ".addslashes(htmlspecialchars($email))."',parentem ail='".addslashes(htmlspecialchars($parentemail)). "',coppauser='$coppauser',homepage='".addslashes(h tmlspecialchars($homepage))."',icq='".addslashes(h tmlspecialchars($icq))."',aim='".addslashes(htmlsp ecialchars($aim))."',yahoo='".addslashes(htmlspeci alchars($yahoo))."',usergroupid='$bbuserinfo[usergroupid]' WHERE userid='$bbuserinfo[userid]'");
and replace with:
-------------------------------------------------------------------------------
$DB_site->query("UPDATE user SET birthday='".addslashes($birthday)."',customtitle=' $customtitle',usertitle='".addslashes($customtext) ."',email='".addslashes(htmlspecialchars($email)). "',parentemail='".addslashes(htmlspecialchars($par entemail))."',coppauser='$coppauser',homepage='".a ddslashes(htmlspecialchars($homepage))."',icq='".a ddslashes(htmlspecialchars($icq))."',aim='".addsla shes(htmlspecialchars($aim))."',yahoo='".addslashe s(htmlspecialchars($yahoo))."',usergroupid='$bbuse rinfo[usergroupid]' WHERE userid='$bbuserinfo[userid]'");
In the old SQL-Statement was the Signature Field in the Database updated with a non-existing Form-Field of the Site. So i removed the Signature-Filed from the SQL-Statement.
Before this, the Signature was deleted when saving the Profile, because the Filed was missing.