Topic awaiting preservation: Help writing some phpBB BBcode please? |
|
---|---|
Author | Thread |
Maniac (V) Inmate From: there...no..there..... |
posted 05-05-2005 22:59
I am *attempting* to make a bbcode mode for a forum but I'm getting a little lost in this whole template thing. code: $string = "This is a test";
|
Paranoid (IV) Inmate From: Florida |
posted 05-05-2005 23:50
Meh, doing anything with the mess that is phpBB code is seriously probably at the bottom of my 'Things I hate to do' list...after eating dirt and listening to the Backstreet Boys. |
Paranoid (IV) Inmate From: New Jersey, USA |
posted 05-06-2005 01:19
CPrompt |
Paranoid (IV) Inmate From: New Jersey, USA |
posted 05-06-2005 03:24
Okay, let's give this a try. code: <!-- BEGIN wiki --><a href="http://www.mywebsite/wiki/index.php?id=wiki:{QUERY}" target="_blank">{STRING}</a><!-- END wiki -->
code: $bbcode_tpl['wiki'] = '\'' . $bbcode_tpl['wiki'] . '\'';
code: // for clearing extra spaces in a [wiki] text.
code: // [wiki]http://www.mywebsite/wiki/index.php?id=wiki:[/wiki] code..
code: $text = preg_replace($patterns, $replacements, $text);
|
Maniac (V) Inmate From: there...no..there..... |
posted 05-06-2005 04:40
holy shit butcher! wow! Thanks a bunch for that. I'm gonna give this a shot over the weekend and see how it goes. |
Maniac (V) Inmate From: there...no..there..... |
posted 05-06-2005 17:23
worked like a charm Butcher!! Now I just have to add the button and the entry in the phpBB FAQ. Thanks!!! You've been a great help on the past two things I couldn't figure out. Much appreciated! |
Paranoid (IV) Inmate From: New Jersey, USA |
posted 05-06-2005 22:07
No sweat. |
Maniac (V) Inmate From: there...no..there..... |
posted 05-06-2005 22:39
yep. that you did. got the button up and all the FAQ stuff and it's off and running. |