|
Ah.. but I use [ and ] for brackets...
Well.. it would be a better way of doing things... so it's a good idea in my book
"Isn't that the "write once, debug everwhere" language?" Tom Archer on Java...
|
|
|
|
|
If the [ and ] brackets are replaced with HTML, my nick would suffer
Nish
Regards,
Nish
Native CPian.
Born and brought up on CP.
With the CP blood in him.
|
|
|
|
|
Maybe we should rebel against this idea
"Isn't that the "write once, debug everywhere" language?" Tom Archer on Java...
|
|
|
|
|
Brian Delahunty wrote:
Maybe we should rebel against this idea
Maybe, but then maybe I'll use { and } instead
Nish
Regards,
Nish
Native CPian.
Born and brought up on CP.
With the CP blood in him.
|
|
|
|
|
Nish [BusterBoy] wrote:
Maybe, but then maybe I'll use { and } instead
That is probably a better idea then my one... ah well. At least I gave my two cents
"Isn't that the "write once, debug everywhere" language?" Tom Archer on Java...
|
|
|
|
|
I've got the code for that tucked away somewhere (a more extensive system than merely search and replace) but why? For use in 'No HTML' messages? As an alternative method?
cheers,
Chris Maunder
|
|
|
|
|
Chris Maunder wrote:
but why?
So that people who are used to CG, and don't know or forget that CP doesn't use [] pseudo-tags, will have their post appear the way they intended.
--Mike--
Buy me stuff! (Link fixed now)
Like the Google toolbar? Then check out UltraBar, with more features & customizable search engines!
My really out-of-date homepage
Big fan of Alyson Hannigan and Jamie Salé.
Sonork - 100.10414 AcidHelm
|
|
|
|
|
Has this ever been a problem (I've not seen [pre] used but I'll certainly add it if it's a common issue)
cheers,
Chris Maunder
|
|
|
|
|
I wouldn't call it a problem, more like a "nice to have". I've seen people occasionally use [code] and [/code], and how tough would it be to switch that to <pre> and </pre> during the submission process?
--Mike--
Buy me stuff! (Link fixed now)
Like the Google toolbar? Then check out UltraBar, with more features & customizable search engines!
My really out-of-date homepage
Big fan of Alyson Hannigan and Jamie Salé.
Sonork - 100.10414 AcidHelm
|
|
|
|
|
Why not just add some buttons to the form to wrap the selected text in <pre> or <code> tags? You could also do a replace on &, < and > to replace with &, < and >, to make it easier to post code samples.
EG:
<script language='javascript' type='text/javascript'>
<!--
function formatSel(txt, tag) {
var tr;
if (document.selection.type.toLowerCase() == 'text') {
tr = document.selection.createRange();
var pe = tr.parentElement();
if (!(pe.tagName.toLowerCase() == 'textarea' && pe.id == txt.id))
tr = txt.createTextRange();
}
else
tr = txt.createTextRange();
var cont = tr.text;
cont = cont.replace(/&/ig,'&');
cont = cont.replace(/</ig,'<');
cont = cont.replace(/>/ig,'>');
cont = '<' + tag + '>' + cont + '</' + tag + '>';
tr.text = cont;
}
function markPre() {
formatSel(document.MessageForm.ContentText, 'pre');
}
function markCode() {
formatSel(document.MessageForm.ContentText, 'code');
}
</script>
Richard
|
|
|
|
|
Hi Chris,
Your rules that the status of a member will automatically be updated.
More specifically, the part where a membership should be promoted to
the next level after each year of membership.
Well, mine is still in the same old status,
even after more than 1 yr of membership.
Can u check up the scripts handling this ?
|
|
|
|
|
If you look over the (slightly convoluted) rules you'll see your status is correct.
cheers,
Chris Maunder
|
|
|
|
|
Chris Maunder wrote:
If you look over the (slightly convoluted) rules you'll see your status is correct.
LOL
I am wondering whether I should write a 6 part article that explains how the membership status is calculated.
Nish
Regards,
Nish
Native CPian.
Born and brought up on CP.
With the CP blood in him.
|
|
|
|
|
I'm throwing away the old system and will introduce a new system that allows you to control each other's levels.
This will be interesting
cheers,
Chris Maunder
|
|
|
|
|
Chris Maunder wrote:
I'm throwing away the old system and will introduce a new system that allows you to control each other's levels.
Regards,
Nish
Native CPian.
Born and brought up on CP.
With the CP blood in him.
|
|
|
|
|
Nish [BusterBoy] wrote:
You got that right!!! And we thought the article rating system was abused!!
---
CPUA 0x5041
Sonork 100.11743 Chicken Little
If a man is standing in the middle of the forest speaking and there is no woman around to hear him...is he still wrong?
|
|
|
|
|
Mwahaha!
cheers,
Chris Maunder
|
|
|
|
|
Your evil...
"Isn't that the "write once, debug everywhere" language?" Tom Archer on Java...
|
|
|
|
|
An emoticon for sleepyness... one with a few zzz around it...
For all those who are up untill all hours...
"Isn't that the "write once, debug everwhere" language?" Tom Archer on Java...
|
|
|
|
|
Brian Delahunty wrote:
An emoticon for sleepyness
Good idea
Till then we could use ( ! )
The posting stats are now in PDF:-
http://www.busterboy.org/codeproject/
Feel free to make your comments.
Updated - May 04th, Saturday
|
|
|
|
|
Nish [BusterBoy] wrote:
Good idea
Till then we could use ( ! )
ROFLMAO.. he doesn't look all that sleepy
"Isn't that the "write once, debug everwhere" language?" Tom Archer on Java...
|
|
|
|
|
Considering the amount of effort that Nish is putting into the weekly stats [I'm presuming your putting in a bit Nish.. feel free to correct me if your not ] I think it would be a nice idea to give him a page where he can put up the weekely stats, and then links to previous weeks.
It could go beside the "Mike Dunn's C++ FAQ" link.
If of course Nish was up for it.
"Isn't that the "write once, debug everwhere" language?" Tom Archer on Java...
|
|
|
|
|
How about a statistics page itself that gave all kind of statistics :-
1. Top articles
2. Top all time articles
3. Top articles posted on weekends
4. Top articles posted on weekdays
5. Top lounge messages
6. ...
There are tons of useful statistics that can be gathered from CP SQL. Why not provide a Query tool?
|
|
|
|
|
I think Nish was asking Chris for a web service a while back so he could create a tool for doing this.
"Isn't that the "write once, debug everwhere" language?" Tom Archer on Java...
|
|
|
|
|
Rama Krishna wrote:
How about a statistics page itself that gave all kind of statistics :-
Watch this space.
____________________
David Wulff
hu·mour Pronunciation Key (hymr)
n. & v. Chiefly British
Dave's Code Project Screensaver and Wallpaper page.
|
|
|
|