Skip to content

Instantly share code, notes, and snippets.

@nickvergessen
nickvergessen / gist:1891959
Created February 23, 2012 09:41
Message templates for Jabber
Users language is de, Board default is en: de-jabber template does not exist:
would you like to see en_jabber or de_mail?!
de-jabber
de-mail
en-jabber
en-mail
de-jabber
.forumbg table.table1 {
margin: 0;
}
.forumbg-table > .inner {
margin: 0 -1px;
}
.forumbg-table > .inner > span.corners-top {
margin: 0 -4px -1px -4px;
@nickvergessen
nickvergessen / check_duplicated_language_keys.php
Created March 14, 2012 12:17
Language File Conflict Detector
<?php
/**
*
* @package Language File Conflict Detector
* @version $Id$
* @copyright (c) 2012 nickvergessen nickvergessen@gmx.de http://www.flying-bits.org
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
1) phpbb_log_add_test::test_log_add
SQL ERROR [ sqlite ]<br /><br />constraint failed [19]<br /><br />An sql error o
ccurred while fetching this page. Please contact an administrator if this proble
m persists.
E:\phpBB-development\htdocs\phpBB-git\3.1-extensions\phpBB\includes\db\dbal.php:
723
E:\phpBB-development\htdocs\phpBB-git\3.1-extensions\phpBB\includes\db\sqlite.ph
p:127
1) phpbb_log_add_test::test_log_add
SQL ERROR [ sqlite ]<br /><br />constraint failed [19]<br /><br />An sql error o
ccurred while fetching this page. Please contact an administrator if this proble
m persists.
E:\phpBB-development\htdocs\phpBB-git\3.1-extensions\phpBB\includes\db\dbal.php:
723
E:\phpBB-development\htdocs\phpBB-git\3.1-extensions\phpBB\includes\db\sqlite.ph
p:127
static public function setUpBeforeClass()
{
$hostname = 'ftp.debian.org.';
self::$ipv4 = gethostbyname($hostname);
if (self::$ipv4 == $hostname)
{
self::markTestSkipped("Got no A record back from DNS query for $hostname");
}
}
<?php
/**
*
* @package testing
* @copyright (c) 2012 phpBB Group
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
*
*/
class phpbb_log_function_auth_mock_test extends phpbb_test_case
phpBB/includes/functions_admin.php | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php
index 45538fa..abf0d2c 100644
--- a/phpBB/includes/functions_admin.php
+++ b/phpBB/includes/functions_admin.php
@@ -2583,9 +2583,13 @@ function view_log($mode, &$log, &$log_count, $limit = 0, $offset = 0, $forum_id
return 0;
}
@nickvergessen
nickvergessen / gist:2628656
Created May 7, 2012 16:04
Compare 3.0 to 3.1
diff --git a/C:/Users/nickv/Desktop/3.0-tpl_prosilver_viewtopic_body.html.php b/C:/Users/nickv/Desktop/3.1-tpl_prosilver_viewtopic_body.html.php
index 31e3f6f..d69dcf7 100644
--- a/C:/Users/nickv/Desktop/3.0-tpl_prosilver_viewtopic_body.html.php
+++ b/C:/Users/nickv/Desktop/3.1-tpl_prosilver_viewtopic_body.html.php
@@ -1,61 +1,108 @@
-<?php if (!defined('IN_PHPBB')) exit; $this->_tpl_include('overall_header.html'); if ($this->_rootref['U_MCP']) { ?><p>[&nbsp;<a href="<?php echo (isset($this->_rootref['U_MCP'])) ? $this->_rootref['U_MCP'] : ''; ?>"><?php echo ((isset($this->_rootref['L_MCP'])) ? $this->_rootref['L_MCP'] : ((isset($user->lang['MCP'])) ? $user->lang['MCP'] : '{ MCP }')); ?></a>&nbsp;]</p><?php } ?>
-
-<h2><a href="<?php echo (isset($this->_rootref['U_VIEW_TOPIC'])) ? $this->_rootref['U_VIEW_TOPIC'] : ''; ?>"><?php echo (isset($this->_rootref['TOPIC_TITLE'])) ? $this->_rootref['TOPIC_TITLE'] : ''; ?></a></h2>
-<!-- NOTE: remove the style="display: none" when you want to have the forum descriptio
diff --git a/phpBB/assets/javascript/core.js b/phpBB/assets/javascript/core.js
index 958b6c9..ab1aaa8 100644
--- a/phpBB/assets/javascript/core.js
+++ b/phpBB/assets/javascript/core.js
@@ -411,6 +411,91 @@ phpbb.ajaxify = function(options) {
return this;
}
+/**
+* Hide the optgroups that are not the selected timezone