Skip to content

Instantly share code, notes, and snippets.

View 3D-I's full-sized avatar
💭
😜 Buried by a certain volume of code 🤓

3Di 3D-I

💭
😜 Buried by a certain volume of code 🤓
View GitHub Profile
@3D-I
3D-I / default_bots_32.php
Last active March 6, 2017 04:34
phpBB 3.2.x - Restores default BOTs and deletes any BOT you added to it. (Make a Backup first)
<?php
/***
* Usage:
* Download and unzip the file, upload it to your Board's root (i.e.: www.mydomain.com/phpBB3/)
* Point your browser to (i.e.: www.mydomain.com/phpBB3/default_bots_32.php)
*
* @package default phpBB's BOTS v2.0.0-b1 (06 03 2017)
* @copyright (c) 2016 3Di (Marco T.)
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
*
<?php
/**
*
* @package phpBB 3.1.8- Available Board-wide template variables
* @copyright (c) 2016 3Di (Marco T.)
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
*
*/
// The following are all _common_ variables that may be used at any point in a template.
@3D-I
3D-I / req.php
Created May 29, 2017 22:19
Steamsuite ext - Requirements check-in
<?php
/**
*
* Steam suite. An extension for the phpBB Forum Software package.
*
* @copyright (c) 2017, 3Di, http://3di.space/32/
* @license GNU General Public License, version 2 (GPL-2.0)
*
* Requirements' check-in
*
@3D-I
3D-I / Releasing Steam Suite Group phpBB extension 1.0.0-RC1.md
Last active August 29, 2017 01:50
Releasing Steam Suite Group phpBB extension 1.0.0-RC1

General

  • Make sure it is installable and full working on a fresh 3.2.1
  • Make sure it is installable and full working on a fresh 3.1.11
  • Review every single file for comments/typos or glitches of any sort
  • Update composer.json with the current date
  • Update ext.php and the core code to force/check the install starting from 3.2.1 or 3.1.9 as usual
  • Merge master to 1.0.0-rc1 branch (Private repo)
  • Create a local archive
  • Create the branch v1.0.0-rc1 (Public repo)
@3D-I
3D-I / convert-avatars.php
Created October 20, 2017 21:52 — forked from tierra/convert-avatars.php
phpBB 3.1 script that fetches all remote avatars, and converts them to uploaded avatars hosted locally.
<?php
/**
* Converts all phpBB 3.1 remote avatars to uploaded avatars.
*
* To use this script:
*
* 1. Copy this file into the root of your phpBB installation.
* 2. Run the script from the command line: php convert-avatars.php
*
* Any avatar will be skipped if any errors come up, like these:
@3D-I
3D-I / CSS for <sup> and <sub>
Created March 28, 2018 19:11 — forked from unruthless/CSS for <sup> and <sub>
CSS for <sub> and <sup>
sub, sup {
/* Specified in % so that the sup/sup is the
right size relative to the surrounding text */
font-size: 75%;
/* Zero out the line-height so that it doesn't
interfere with the positioning that follows */
line-height: 0;
/* Where the magic happens: makes all browsers position
@3D-I
3D-I / fix-left-right-ids.php
Created July 4, 2018 14:07
MAKE A BACKUP FIRST! Repairs the tree structure of the forums and modules for phpBB 3.2.x
<?php
/**
* Use at your own risk! Do a DB backup first!
*.
* This file is released as is, no warraties OF ANY SORT.
*
* -------------------------------------------------------
*
* @copyright (c) phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
@3D-I
3D-I / right_install.php
Last active August 3, 2018 14:11
Mini Support Tool Kit for phpBB [3.0][3.1][3.2]
<?php
/***
* Usage:
* Download and unzip the file, upload it to your Board's root (i.e.: www.mydomain.com/phpBB3/)
* Point your browser to i.e.: www.mydomain.com/phpBB3/right_install.php) and follow instructions.
*
* @package - right_install.php 2.0.0-b4 (true versions comparison and more)
* @copyright (c) 2016, 2017 3Di (Marco T.) 21-08-2017
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
*
@3D-I
3D-I / maintenance503.php
Last active September 25, 2018 23:15
HTTP/1.1 503 header for sites maintenance, your site will be not indexed while doing maintenance or the likes.
<?php
/**
* Usage:
* Download and unzip the file then RENAME it to index.php
* Into the code find "your site name goes here" and put your Board's/Site's name in there.
* SAVE this file.
*
* Rename your (i.e.: www.mydomain.com/phpBB3/index.php) to something else you like (as a backup)
* Upload THIS renamed file to your Board's root (i.e.: www.mydomain.com/phpBB3/)
* Point your browser to i.e.: www.mydomain.com/phpBB3/index.php), once finished delete this
@3D-I
3D-I / .htaccess
Created April 12, 2017 23:53
phpBB 3.2.0 .htaccess (original) plus HTTPS redirection
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
#
# Uncomment the statement below if URL rewriting doesn't
# work properly. If you installed phpBB in a subdirectory
# of your site, properly set the argument for the statement.
# e.g.: if your domain is test.com and you installed phpBB