Page 1 of 1

php.net manual quick_links

Posted: Thu May 15, 2003 6:18 am
by pootergeist
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

Posted: Thu May 15, 2003 6:33 am
by twigletmac
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

Posted: Thu May 15, 2003 11:29 am
by volka

Code: Select all

while(toDo.hasMore())
&#123;
	newInstance = me.clone();
	newInstance.toDo().assign(toDo.next());
	schedule(newInstance, ASAP);
&#125;

Posted: Fri May 16, 2003 10:43 pm
by evilcoder
hahaha, that was the nerdiest thing i've seen all month.. hehe good work!