No, its still on my list to write a policy on . I hope it will follow this holiday, but iam pretty busy.poyntesm wrote:Hi Paul,
Still no guidelines on language imageset files. Seems this file type is often forgotten.
No, its still on my list to write a policy on . I hope it will follow this holiday, but iam pretty busy.poyntesm wrote:Hi Paul,
Still no guidelines on language imageset files. Seems this file type is often forgotten.
Code: Select all
<!-- IF S_MODNAME_INSTALLED -->
Output the new cool skin stuff
<!-- ENDIF -->
Thank you to everyone who gave input,http://www.phpbb.com/mods/rules-and-pol ... b/general/
Externally hosted scripts
Please be aware that MODs referencing external sources (such as externally hosted Javascript files) will not be accepted into the MOD Database. Any files required by the MOD should be packaged with the MOD.
phpBB3 or MODX updates
MOD authors may re-submit their MODs for validation if the only changes are either:
MODs re-submitted on this basis will still be reviewed and tested on the latest version of phpBB. Re-submissions reflecting a new MODX version alone will not be accepted.
- Updating the version of MODX used by the modification and the phpBB version which the MOD applies to.
- The phpBB version which the MOD applies to.
Code: Select all
$workaround = request_var('submit_foo','bar');
if(isset($workaround))
{
//bl abla bola labla lbabla blabla blab bla bla bla
}
To retrieve a value from $_POST/$_GET you should always use phpBB3's request_var function. You should not access $_POST/$_GET directly. An exception is checking whether a variable is set, such as isset($_POST['submit']).
This is how you would do something like that:darksminky wrote:Code: Select all
$workaround = request_var('submit_foo','bar'); if(isset($workaround)) { //bl abla bola labla lbabla blabla blab bla bla bla }
Code: Select all
if(isset($_GET['submit_foo']) || isset($_POST['submit_foo']))
{
$workaround = request_var('submit_foo','bar');
//bl abla bola labla lbabla blabla blab bla bla bla
}
Code: Select all
$SUPERGLOBAL || $SUPERGLOBAL
functions.php wrote: /**
* request_var
*
* Used to get passed variable
*/
Code: Select all
if(request_var('foo','bar') <> 'bar')
{
//stuff
}
Code: Select all
if(isset($_GET['submit_foo']) || isset($_POST['submit_foo']))
{
$workaround = request_var('submit_foo','bar');
//bl abla bola labla lbabla blabla blab bla bla bla
}
Code: Select all
if (isset($_GET['foo']) || isset($_POST['foo']))
{
$foo = request_var('foo', 'bar');
if ($foo != 'bar')
{
echo '$foo is not my default value so take action A.';
}
else
{
echo '$foo is my default value so take action B.';
}
}
else
{
echo '$foo is not set so take action C.';
}
Code: Select all
if (!isset($_GET[$var_name]) && !isset($_POST[$var_name]))
{
return (is_array($default)) ? array() : $default;
}