ratcateme Posted February 7, 2009 Share Posted February 7, 2009 i was just thinking i don't know much about SMF board but what about a button that opens up a javascript alert you input a php function name it it outputs [ url=php.net/function_name] function_name() [/url] that way i think more people would use that in the post and people might actually lookup the docs on a function they know extra args and get other examples. it could help people asking stupid questions that the answers are right in from of them on the php manual what do you guys think? Scott. Quote Link to comment https://forums.phpfreaks.com/topic/144192-php-function-button/ Share on other sites More sharing options...
PFMaBiSmAd Posted February 7, 2009 Share Posted February 7, 2009 [ m ]php function name[ /m ] (without the spaces) Quote Link to comment https://forums.phpfreaks.com/topic/144192-php-function-button/#findComment-756692 Share on other sites More sharing options...
ratcateme Posted February 7, 2009 Author Share Posted February 7, 2009 thanks never knew that existed is there like a list somewhere of supported bbcode tags? Scott. Quote Link to comment https://forums.phpfreaks.com/topic/144192-php-function-button/#findComment-756693 Share on other sites More sharing options...
PFMaBiSmAd Posted February 7, 2009 Share Posted February 7, 2009 I think it is a SMF/Phpfreaks specific thing. Quote Link to comment https://forums.phpfreaks.com/topic/144192-php-function-button/#findComment-756696 Share on other sites More sharing options...
ratcateme Posted February 7, 2009 Author Share Posted February 7, 2009 hmm yea i thought that i was just wondering if a admin had compiled a list of then that are used on phpfreaks. never know what other little tags you could come across that could make posting easier Scott. Quote Link to comment https://forums.phpfreaks.com/topic/144192-php-function-button/#findComment-756698 Share on other sites More sharing options...
PFMaBiSmAd Posted February 7, 2009 Share Posted February 7, 2009 Here is the SMF documentation (version unknown) - http://docs.simplemachines.org/index.php?board=22.0;sort=subject I believe any of the supported tags listed in the documentation can be disabled. Quote Link to comment https://forums.phpfreaks.com/topic/144192-php-function-button/#findComment-756703 Share on other sites More sharing options...
Daniel0 Posted February 7, 2009 Share Posted February 7, 2009 The manual tag was a specific tag we implemented. Quote Link to comment https://forums.phpfreaks.com/topic/144192-php-function-button/#findComment-756704 Share on other sites More sharing options...
ratcateme Posted February 7, 2009 Author Share Posted February 7, 2009 cool thanks will be using it more often Scott. Quote Link to comment https://forums.phpfreaks.com/topic/144192-php-function-button/#findComment-756708 Share on other sites More sharing options...
nrg_alpha Posted February 7, 2009 Share Posted February 7, 2009 I forgot about [ m]...[ /m] thanks for the reminder, PFMaBiSmAd! Here I am always cutting and pasting from the url I hunted down over at the manual.. geesh... Quote Link to comment https://forums.phpfreaks.com/topic/144192-php-function-button/#findComment-756810 Share on other sites More sharing options...
.josh Posted February 7, 2009 Share Posted February 7, 2009 I forgot about [ m]...[ /m] thanks for the reminder, PFMaBiSmAd! Here I am always cutting and pasting from the url I hunted down over at the manual.. geesh... Wow...even without the m tags you were putting too much work into it. You can just type http://www.php.net/functionnamehere and php.net will automatically take you to the page of the function. That is actually exactly what the m tag does. It just takes for example this: [m]echo[/m] and turns it into this: <a href='http://www.php.net/echo'>echo()</a> Quote Link to comment https://forums.phpfreaks.com/topic/144192-php-function-button/#findComment-756854 Share on other sites More sharing options...
nrg_alpha Posted February 7, 2009 Share Posted February 7, 2009 I don't follow where I'm putting in too much work...oh I see..instead of going to the manual, hunting down the link and posting that (and not using the m tags), you mean I could have simply typed in the url you supplied + funciton name. Gotcha.. yeah.. Me and forum shortcuts..... Quote Link to comment https://forums.phpfreaks.com/topic/144192-php-function-button/#findComment-756924 Share on other sites More sharing options...
Mchl Posted February 7, 2009 Share Posted February 7, 2009 Just be aware, that php.net does not recognize some function names crrectly. Notably mysqli_query Quote Link to comment https://forums.phpfreaks.com/topic/144192-php-function-button/#findComment-757010 Share on other sites More sharing options...
Daniel0 Posted February 7, 2009 Share Posted February 7, 2009 How doesn't that work? ??? Quote Link to comment https://forums.phpfreaks.com/topic/144192-php-function-button/#findComment-757011 Share on other sites More sharing options...
Mchl Posted February 7, 2009 Share Posted February 7, 2009 mysql_query != mysqli_query Unless your php.net mirror works differently than mine. Quote Link to comment https://forums.phpfreaks.com/topic/144192-php-function-button/#findComment-757014 Share on other sites More sharing options...
ratcateme Posted February 7, 2009 Author Share Posted February 7, 2009 i get redirected to http://nz.php.net/mysqli_query and it works fine? could be a mirror problem Scott. Quote Link to comment https://forums.phpfreaks.com/topic/144192-php-function-button/#findComment-757020 Share on other sites More sharing options...
Daniel0 Posted February 7, 2009 Share Posted February 7, 2009 Hmm... http://dk.php.net/mysqli_query => mysql_query() http://dk2.php.net/mysqli_query => mysqli::query() / mysqli_query() Strange... Quote Link to comment https://forums.phpfreaks.com/topic/144192-php-function-button/#findComment-757021 Share on other sites More sharing options...
Mchl Posted February 7, 2009 Share Posted February 7, 2009 I get redirected to http://pl.php.net/mysqli_query and it displays manual entry for mysql_query. Quote Link to comment https://forums.phpfreaks.com/topic/144192-php-function-button/#findComment-757024 Share on other sites More sharing options...
ratcateme Posted February 7, 2009 Author Share Posted February 7, 2009 just noticed http://nz.php.net/mysqli_query => mysqli::query() / mysqli_query() but http://nz2.php.net/mysqli_query => mysql_query() thought they would keep them more up to date then that.. Scott. Quote Link to comment https://forums.phpfreaks.com/topic/144192-php-function-button/#findComment-757059 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.