Originally posted by gorgonzola:
<STRONG>I don't quite see how that would be possible to implement ... )</STRONG>
you could always try this:
<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier>##################################### ########
# Script: Signature Preview <font color = blue>1.1</font> Beta A
# Author: MasterMind
# Email: ubbdev@h-realms.com
#############################################
# Note: Backup your files! Report any bugs.
#############################################
##OPEN:
#ubb_profile.cgi
find:
# convert signature
$Signature = &reverse_ubb_code(<font color = red>"$user_profile[<font color = blue>12</font>]"</font>);
$Signature =~ s/<p>/\n\r\n/isg;
replace with:
# convert signature
$user_profile[<font color = blue>12</font>] =~ s/(\[IMG\])(\S+?)(\[\/IMG\])/ <IMG SRC=<font color = red>"$<font color = blue>2</font>"</font>> /isg;
$Signature = &reverse_ubb_code(<font color = red>"$user_profile[<font color = blue>12</font>]"</font>);
$Signature =~ s/<p>/\n\r\n/isg;
##OPEN:
#public_edit_profile.pl
find:
print <<THISFIELD;
<tr bgcolor=<font color = red>"$vars_style{BGColor}"</font>>
<td valign=<font color = red>"top"</font> width=<font color = red>"<font color = blue>45</font>%"</font>>
<FONT size=<font color = red>"$vars_style{TextSize}"</font> FACE=<font color = red>"$vars_style{FontFace}"</font>>
$B1
$vars_wordlets{signature_field}
$B2:
<BR>
<FONT SIZE=<font color = red>"<font color = blue>1</font>"</font>>
$vars_wordlets{signatures_explained} $ImagesWording</FONT>
</font>
</td>
<td>
<TEXTAREA NAME=<font color = red>"signature"</font> ROWS=<font color = red>"<font color = blue>5</font>"</font> COLS=<font color = red>"<font color = blue>35</font>"</font>>
$Signature
</TEXTAREA>
</td>
</tr>
THISFIELD
under it add:
print <<SIGPREV;
<tr bgcolor=<font color = red>"$vars_style{BGColor}"</font>>
<td valign=<font color = red>"top"</font> width=<font color = red>"<font color = blue>45</font>%"</font>>
<FONT size=<font color = red>"$vars_style{TextSize}"</font> FACE=<font color = red>"$vars_style{FontFace}"</font>>
$vars_wordlets{sig_prev}
<BR>
</td>
<td>
<FONT size=<font color = red>"$vars_style{TextSize}"</font> FACE=<font color = red>"$vars_style{FontFace}"</font>>
$user_profile[<font color = blue>12</font>]
</td>
</tr>
</font>
SIGPREV
open vars_wordlets.cgi and find:
details => <font color = red>"Details"</font>,
under add:
sig_prev => <font color = red>"Signature Preview:"</font>,
#DONE#</font>[/code]