Jump to content

Archived

This topic is now archived and is closed to further replies.

Daniel0

Auto-generate links on PHP function names

Recommended Posts

It would be nice if you could modify the post parser to auto generate links to PHP manual, when there is a name of a PHP function in a post.

Share this post


Link to post
Share on other sites
When we had IPB our admin (phpfreak) did have such a feature implented, as it did link to the PHP manual hosted on our main site. Not sure whether this will be added back though. I used to use the feature a lot when I first signed up here.

At the moment I have a PHP search engine plugin installed in FF. It allows me to type in a function name into the search box and it takes me to php.net displaying the page for that function.

You can get it [url=http://mycroft.mozdev.org/download.html?name=php+fun&sherlock=yes&opensearch=&submitform=Search]here[/url]. Download the one you want in your native lanaguage. Only for Firefox though.

Share this post


Link to post
Share on other sites
I hadn't really thought about adding that back in.  It is possible though and we will look into it.

Share this post


Link to post
Share on other sites
It's more like for people who are new to PHP. So eg if I am talking about the explode function, I could type:[code]You could use the [url=http://php.net/explode]explode[/url] function[/code] to show the user that they can read more about that function in it's manual entry. By having the post parser to do it automaticly that would save time when posting a post.

Share this post


Link to post
Share on other sites
uhh... yeah, we know WHY it's helpful.  And we know how to do it. 

Share this post


Link to post
Share on other sites
wildteen-

i guess that reduces SOME typing, but since all you have to do is type php.net/functionname and it does the same thing... seems like just another thing superfluously taking up my memory.

Share this post


Link to post
Share on other sites
I'm sure I've been on boards where something like an [rtfm] tag was enabled.  This made it much easier for those responses where all you want to do is direct someone to the manual without having to go there yourself and copy/paste the URL.

Example:If you look at [rtfm]mail[/rtfm] in the manual, you'll find that and mail would be hyperlinked to the correct function page of php.net

I wonder if http://www.php.net/sidebars.php is useful?

Share this post


Link to post
Share on other sites
Yeah. A tag like that would be nice - perhaps better than just parsing it "globally". I do not think the tag name should be rtfm however. I do not like when people are told to "read the [obscenity removed] manual". man would be more appropriate.

Share this post


Link to post
Share on other sites
[quote author=Crayon Violent link=topic=108806.msg438210#msg438210 date=1158775433]
wildteen-

i guess that reduces SOME typing, but since all you have to do is type php.net/functionname and it does the same thing... seems like just another thing superfluously taking up my memory.
[/quote]
I'm just so used to choosing the site I want to search using the FF search engine thingys in the top right.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.