Skip to content

Instantly share code, notes, and snippets.

<?php
/**
* Create topics for each line from a text file; reading 1 line for each topic
* Set file path, post text and config below
*
* You should be logged in with founder or administrator permissions to be able
* to use this script
* It is recommended to delete this script and the text file after use
*
@GerB
GerB / listener.php
Last active August 27, 2019 07:44
Updated event listener for National Flags extension
<?php
/**
*
* National Flags extension for the phpBB Forum Software package.
* Changed by GerB to copy with other language boards using new event core.user_setup_after
*
* @copyright (c) 2015 Rich McGirr (RMcGirr83)
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
*
*/
@GerB
GerB / cleanup_nru.php
Created October 11, 2018 14:08
Script for phpBB 3.2 to delete all users in Newly registers users group
<?php
/**
*
* @package phpBB3
* @author GerB https://github.com/GerB
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
@GerB
GerB / stylereset.php
Last active October 10, 2018 06:22
Reset phpBB style to proSilver
<?php
/**
* Set prosilver as default style and override user style
* @author GerB
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*/
/**
* @ignore
*/
@GerB
GerB / phpbbconnect.php
Last active September 5, 2018 06:49
Test if database connection to phpBB install can be made
<?php
/*
* Test connection to phpbb database
*/
include ('config.php');
// Create connection
$connection = new mysqli($dbhost . ':'. $dbport, $dbuser, $dbpasswd);
@GerB
GerB / convert_ipb34.php
Created January 22, 2018 15:44
customised ipb3.4 to phpbb 3.2 convertor
<?php
/**
*
* @package install
* @version $Id$
* @copyright (c) 2006 phpBB Group
* @copyright (c) 2014 prototech
* @license http://opensource.org/licenses/GPL-2.0 GNU Public License, version 2
*
*/
@GerB
GerB / tweakers.css
Last active June 19, 2018 06:55
Tweakers.net custom css
/* hide banners */
.leaderBoard,
#b_tb, #b_btb, #b_re, #b_br, #b_ad, #b_ac, #weborama_inArticle_div {
display: none !important;
}
.takeoverBg {
background: none repeat scroll 0 0 rgb(233, 234, 234) !important;
}
/* irritante avatars */
@GerB
GerB / test.php
Last active November 14, 2017 12:19
Magic OGP test script
<?php
/**
* Use this script to test some stuff outside of phpBB
*/
/**
* Array of urls to fetch with the OGP class
*/
$fetchList = [