Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

greentext in php

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

Name: Anonymous 2010-11-02 9:07

die in a fire

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.

Name: Anonymous 2010-11-02 10:11

Dududu [code](string-replace 'newline 'quote-symbol text 'newline) (span (@ style 'greentext) 'quote-symbol text))

Name: Anonymous 2010-11-02 10:45

preg_replace('/(>.*)/', '<div style="color:#792">\1</div>', $post)
Now scram.

Name: Anonymous 2010-11-02 11:14

>>5
div
IHBT

Name: Anonymous 2010-11-02 11:36

>>4
W-|

Name: Anonymous 2010-11-02 12:27

>>5
thanks nigger, ill be sure to come back with moar shitty questions!

Name: Anonymous 2010-11-02 15:07

>>5
preg_replace('/^\s*(>.*)/', '<span class="quote">&gt;\1</div>', $post)

the "quote" css class is left as an exercise for the reader interested in web design

Name: Anonymous 2010-11-02 15:08

>>9
s/div/span

Name: Anonymous 2010-11-02 19:52

>>10
s,s/div/span,s/div/span/,

Name: Anonymous 2013-01-19 21:02

/prog/ will be spammed continuously until further notice. we apologize for any inconvenience this may cause.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List