Version: , by SiXXGuNNZ
Developer Last Online: Apr 2014
Version: Unknown
Rating:
Released: 12-15-2002
Last Update: Never
Installs: 0
No support by the author.
here is the code for the sig editor
PHP Code:
<?php
//signatureditor by AA
//vb 1.x
//modified for vb 2.x by Fryzid (fryzid@gmx.li)
//RE-Modified 07/29/01 by VirtueTech (james@virtuetech.com)
//Support here: [url]http://www.vbulletin.com/forum/showthread.php?s=&threadid=12282[/url]
// OPTIONS
// $adminsiglimit = The amount of Sig lines allowed for Administrators
// $siglimit = The amount of Sig lines allowed for everyone else
$adminsiglimit = 20;
$regsiglimit = 6;
// END OPTIONS
require("global.php");
$noheader=1;
if (isset($action)==0 or $action=="") {
$action="show";
}
if ($bbuserid == 0){
eval("echo standarderror(\$bbtitle,\"".gettemplate("error_nopermission")."\");");
exit;
}
if ($bbuserinfo[showvbcode])
$vbcode_smilies = getclickysmilies();
if ($bbuserinfo[showvbcode])
$vbcode_buttons = getcodebuttons();
$cpnav[1]="{secondaltcolor}";
$cpnav[2]="{firstaltcolor}";
$cpnav[3]="{secondaltcolor}";
$cpnav[4]="{secondaltcolor}";
$cpnav[5]="{secondaltcolor}";
$cpnav[6]="{secondaltcolor}";
$cpnav[7]="{secondaltcolor}";
eval("\$cpnav = \"".gettemplate("usercpnav")."\";");
if ($bbusername == "" || (isset($bbusername))==0){
$getusername=$DB_site->query_first("
SELECT username
FROM user
WHERE userid=$bbuserid");
$sigerror = "Signature too long! A maximum of $siglimit lines is allowed (pagebreaks)";
if (count($splitsig)>$siglimit) {
$signature .= "$previewsignature<br>$sigerror";
} else {
$signature .= "$previewsignature";
}
} else {
$signature="$signatureform";
}
if ($maximages!=0) {
$parsedsig=bbcodeparse($signature,0,$allowsmilies);
if (countchar($parsedsig,"<img")>$maximages) {
$signature .="Too many pictures and/or smilies!";
}
}
if ($action=="Save") {
$newsignature=censortext($signatureform);
$DB_site->query("UPDATE user SET signature='".addslashes($newsignature)."' WHERE userid=$bbuserid");
$url = "member.php?s=$session[sessionhash]&action=editprofile";
header ("Location: ".$url );
die ;
}
if ($action=="Back") {
$url = "member.php?s=$session[sessionhash]&action=editprofile";
header ("Location: ".$url );
die ;
}
?>
here is the code for my sig control
PHP Code:
// check max images
if ($maximagessig!=0) {
$parsedsig=bbcodeparse($signature,0,$allowsmilies);
if (countchar($parsedsig,"<img")>$maximagessig) {
eval("standarderror(\"".gettemplate("error_sigtoomanyimages")."\");");
exit;
}
}
// check signature lines
if ($maxlinessig!=0) {
$linessig = explode("\n", $signature);
if (count($linessig)>$maxlinessig) {
eval("standarderror(\"".gettemplate("error_sigtoolong")."\");");
exit;
}
}
now, the sig control works thru register.php and member.php, but I need it to work thru the sig editor php also, [humble]if anybody can modify this up for me, I would really appreciate it[/humble]
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.