Skip to content

Instantly share code, notes, and snippets.

💭
👀 Lurking 👀

3Di 3D-I

💭
👀 Lurking 👀
Block or report user

Report or block 3D-I

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View chunck_size.php
<?php
/**
* Change get_chunk_size() calculation to correctly calculate limits without
* letting a zero "unlimited" value always win. Also ensure get_chunk_size()
* can only return zero if all of the limits were in fact set to unlimited.
*/
$max = 0;
$limits = [100, 200, 300];
@3D-I
3D-I / fix-left-right-ids.php
Created Jul 4, 2018
MAKE A BACKUP FIRST! Repairs the tree structure of the forums and modules for phpBB 3.2.x
View fix-left-right-ids.php
<?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)
View CSS for <sup> and <sub>
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 / gist:f788daa7975a3180f5936176e758cb4c
Created Mar 26, 2018 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup
View gist:f788daa7975a3180f5936176e758cb4c

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@3D-I
3D-I / convert-avatars.php
Created Oct 20, 2017 — forked from tierra/convert-avatars.php
phpBB 3.1 script that fetches all remote avatars, and converts them to uploaded avatars hosted locally.
View convert-avatars.php
<?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 / Releasing Steam Suite Group phpBB extension 1.0.0-RC1.md
Last active Aug 29, 2017
Releasing Steam Suite Group phpBB extension 1.0.0-RC1
View Releasing Steam Suite Group phpBB extension 1.0.0-RC1.md

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 / req.php
Created May 29, 2017
Steamsuite ext - Requirements check-in
View req.php
<?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 / .htaccess
Created Apr 12, 2017
phpBB 3.2.0 .htaccess (original) plus HTTPS redirection
View .htaccess
<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
@3D-I
3D-I / default_bots_32.php
Last active Mar 6, 2017
phpBB 3.2.x - Restores default BOTs and deletes any BOT you added to it. (Make a Backup first)
View default_bots_32.php
<?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
*
@3D-I
3D-I / db_tools_service_replacement.php
Created Feb 4, 2017
phpbb/db/tools service replacement- phpBB 3.1
View db_tools_service_replacement.php
<?php
/* Your extension namespace here */
namespace my_vendor\my_awesome_extension_name;
/* Your filename (w/extension) for this class here */
class db_tools_service_replacement extends \phpbb\db\tools
{
public function __construct(\phpbb\db\driver\driver_interface $db, $return_statements = false)
{
You can’t perform that action at this time.