greentext in php
1
Name:
Anonymous
2010-11-02 8:52
sup /prog/
how do i code a greentext function for my forum?
i managed to do stuff with str_replace for emoticons and shit but im stuck with this greentext thing...
please help
2
Name:
Anonymous
2010-11-02 9:07
die in a fire
3
Name:
Anonymous
2010-11-02 9:15
I'm not sure what you mean by ``greentext'', but it is highly likely that the fact that you managed to handle emotes and not it indicates that you're an idiot.
4
Name:
Anonymous
2010-11-02 10:11
Dududu [code] (string-replace 'newline 'quote-symbol text 'newline) (span (@ style 'greentext) 'quote-symbol text))
5
Name:
Anonymous
2010-11-02 10:45
preg_replace('/(>.*)/', '<div style="color:#792">\1</div>', $post)
Now scram.
6
Name:
Anonymous
2010-11-02 11:14
7
Name:
Anonymous
2010-11-02 11:36
8
Name:
Anonymous
2010-11-02 12:27
>>5
thanks nigger, ill be sure to come back with moar shitty questions!
9
Name:
Anonymous
2010-11-02 15:07
>>5
preg_replace('/^\s*(>.*)/', '<span class="quote">>\1</div>', $post)
the "quote" css class is left as an exercise for the reader interested in web design
10
Name:
Anonymous
2010-11-02 15:08
11
Name:
Anonymous
2010-11-02 19:52
>>10
s,s/div/span,s/div/span/,
13
Name:
Anonymous
2013-01-19 21:02
/prog/ will be spammed continuously until further notice. we apologize for any inconvenience this may cause.