in reference to
http://www.devnetwork.net/forums/viewtopic.php?t=8778
Some people may know that over at sitepoint you can type [google]search_term[/google] and the forum auto decided the link to googles search facility.
Why not do that for the php.net manual here?
[manual]getimagesize[/manual] => http://www.php.net/getimagesize
Guess the regex would be
$input_string = preg_replace("/\[manual\](.+?)\[\/manual\]/is","<a href=\"http://www.php.net/$1\" target=\"_blank\">$1</a>",$input_string);
dunno whether the phpBB manipulates the strings on input or output though - would obviously mean a code hack.
could even abbreviate it to [man]....[/man] for the *nixers
php.net manual quick_links
Moderator: General Moderators
-
pootergeist
- Forum Contributor
- Posts: 273
- Joined: Thu Feb 27, 2003 7:22 am
- Location: UK
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
It's not too difficult to add additional bbcode parsing to phpBB (the php tags are an addon extra). It would make sense, I'll check over at phpBB.com to see if anyone's already done it. There's a bunch of little things I'd like to do in the forums so I'll add this to the list. Now all I need is time...
Mac
Mac
Code: Select all
while(toDo.hasMore())
{
newInstance = me.clone();
newInstance.toDo().assign(toDo.next());
schedule(newInstance, ASAP);
}