|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
||||
|
||||
|
[code] tag alert...
Would it be possible to have a little bit of JavaScript that when a
new post or thread was made or edited would check the post for the existance of keywords like <script or <?php or <% or anything else specific to various programming languages, and also look for the existance of [code] or [php] tags, and if not, then create an alert() box saying something like "It seems you are posting some code, but it appears you have omitted [code] or [php] tags!". I'm sure plenty of other people tire of seeing pages and pages of code posted by n00bs who "didn't know any better". Whatcha reckon?
__________________
Support requests via PM will be ignored! |
|
#2
|
||||
|
||||
|
I reckon it would be simple enough if you can workout where the code is that doesn't let you post less than 2 characters, etc.
|
|
#3
|
||||
|
||||
|
That's done in a function called validateMessage() in global.js.
|
|
#4
|
||||
|
||||
|
write the patch and submit it
me, I need to get to work on the shoutbox bracket bug ![]()
__________________
- "Cryptographically secure linear feedback shift register based stream ciphers" -- a phrase that'll get any party started. - Why know the ordinary when you can understand the extraordinary? - Sponsor my caffeine addiction! (36.70 USD recieved so far -- Latest donor: Mark Foxvog) |
|
#5
|
||||
|
||||
|
Yeah, I think this would be an awesoem idea. The only problem, is you can't really just check for code (other than markup languages) because the code can start with everyday words. And you can't really just check for ( or ) because they're common. The only thing you could really check for is { and } and MAYBE #.
Again this is talking everything that is not a markup language :P
__________________
![]() Pain is weakness leaving the body. |
|
#6
|
||||
|
||||
|
He's not saying check for everything. Check for <?, <% and <script and you'll catch quite a few instances. The goal isn't to catch everything, just most of it.
---John Holmes... |
|
#7
|
||||
|
||||
|
Quote:
I sent a ticket in about it, but it confused them, I think. ---John Holmes... |
|
#8
|
||||
|
||||
|
Quote:
sorry, I'm limited to one fix at a time till I get pomoted to mod ![]() |
|
#9
|
||||
|
||||
|
Quote:
OK we are going to look into these 2 fixes, can someone provide detailed step by step on how to fix both issues as that will expedite it.
__________________
Developer Shed - Tools For Geeks! |
|
#10
|
||||
|
||||
|
what fixing B-Con and the mods?
![]() The shoutbox I think needs striphtmlentities() or something added to it, because from what Sep is saying (don't want to try it myself), when editing your should it's putting html straight onto your front page (bad!). I'm not sure about the two javascript fixes though. |
|
#11
|
||||
|
||||
|
Quote:
I requested a detailed step by step walk thru - personally I think this stuff is nitpicky but Im willing to devote developer time to it if you guys are willing to provide a step by step on each thing you want modded. |
|
#12
|
||
|
|