Skip to content

Instantly share code, notes, and snippets.

View michaelcullum's full-sized avatar

Michael Cullum michaelcullum

View GitHub Profile
@nickvergessen
nickvergessen / Releasing 3.1.5.md
Last active August 29, 2015 14:22
Releasing 3.1.5

Todo List for 3.1.5

General

  • Make sure phpBB/docs/CREDTIS.txt is up to date
  • Make sure Contributors have their ranks
  • Make sure all reports in the security tracker are closed or invalid
  • Go through Issues fixed in 3.1.5 and correct any unreadable descriptions
  • Check the feature hightlights wiki page for completeness
  • Branch of prep-release-3.1.5 from 3.1.x:
@samt
samt / gist:514413
Created August 8, 2010 18:55 — forked from igorw/gist:503364

MODX

  • originally text template (phpBB2)
  • XML based format
  • machine readable
  • xsd schema validation
  • xsl stylesheet
  • pain to write by hand
  • convertor text => modx
  • modx2?

Explaining hooks

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

Contribution Guidelines (for sub-projects)

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;
}
@imkingdavid
imkingdavid / gist:1504285
Created December 21, 2011 02:28
Ticket 10539 Discussion 12/20/11
[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
@erikfrerejean
erikfrerejean / gist:1669519
Created January 24, 2012 10:31
Parse "salted" URL from a responce
<?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'
@michaelcullum
michaelcullum / extension.json
Created February 15, 2012 11:04
Sample manifest.json
{
"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",