• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

signature Help

Djivar

AKA Wickedviruz
Joined
Sep 28, 2009
Messages
1,641
Reaction score
19
Location
Sweden,edsbyn
Hello, im using the loleslay layout lay, and i have problem with my signature, (0.3.5)

First everything is like it should be and when i write my name and press create signature

First page that one works



And when i enter the name and the signature shuld be showen to, but it looks like this


it should look like this


Please help me :/ Tell me if you need to se the script to
 
Last edited:
Omg Thx You got my fully respect! :)


Signatures.php
PHP:
<?PHP
$imagename = array(0 => 'blue', 1 => 'red', 2 => 'green');
$name = stripslashes(ucwords(strtolower(trim($_REQUEST['character']))));
$img = (int) $_REQUEST['image'];
if(empty($name)) {
	$main_content .= '<p></p><center><form action="" method="post"><B>Enter Character Name:</B><input type="textbox" name="character"><br/><br/><B><h3><u>Select Signature:</u></B></h3><select name=image><option value="">(Select Image)</option>';
	foreach($imagename as $id => $image_n) {
	$main_content .= '<option value="'.$id.'" onClick="this.form.submit()"';
		if($id == $img)
		$main_content .= ' selected="selected"';
	$main_content .= '>'.$image_n.'</option>';
	}
	$main_content .= '</select><br><br>
			 <img src="signatures/'.$imagename[$img].'.png" width="350"/><br/><br>
			  <input type="submit" value="Create Signature"></form></center>';
		} else {
	$main_content .= '<br><TABLE BORDER=0><TR><TD></TD></TR></TABLE><TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR='.$config['site']['vdarkborder'].'><TD COLSPAN=2 CLASS=white><B>Signature</B></TD></TR>';
	$main_content .= "<TR BGCOLOR=".$config['site']['darkborder']."><TD WIDTH=20%>Forum Link:</TD><TD><input type='text' size='75' onclick='this.select();' value='[url=http://" . $_SERVER['HTTP_HOST'] . "/?subtopic=characters&name=" .urlencode($name) . "][IMG]http://" . $_SERVER['HTTP_HOST'] . "/signature.php?character=" .urlencode($name) . "&image=" . $img . "[/IMG][/url]' /></TD></TR>";
	$main_content .= "<TR BGCOLOR=".$config['site']['lightborder']."><TD WIDTH=20%>Direct Link:</TD><TD><input type='text' size='60' onclick='this.select();' value='http://" . $_SERVER['HTTP_HOST'] . "/signature.php?character=" .urlencode($name) . "&image=" . $img . "' /></TD></TR>";
	$main_content .= "<TR BGCOLOR=".$config['site']['darkborder']."><TD COLSPAN='2' style='text-align: center;'><a href='http://" . $_SERVER['HTTP_HOST'] . "/?subtopic=characters&name=" .urlencode($name) . "'><img src='signature.php?character=" .urlencode($name) . "&image=" . $img . "' /></a></TD></TR>";
	$main_content .= '</TD></TR></TABLE>';
}
?>
 
You see the second picture i uploaded? there is it going to be the picture with the name and all stuff you know
 
PHP:
<?PHP 
$imagename = array(0 => 'blue', 1 => 'red', 2 => 'green'); 
$name = stripslashes(ucwords(strtolower(trim($_REQUEST['character'])))); 
$img = (int) $_REQUEST['image']; 
if(empty($name)) { 
    $main_content .= '<p></p><center><form action="" method="post"><B>Enter Character Name:</B><input type="textbox" name="character"><br/><br/><B><h3><u>Select Signature:</u></B></h3><select name=image><option value="">(Select Image)</option>'; 
    foreach($imagename as $id => $image_n) { 
    $main_content .= '<option value="'.$id.'" onClick="this.form.submit()"'; 
        if($id == $img) 
        $main_content .= ' selected="selected"'; 
    $main_content .= '>'.$image_n.'</option>'; 
    } 
    $main_content .= '</select><br><br> 
             <img src="signatures/'.$imagename[$img].'.png" width="350"/><br/><br> 
              <input type="submit" value="Create Signature"></form></center>'; 
        } else { 
    $main_content .= '<br><TABLE BORDER=0><TR><TD></TD></TR></TABLE><TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR='.$config['site']['vdarkborder'].'><TD COLSPAN=2 CLASS=white><B>Signature</B></TD></TR>'; 
    $main_content .= "<TR BGCOLOR=".$config['site']['darkborder']."><TD WIDTH=20%>Forum Link:</TD><TD><input type='text' size='75' onclick='this.select();' value='[url=http://" . $_SERVER['HTTP_HOST'] . "/?subtopic=characters&name=" .urlencode($name) . "][IMG]http://" . $_SERVER['HTTP_HOST'] . "/signature.php?character=" .urlencode($name) . "&image=" . $img . "[/IMG][/url]' /></TD></TR>"; 
    $main_content .= "<TR BGCOLOR=".$config['site']['lightborder']."><TD WIDTH=20%>Direct Link:</TD><TD><input type='text' size='60' onclick='this.select();' value='http://" . $_SERVER['HTTP_HOST'] . "/signature.php?character=" .urlencode($name) . "&image=" . $img . "' /></TD></TR>"; 
    $main_content .= "<TR BGCOLOR=".$config['site']['darkborder']."><TD COLSPAN='2' style='text-align: center;'><a href='http://" . $_SERVER['HTTP_HOST'] . "/?subtopic=characters&name=" .urlencode($name) . "'><img src='http://" . $_SERVER['HTTP_HOST'] . "/signature.php?character=" .urlencode($name) . "&image=" . $img . "' /></a></TD></TR>"; 
    $main_content .= '</TD></TR></TABLE>'; 
} 
?>
 
PHP:
<?PHP
$name = stripslashes(ucwords(strtolower(trim($_REQUEST['character']))));
$image = stripslashes(ucwords(strtolower(trim($_REQUEST['image']))));
if(empty($name)) {
$main_content .= ' <p></p><center><form action="" method="get">
<input type="hidden" name="subtopic" value="signatures"/>
<input type="hidden" name="info" value="true"/>
<B>Enter Character Name:</B>
<input type="textbox" name="character">
<br/><br/><B><h3><u>Select Signature:</u></B></h3>
<input type="radio" name="image" value="0"/> 
<img src="signatures/blue.png" width="350"/><br/>
<input type="radio" name="image" value="1"/> 
<img src="signatures/red.png" width="350"/><br/>
<input type="radio" name="image" value="2"/> 
<img src="signatures/green.png" width="350"/><br/>
<input type="submit" value="Create Signature">
</form></center>';
}
else
{
$main_content .= '<br><TABLE BORDER=0><TR><TD></TD></TR></TABLE><TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR='.$config['site']['vdarkborder'].'><TD COLSPAN=2 CLASS=white><B>Signature</B></TD></TR>';
$main_content .= "<TR BGCOLOR=".$config['site']['darkborder']."><TD WIDTH=20%>Forum Link:</TD><TD><input type='text' size='75' onclick='this.select();' value='[url=http://" . $_SERVER['HTTP_HOST'] . "/?subtopic=characters&name=" .urlencode($name) . "][IMG]http://" . $_SERVER['HTTP_HOST'] . "/signature.php?character=" .urlencode($name) . "&image=" . $image . "[/IMG][/url]' /></TD></TR>";
$main_content .= "<TR BGCOLOR=".$config['site']['lightborder']."><TD WIDTH=20%>Direct Link:</TD><TD><input type='text' size='60' onclick='this.select();' value='http://" . $_SERVER['HTTP_HOST'] . "/signature.php?character=" .urlencode($name) . "&image=" . $image . "' /></TD></TR>";
$main_content .= "<TR BGCOLOR=".$config['site']['darkborder']."><TD COLSPAN='2' style='text-align: center;'><a href='http://" . $_SERVER['HTTP_HOST'] . "/?subtopic=characters&name=" .urlencode($name) . "'><img src='signature.php?character=" .urlencode($name) . "&image=" . $image . "' /></a></TD></TR>";
$main_content .= '</TD></TR></TABLE>';
}
?>
 
Still dont get the second picture after perssing create signarute :(

it should look like this


But look like this


I added a rep to you for helping me with this :)
 
Last edited:
Back
Top