Skip to content

Instantly share code, notes, and snippets.

@marc1706
marc1706 / portal_check.php
Created March 13, 2012 09:32
Check for missing language variables
<?php
/**
*
* @package Board3 Portal v2
* @copyright (c) Board3 Group ( www.board3.de )
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
<script type="text/javascript">
// <![CDATA[
var pjb = jQuery.noConflict(); // just so you know what pjb is used for
pjb(document).ready(function(){
// quickedit -- .qe-icon is the class of the quickedit button
pjb('.qe-icon a').click(function() {
post_id = pjb(this).attr('id');
// there are obviously better ways to do this
post_id = post_id.replace(/quickedit/g, ''); // filter out the post ID
array (size=4)
0 => string 'imageset' (length=8)
1 => string 'template' (length=8)
2 => string 'theme' (length=5)
3 => string '' (length=0)
string 'imageset' (length=8)
string 'imageset' (length=8)
develop\install_mod.php
7:* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
root\includes\acp\acp_mods.php
7:* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
root\includes\acp\info\acp_mods.php
7:* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
root\includes\editor.php
documentation\examples\umil_auto_example.php
7:* @license http://opensource.org/licenses/gpl-license.php GNU Public License
documentation\examples\umil_manual_example.php
7:* @license http://opensource.org/licenses/gpl-license.php GNU Public License
gui\create.php
8: * @license http://opensource.org/licenses/gpl-license.php GNU Public License
gui\language\en\umil_creation.php
if (!$data['uc_size'])
{
$content = '';
}
else
{
$content = fread($this->fp, $data['c_size']);
}
if (!$data['uc_size'])
{
$content = '';
}
elseif (!$data['c_size'])
{
/*
* The archiver put files directly into his zip. Make sure
* that folders in the root of the zip are created in the
* parent directory the archive is supposed to be extracted to
array (size=6)
'c_method' => int 0
'crc' => int 0
'c_size' => int 0
'uc_size' => int 4096
'name_len' => int 8
'extra_field' => int 0
string 'contrib/' (length=8)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 292: fread(): Length parameter must be greater than 0
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 295: fopen(./../store/mods/advancedblockmod_1_tmp/contrib/): failed to open stream: Invalid argument
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 301: fwrite() expects parameter 1 to be resource, boolean given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 315: fclose() expects parameter 1 to be resource, boolean given
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 292: fread(): Length parameter must be greater than 0
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 295: fopen(./../store/mods/advancedblockmod_1_tmp/root/): failed to open stream: Invalid argument
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_compress.php on line 301: fwrite() e
@marc1706
marc1706 / gist:4263460
Created December 11, 2012 23:46
Get rid of popup message and refresh the page after marking forums read.
diff --git a/phpBB/includes/functions_display.php b/phpBB/includes/functions_display.php
index 7312980..ed3d1b0 100644
--- a/phpBB/includes/functions_display.php
+++ b/phpBB/includes/functions_display.php
@@ -61,10 +61,13 @@ function display_forums($root_data = '', $display_moderators = true, $return_mod
{
markread('all', false, false, request_var('mark_time', 0));
- trigger_error(
- $user->lang['FORUMS_MARKED'] . '<br /><br />' .