Discussion of general topics related to the new version and its place in the world. Don't discuss new features, report bugs, ask for support, et cetera. Don't use this to spam for other boards or attack those boards!
Forum rules
Discussion of general topics related to the new release and its place in the world. Don't discuss new features, report bugs, ask for support, et cetera. Don't use this to spam for other boards or attack those boards!
It means that it is a forum created for testing purposes, and will be deleted when I'm done testing, and that only one person has tried to help me solve my problem.
construct a parse_message object (look in message_parser.php), let's call it $parser
loop through the unparsed messages you extracted from the db, such:
set $parser->message = $unparsed_message;
call $parser->parse();
now $parser->message supposedly contained the parsed message (bbcode replaced by html), ready to use
note that this retrieves the message body only. no poster, subject, or signature.
caveats (partial list):
this is an outline, not a code snippet. you'll have to figure out by yourself how to construct the object, and what are the parameters of the parse() call.
(i assume that if you are able to extract the messages you want from the db, you'll be able to figure this by yourself.)
be prepared for surprises. for instance: the smilies may point to image files with relative path, which may or may not be the correct path for your purpose. same may (or may not) be true for attached files.
not sure what's the deal with censoring. it is possible you'll get the uncensored content.
this is based on my understanding of the code, by means of reading it. i did not try it myself, and i don't guarantee that this outline will actually do the job.
Hmm, within a couple of hours of Highway of Life posting the link some jackass had already messed with the front page. [sigh]
Whoever 82.40.102.160 is needs to find something better to do with their life.
Last edited by Lastof on Tue Jan 02, 2007 6:24 pm, edited 1 time in total.
Last edited by Lastof on 04 May 2008, 00:00, edited -1 times in total ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Look, I'm officially not a bug!!
SHS`: "Oooh Bertie, spank me with that casing stick, spank me spank me spaaaaannnnk mee!"
ngungo wrote:
I just got in there. It's still working.
You'll have to look at the history. It's not like I was gonna leave it messed up.
Last edited by Lastof on 04 May 2008, 00:00, edited -1 times in total ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Look, I'm officially not a bug!!
SHS`: "Oooh Bertie, spank me with that casing stick, spank me spank me spaaaaannnnk mee!"