php forum
php mysql forum
php mysql smarty
 
Topic Options
#209286 - 03/22/01 10:00 AM Alt - P for Posting or Control - P for mac
poil Offline
Enthusiast

Registered: 08/14/00
Posts: 492
Loc: poilville, in the republic of ...
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:<br /><pre><br /><input type=submit value = \"$lang[TEXT_CONT]\" class=\"buttons\"><br /></pre><br />change it so it looks like this:<br /><pre><br /><input type=submit value = \"$lang[TEXT_CONT]\" accesskey=\"S\" class=\"buttons\"><br /></pre><br /><br />and go into addpost.php and find the line:<br /><pre><br /> echo ".";<br /> echo "<br /> </p><p><br /> <input type=submit value = \"$lang[TEXT_CONT]\" class=\"buttons\"><br /> </form><br /> ";<br /><br /> $html -> close_table();<br /> $html -> send_footer();<br /> exit;<br /> }<br /></pre><br /><br />and change it so it looks like this:<br /><br /><pre><br /> echo ".";<br /> echo "<br /> </p><p><br /> <input type=submit value = \"$lang[TEXT_CONT]\" accesskey=\"S\" class=\"buttons\"><br /> </form><br /> ";<br /><br /> $html -> close_table();<br /> $html -> send_footer();<br /> exit;<br /> }<br /></pre><br /><br />[:red]--------------</font color=red><br />http://extremeforums.org
_________________________
Extreme!!!

Top
#209287 - 03/22/01 10:08 AM Re: Alt - P for Posting or Control - P for mac [Re: vent]
poil Offline
Enthusiast

Registered: 08/14/00
Posts: 492
Loc: poilville, in the republic of ...
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.<br /><br />[:red]--------------</font color=red><br />http://extremeforums.org
_________________________
Extreme!!!

Top
#209288 - 03/22/01 10:34 AM Re: Alt - P for Posting or Control - P for mac [Re: vent]
MTO Offline
Addict

Registered: 01/31/00
Posts: 1524
Loc: Burgos, Spain.
Your whole thing is too cool. []/w3timages/icons/cool.gif[/]<br /><br />Mateo Byler<br />CruceDeCaminos.com
_________________________
Mateo Byler
CruceDeCaminos.com

Top
#209289 - 03/22/01 11:30 AM Re: Alt - P for Posting or Control - P for mac [Re: D_Wolfwood]
poil Offline
Enthusiast

Registered: 08/14/00
Posts: 492
Loc: poilville, in the republic of ...
i added instructions<br /><pre><br /> echo "<br /> <p><br /> <input type=submit value = \"$lang[TEXT_CONT]\" accesskey=\"S\" class=\"buttons\"><br /><br /><br /> ";<br /> if (ereg("Mac",$HTTP_USER_AGENT)) {<br /> $command = "Control";<br /> }<br /> else {<br /> $command = "Alt";<br /> }<br /> echo "You can Press $command - P to check the Preview Button $lang[CAN_ATTACH].<br /><br /> You can Press $command - E to check the Email Button.<br /><br /> You can Press $command - S to Submit your post.<br /><br />";<br /> echo "</form>";<br /></pre><br />it checks wether the user is on a mac or a pc and shoiws alt/control accordingly.<br /><br />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.<br /><br />[:red]--------------</font color=red><br />http://extremeforums.org<P ID="edit"><FONT class="small"><EM>Edited by poil on 03/22/01 02:13 PM.</EM></FONT></P>
_________________________
Extreme!!!

Top


Who's Online
0 registered (), 24 Guests and 15 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Spell Check [beta]
by Bill B
Today at 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
Today at 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
Today at 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
Today at 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
Active Topics.
by AllenAyres
11/11/08 02:13 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
David DelMonte, nick1, Begbie, cenk, MATTO
13363 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks