- originally text template (phpBB2)
- XML based format
- machine readable
- xsd schema validation
- xsl stylesheet
- pain to write by hand
- convertor text => modx
- modx2?
<?php | |
/* | |
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | |
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | |
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | |
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | |
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | |
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | |
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
Most of you have probably already seen the blog post regarding the RFC process for hooks to be added to ascraeus (phpBB 3.1). And many of you may not know what a hooks system actually is, so I will take the time to explain it.
In olympus (phpBB 3.0) all new additions to the core must be done by editing or patching the core files. The MODification is either installed manually or by using AutoMOD. What a MOD usually does is add some specific code at a specific location, for example database queries, template assignments or loading of language files. This approach worked for 2.0 and it works for 3.0, but frankly it produces a horrible mess. Installing MODifications is a great pain, uninstalling them is almost impossible in some cases.
To solve this issue we are introducing a hooks system. The hook system defines code injection points, giving each one of them a unique identifier. The hooks manager allows MODificati
These guidelines apply to all sub-projects of phpBB. They explain how to interact with the git repos used for these projects.
- Projects should be hosted on GitHub under the phpBB organization.
- All work by team members should take place in the main repo.
- Use of topic branches is very strongly encouraged.
- Contributors must use topic branches, foreign main branches are never merged.
- Version tags must be fully lowercase and prepended by a 'v', for example 'v1.0.0-rc1'.
- Branch names should simply describe the topic and use hyphens, for example 'quick-reply' or 'issue1234'.
/*! | |
* Tiny Scrollbar 1.42 | |
* http://www.baijs.nl/tinyscrollbar/ | |
* | |
* Copyright 2010, Maarten Baijs | |
* Dual licensed under the MIT or GPL Version 2 licenses. | |
* http://www.opensource.org/licenses/mit-license.php | |
* http://www.opensource.org/licenses/gpl-2.0.php | |
* | |
* Date: 06 / 11 / 2010 |
<?php | |
require_once __DIR__.'/silex.phar'; | |
require_once __DIR__.'/twig/lib/Twig/Autoloader.php'; | |
use Symfony\Component\HttpFoundation\Response; | |
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; | |
use Silex\Framework; | |
Twig_Autoloader::register(); |
<?php | |
function hook_tabitha(&$hook) | |
{ | |
global $db, $template, $user; | |
if (empty($template->_tpldata['postrow'])) | |
{ | |
return; | |
} |
[16:21] <imkingdavid> http://tracker.phpbb.com/browse/PHPBB3-10539 | |
[16:21] <imkingdavid> odd | |
[16:22] <imkingdavid> no clue why it only happens sometimes | |
[16:22] <imkingdavid> but it's consistent when it does happen | |
[16:22] <unknownbliss> its bizarre | |
[16:22] <unknownbliss> indeed | |
[16:23] <imkingdavid> maybe something to do with the reverse loading of topics https://github.com/phpbb/phpbb3/blob/develop/phpBB/viewforum.php#L444 | |
[16:23] <imkingdavid> but i haven't had time to look too far into it | |
[16:23] <imkingdavid> since I can't get it to happen locally | |
[16:23] <unknownbliss> i got it to happen locally |
<?php | |
// Some setup | |
$pageToScan = 'http://try-phpbb.com/30x'; | |
$stringInATag = 'Register'; | |
// Create the stream and fetch the page | |
$context = stream_context_create(array( | |
'http' => array( | |
'method' => 'GET' |
{ | |
"name": "phpbb-blog/phpbb-blog", | |
"type": "phpbb3-extension", | |
"description": "An super cool example manifest extension.", | |
"homepage": "https://gist.github.com/gists/1835060", | |
"version": "1.0.0", | |
"time": "2012-02-15", | |
"licence": "GNU GPL v2", | |
"authors": [{ | |
"name": "Michael Cullum", |