PDA

View Full Version : Signature Editor hack implementation


Linus
11-16-2002, 04:28 PM
I added the signature editor hack (by Fryzid) and am looking and how to include the usercpnav template into the sedit.php file as I added a link to the signature editor in the usercpnav template.

Any help is much appreciated.

Erwin
11-16-2002, 06:48 PM
Open sedit.php.

Find:


require("global.php");


BELOW, Add:


$cpnav[1]="{ secondaltcolor}";
$cpnav[2]="{ firstaltcolor}";
$cpnav[3]="{ secondaltcolor}";
$cpnav[4]="{ secondaltcolor}";
$cpnav[5]="{ secondaltcolor}";
$cpnav[6]="{ secondaltcolor}";
$cpnav[7]="{ secondaltcolor}";
$cpnav[8]="{ secondaltcolor}";
eval("\$cpnav = \"".gettemplate("usercpnav")."\";");


NOTE: Remove the space from in front of secondaltcolor and firstaltcolor - otherwise vB.org parses that and makes it the color that vB.org uses.

Open template "_editsignature"

Find:


<FORM ACTION="sedit.php" name="vbform" METHOD="POST">


ABOVE, add:


<br>
$cpnav
<br>