UBB.Dev
Posted By: poil Alt - P for Posting or Control - P for mac - 03/22/2001 6:00 PM
Alt - S for Posting or Control - S for mac. so you can just press alt s to submit/preview your post. quite simple to do, you can probably add these keys to others things such as after preview if everything looks okey you can press alt p and it will post it. go into addpost.php and find this line:

<input type=submit value = "$lang[TEXT_CONT]" class="buttons">

change it so it looks like this:

<input type=submit value = "$lang[TEXT_CONT]" accesskey="S" class="buttons">


and go into addpost.php and find the line:

echo ".";
echo "
</p><p>
<input type=submit value = "$lang[TEXT_CONT]" class="buttons">
</form>
";

$html -> close_table();
$html -> send_footer();
exit;
}


and change it so it looks like this:


echo ".";
echo "
</p><p>
<input type=submit value = "$lang[TEXT_CONT]" accesskey="S" class="buttons">
</form>
";

$html -> close_table();
$html -> send_footer();
exit;
}


[:red]--------------
http://extremeforums.org
Posted By: poil Re: Alt - P for Posting or Control - P for mac - 03/22/2001 6:08 PM
oops, an example can be seen at http://www.extremeforums.org/newpost.php?Cat=8&Board=testboard i am going to put some text on the bottom so people know about it. eek a cat.

[:red]--------------
http://extremeforums.org
Posted By: MTO Re: Alt - P for Posting or Control - P for mac - 03/22/2001 6:34 PM
Your whole thing is too cool. []/w3timages/icons/cool.gif[/]

Mateo Byler
CruceDeCaminos.com
Posted By: poil Re: Alt - P for Posting or Control - P for mac - 03/22/2001 7:30 PM
i added instructions

echo "





";
if (ereg("Mac",$HTTP_USER_AGENT)) {
$command = "Control";
}
else {
$command = "Alt";
}
echo "You can Press $command - P to check the Preview Button $lang[CAN_ATTACH].

You can Press $command - E to check the Email Button.

You can Press $command - S to Submit your post.

";
echo "";


it checks wether the user is on a mac or a pc and shoiws alt/control accordingly.

this one can easily be used in the perl version all you have to copy is the accesskey="S" and make S whatever key you want it to be.

[:red]--------------
http://extremeforums.org

Edited by poil on 03/22/01 02:13 PM.

© UBB.Developers