Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 v3.4 - CTRL+B,I,U mod for post.asp
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

pweighill
Junior Member

United Kingdom
453 Posts

Posted - 14 August 2002 :  16:58:55  Show Profile
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  Show Profile  Visit OneWayMule's Homepage  Send OneWayMule an ICQ Message
Do you have a demo anywhere?
Go to Top of Page

pweighill
Junior Member

United Kingdom
453 Posts

Posted - 14 August 2002 :  17:44:34  Show Profile
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.
Go to Top of Page

OneWayMule
Dev. Team Member & Support Moderator

Austria
4969 Posts

Posted - 14 August 2002 :  17:52:27  Show Profile  Visit OneWayMule's Homepage  Send OneWayMule an ICQ Message
Thanks!

Does not work with Netscape 6.
Does not work with Opera 5.

My MODs:
Birthdays - Custom Policy - F.A.Q. Administration - Forum Rules - Guestbook
Links Manager - MyOwnGoogle - Profile Views - Search Log - WebSearch

Useful stuff:
Forum and MOD Installation - MOD Installation Guide - Snitz v3.4.05 Readme - Free ASP Hosts - Support Snitz
Go to Top of Page

@tomic
Senior Member

USA
1790 Posts

Posted - 14 August 2002 :  18:28:13  Show Profile  Visit @tomic's Homepage  Send @tomic an ICQ Message
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
Go to Top of Page

pweighill
Junior Member

United Kingdom
453 Posts

Posted - 15 August 2002 :  15:04:57  Show Profile
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.
Go to Top of Page

XavierSlater
Junior Member

United Kingdom
137 Posts

Posted - 15 August 2002 :  20:28:34  Show Profile  Visit XavierSlater's Homepage
Could this also be updated to include things like the Center tags, or the quote tags?

What are the limits here?
Go to Top of Page

Tmpj
Junior Member

Denmark
467 Posts

Posted - 16 August 2002 :  01:25:33  Show Profile
Nice little MOD, but more options will be good!
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 16 August 2002 :  01:39:22  Show Profile
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..
Go to Top of Page

Nathan
Help Moderator

USA
7664 Posts

Posted - 16 August 2002 :  03:38:53  Show Profile  Visit Nathan's Homepage
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
Go to Top of Page

pweighill
Junior Member

United Kingdom
453 Posts

Posted - 16 August 2002 :  04:11:59  Show Profile
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.
Go to Top of Page

blackinwhite
Average Member

Turkey
657 Posts

Posted - 16 August 2002 :  06:21:34  Show Profile
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?
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 16 August 2002 :  06:31:02  Show Profile
 ! = 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
Go to Top of Page

blackinwhite
Average Member

Turkey
657 Posts

Posted - 16 August 2002 :  15:15:04  Show Profile
thank you very much.
Go to Top of Page

seven
Senior Member

USA
1037 Posts

Posted - 16 August 2002 :  15:34:12  Show Profile  Visit seven's Homepage
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.


Go to Top of Page

Roland
Advanced Member

Netherlands
9335 Posts

Posted - 16 August 2002 :  15:39:58  Show Profile
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.
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz Communications Go To Top Of Page
This page was generated in 0.2 seconds. Powered By: Snitz Forums 2000 Version 3.4.07