..Increase the size of the box the security code box?

Is message board greying out your hair (at least what's left of it)? Let us help you here
Locked
Popparod
Posts: 6
Joined: Wed Apr 18, 2007 8:56 pm

..Increase the size of the box the security code box?

Post by Popparod »

http://www.afbawindgap.org/mboard/mboard.php

...Hi...!

...it's me again....sorry to bother you...

...is there a way to increase the size of the box the security code is in..?

......and put it directly over the input box...?

....Oh yeah...

....My mail works on both gBook an mBoard...

....Thanks for all your help....

...................................Rodney...............
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

The easiest way (without having to change any of the image PHP code) is to open mboard.php in Notepad, find

Code: Select all

<img src="print_sec_img.php" width="100" height="20" alt="Security image" border="1">
and change width to 200 and height 40. The numbers might not be as smooth but should do the job.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Popparod
Posts: 6
Joined: Wed Apr 18, 2007 8:56 pm

width="100" height="20"

Post by Popparod »

....Thanks....
perthmetro
Posts: 10
Joined: Fri Jan 04, 2008 4:43 pm

Post by perthmetro »

Try this if you have the number as text only...

place these tags in the style.css file

p.secnumber {
text-align:right;
padding-right:500px;
margin-bottom:-15px;
}

input.security {
font-size: 25px;
font-weight:bold;
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
color:#000000;
background-color:#FFFFFF;
}

Then add this code

Code: Select all

<p class="secnumber">Security number: 
<b><font size="20px"><?php
if ($settings['autosubmit']==1) {
    echo '<img src="print_sec_img.php" width="200" height="40" alt="Security image" border="1">';
} elseif ($settings['autosubmit']==2) {
    echo $_SESSION['secnum'];
}
?>
</font></b>
</p>
<p class="secnumber">confirm above number:
<input class="security" type="text" size="7" name="secnumber" maxlength="5"></p>
<p>&nbsp;
<?php
foreach ($_POST as $k=>$v) {
    if ($k == 'secnumber') {continue;}
    echo '<input type="hidden" name="'.htmlspecialchars($k).'" value="'.htmlspecialchars(stripslashes($v)).'">';
}
?>
</p>
<p class="secnumber"><input class="security" type="submit" value=" Continue "></p>
</form>
</td>
</tr>
</table>

<p>&nbsp;</p>
<p>&nbsp;</p>

<?php
printDownHTML();
exit();
}

between:

Code: Select all

<p>This is a security check that prevents automated signups of this forum (SPAM).
Please enter the security number displayed below into the input field and click
the continue button.</p>

and this

Code: Select all

function JunkMark($email,$comments) {
Locked