Author |
Topic  |
pweighill
Junior Member
 
United Kingdom
453 Posts |
Posted - 14 August 2002 : 16:58:55
|
Well, could this be the first released mod for v3.4?
What this mod does is change the posting page so that when you press CTRL+B, CTRL+I or CTRL+U on while in the message section, the forum code for bold, italics or underline is added to the message box.
To make this mod work, add the following line to post.asp, just before the </body> tag.
<script language="JavaScript" type="text/javascript" src="inc_keydown.js"></script>
and download the file: inc_keydown.js and place in your forum directory.
It works IE6, but not with Mozilla 1.1. Haven't tried any other browsers yet. |
Edited by - pweighill on 14 August 2002 16:59:49 |
|
OneWayMule
Dev. Team Member & Support Moderator
    
Austria
4969 Posts |
Posted - 14 August 2002 : 17:09:02
|
Do you have a demo anywhere? |
 |
|
pweighill
Junior Member
 
United Kingdom
453 Posts |
Posted - 14 August 2002 : 17:44:34
|
I've put a demo page here.
It's just a static page, so you can't post anything but you can try out the keypresses. |
 |
|
OneWayMule
Dev. Team Member & Support Moderator
    
Austria
4969 Posts |
|
@tomic
Senior Member
   
USA
1790 Posts |
Posted - 14 August 2002 : 18:28:13
|
quote: Does not work with Netscape 6. Does not work with Opera 5.
I saw that coming!  These things NEVER work in anything but IE.
@tomic |
SportsBettingAcumen.com |
 |
|
pweighill
Junior Member
 
United Kingdom
453 Posts |
Posted - 15 August 2002 : 15:04:57
|
I've updated the inc_keydown.js slightly. Doesn't do anything new, just removed some code that wasn't needed so it's slightly smaller. |
 |
|
XavierSlater
Junior Member
 
United Kingdom
137 Posts |
Posted - 15 August 2002 : 20:28:34
|
Could this also be updated to include things like the Center tags, or the quote tags?
What are the limits here? |
 |
|
Tmpj
Junior Member
 
Denmark
467 Posts |
Posted - 16 August 2002 : 01:25:33
|
Nice little MOD, but more options will be good! |
 |
|
RichardKinser
Snitz Forums Admin
    
USA
16655 Posts |
Posted - 16 August 2002 : 01:39:22
|
what other things do you want?
just use these as an example:
if (code==66) {bold(); return false;} if (code==73) {italicize(); return false;} if (code==85) {underline(); return false;}
if you wanted to add center (CTRL+C), the keycode for C is 67 so you would add this line:
if (code==67) {center(); return false;}
if you wanted to add Quotes (CTRL+Q), the key code for Q is 81 so you would add this line:
if (code==81) {quote(); return false;}
etc.. |
 |
|
Nathan
Help Moderator
    
USA
7664 Posts |
Posted - 16 August 2002 : 03:38:53
|
quote: Well, could this be the first released mod for v3.4?
Nope, Active Users 4.0 was already out for 3.4 |
Nathan Bales CoreBoard | Active Users Download |
 |
|
pweighill
Junior Member
 
United Kingdom
453 Posts |
Posted - 16 August 2002 : 04:11:59
|
quote: Originally posted by RichardKinser
if you wanted to add center (CTRL+C), the keycode for C is 67 so you would add this line:
if (code==67) {center(); return false;}
I wouldn't use any of the following: CTRL+Z,X,C,V as these are already used for Undo, Cut, Copy, Paste. |
 |
|
blackinwhite
Average Member
  
Turkey
657 Posts |
Posted - 16 August 2002 : 06:21:34
|
very useful mod in terms of accesibility. the "accesskey" tag in (X)HTML is still a problem.
BTW, Richard,
do you know any list of keycodes? |
 |
|
RichardKinser
Snitz Forums Admin
    
USA
16655 Posts |
Posted - 16 August 2002 : 06:31:02
|
! = 33 " = 34 # = 35 $ = 36 % = 37 & = 38 ' = 39 ( = 40 ) = 41 * = 42 + = 43 , = 44 - = 45 . = 46 / = 47 0 = 48 1 = 49 2 = 50 3 = 51 4 = 52 5 = 53 6 = 54 7 = 55 8 = 56 9 = 57 : = 58 ; = 59 < = 60 = = 61 > = 62 ? = 63 @ = 64 A = 65 B = 66 C = 67 D = 68 E = 69 F = 70 G = 71 H = 72 I = 73 J = 74 K = 75 L = 76 M = 77 N = 78 O = 79 P = 80 Q = 81 R = 82 S = 83 T = 84 U = 85 V = 86 W = 87 X = 88 Y = 89 Z = 90 [ = 91 \ = 92 ] = 93 ^ = 94 _ = 95 ` = 96 a = 97 b = 98 c = 99 d = 100 e = 101 f = 102 g = 103 h = 104 i = 105 j = 106 k = 107 l = 108 m = 109 n = 110 o = 111 p = 112 q = 113 r = 114 s = 115 t = 116 u = 117 v = 118 w = 119 x = 120 y = 121 z = 122 { = 123 | = 124 } = 125 ~ = 126 = 127 = 128 = 129 = 130 = 131 = 132 = 133 = 134 = 135 = 136 = 137 = 138 = 139 = 140 = 141 = 142 = 143 = 144 = 145 = 146 = 147 = 148 = 149 = 150 = 151 = 152 = 153 = 154 = 155 = 156 = 157 = 158 = 159 = 160 = 161 = 162 = 163 = 164 = 165 = 166 = 167 = 168 = 169 = 170 = 171 = 172 = 173 = 174 = 175 = 176 = 177 = 178 = 179 = 180 = 181 = 182 = 183 = 184 = 185 = 186 = 187 = 188 = 189 = 190 = 191 = 192 = 193 = 194 = 195 = 196 = 197 = 198 = 199 = 200 = 201 = 202 = 203 = 204 = 205 = 206 = 207 = 208 = 209 = 210 = 211 = 212 = 213 = 214 = 215 = 216 = 217 = 218 = 219 = 220 = 221 = 222 = 223 = 224 = 225 = 226 = 227 = 228 = 229 = 230 = 231 = 232 = 233 = 234 = 235 = 236 = 237 = 238 = 239 = 240 = 241 = 242 = 243 = 244 = 245 = 246 = 247 = 248 = 249 = 250 = 251 = 252 = 253 = 254 = 255 |
 |
|
blackinwhite
Average Member
  
Turkey
657 Posts |
Posted - 16 August 2002 : 15:15:04
|
thank you very much. |
 |
|
seven
Senior Member
   
USA
1037 Posts |
Posted - 16 August 2002 : 15:34:12
|
This code is actually quite cool. Just type a sentence on his demo page, select the sentence. (hightlite it with your mouse) and then hit control+b. It's better than the prompt-mode.
|
|
 |
|
Roland
Advanced Member
    
Netherlands
9335 Posts |
Posted - 16 August 2002 : 15:39:58
|
Ctrl B is the code to add a site to my favorites and Ctrl I toggles a side-bar on or off. Ctrl C is copy and Ctrl Z is undo. |
 |
|
Topic  |
|