Skip to content

Instantly share code, notes, and snippets.

Avatar
🐛
Hunting Bugs

Brian Teeman brianteeman

🐛
Hunting Bugs
View GitHub Profile
@brianteeman
brianteeman / fix_assets.py
Created Jun 17, 2019 — forked from alexgarel/fix_assets.py
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.
View fix_assets.py
import argparse
import getpass
import sys
import mysql.connector
class AssetsFixer:
cols = ["id", "parent_id", "level", "lft", "rgt"]
@brianteeman
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
<?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 caption.md

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

For example

Articles

	<caption>Articles</caption>
		<thead>
		etc etc

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

@brianteeman
brianteeman / understandable.md
Last active Feb 6, 2018
WCAG 2.1 - Understandable
View understandable.md

https://www.w3.org/TR/WCAG21/#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]

@brianteeman
brianteeman / navigation.md
Last active Oct 24, 2017
Testing accessible navgation strip
View navigation.md

TEXT IN CAPS WILL BE LOCALISED

<nav role="navigation" aria-label="PAGENAVIGATION">
	<ul class="pagination-list">
		<li class="disabled">
			<a>
				<span class="icon-first" aria-hidden="true"></span>
			</a>
		</li>
@brianteeman
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
http://localhost/github/index.php?option=com_content&view=article&id=4&token=pRdVFqPy8YqDMF6SBsXg1wjrRKR7B4hF
View index.php
<?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
brianteeman / mediafield.md
Last active Apr 2, 2018
When is a media manager not a media manager?
View mediafield.md

... when it's a modal

Field Types

1. media

provides modal access to the media manager for insertion of images with upload for users with appropriate permissions.

2. file

Provides an input field for files

3. filelist

provides a drop down list of files from a specified directory.

View keybase.md

Keybase proof

I hereby claim:

  • I am brianteeman on github.
  • I am brianteeman (https://keybase.io/brianteeman) on keybase.
  • I have a public key ASA6gKZCJ613rghmPKnKGeiE7rR6fYi-CZtiR9iebhmebAo

To claim this, I am signing this object:

View gist:00c3fadc3029d422ac1c
### Keybase proof
I hereby claim:
* I am brianteeman on github.
* I am brianteeman (https://keybase.io/brianteeman) on keybase.
* I have a public key whose fingerprint is 1C12 4BB7 AB52 F9D6 653E 7073 29BB AA1C EEC1 B790
To claim this, I am signing this object: