Skip to content

Instantly share code, notes, and snippets.

Hunting Bugs

Brian Teeman brianteeman

Hunting Bugs
Block or report user

Report or block brianteeman

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
brianteeman /
Created Jun 17, 2019 — forked from alexgarel/
Utility to fixe a not so broken joomla assets table. Provided all assets are there and parent_id is correct, it will recompute level, rgt and lft for all entries.
import argparse
import getpass
import sys
import mysql.connector
class AssetsFixer:
cols = ["id", "parent_id", "level", "lft", "rgt"]
brianteeman / coursesexpired.php
Last active Feb 24, 2019 — forked from renekreijveld/clidemo_3.2.php
CLI script to unpublish classes from samuel taylor web site
View coursesexpired.php
* @package Joomla.Cli
* @copyright Copyright (C) 2005 - 2019 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* CLI script to unpublish classes from samuel taylor web site
* Put this script in the /cli folder
* Execute by php <path_to_your_joomla_root>/cli/coursesexpired.php
View table

For accessibility we need to add a caption to every table in the admin

For example


		etc etc

But we also need to get the current sort setting and possibly filters (if set)

brianteeman /
Last active Feb 6, 2018
WCAG 2.1 - Understandable

Information and the operation of user interface must be understandable.

Guideline 3.1 Readable

Make text content readable and understandable.

Word choice: use the simplest word that conveys your meaning. [1] Prefer the short word to the long. [2]


I am trying to write a query that will let me get results like below. Note how the results are grouped by feature and then ordered by language

GROUP Area feature Language SCORE NOTES Examples
1 CONSONANTS exmaple1 Arabic 2 contrast with /p/ is problematic BLAH BLAH
Chinese 3 pronounced without voicing and can't zipee doodah
2 CONSONANTS exmaple2 Arabic 1 problematic vdnvjdvds
brianteeman /
Last active Oct 24, 2017
Testing accessible navgation strip


<nav role="navigation" aria-label="PAGENAVIGATION">
	<ul class="pagination-list">
		<li class="disabled">
				<span class="icon-first" aria-hidden="true"></span>
brianteeman / report.txt
Created Jan 30, 2017
Test report 12009
View report.txt
Tested the latest version in mono-lingual web site
Created a category and a menu item to display that category
Created an article and saved in the category above
Created a shared draft link
brianteeman /
Created Jan 24, 2017
Multilingual Installation Broken on current staging

Do a clean install of current staging with the following options

  1. Sample Data None
  2. Install Language packages - French
  3. Activate the multilingual feature - Yes
  4. Install localised content - Yes
  5. Enable the language code plugin - Yes

Go to /administrator and confirm that the login is offering you english and french

View index.php
* @package Joomla.Site
* @subpackage Templates.protostar
* @copyright Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
defined('_JEXEC') or die;
brianteeman / gist:636f36329b9e10021a19b334a9ccfe57
Last active Jan 17, 2017
User Registration Approval fails in Admin UI
View gist:636f36329b9e10021a19b334a9ccfe57

Enable user registration and set the following options

  1. Allow User Registration - YES
  2. New User Account Activation - ADMIN

Register as a new user

  1. Email will be sent to the user to confirm registration
  2. User confirms registration
  3. This triggers an email to the admin
You can’t perform that action at this time.