php.net manual quick_links

We know you have an opinion on how things should be run around here. These are suggestions for the forums, and the website.This forum is not a place to ask for suggestions to your own coding (or otherwise) problems.

Moderator: General Moderators

Post Reply
pootergeist
Forum Contributor
Posts: 273
Joined: Thu Feb 27, 2003 7:22 am
Location: UK

php.net manual quick_links

Post 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
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post 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
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

Code: Select all

while(toDo.hasMore())
&#123;
	newInstance = me.clone();
	newInstance.toDo().assign(toDo.next());
	schedule(newInstance, ASAP);
&#125;
evilcoder
Forum Contributor
Posts: 345
Joined: Tue Dec 17, 2002 5:37 am
Location: Sydney, Australia

Post by evilcoder »

hahaha, that was the nerdiest thing i've seen all month.. hehe good work!
Post Reply