Skip to content

Instantly share code, notes, and snippets.

@Mark-H
Mark-H / disabletooltips.plugin.php
Last active March 1, 2016 22:15
Plugin to disable tooltips in MODX globally.
<?php
// Disables tooltips globally.
//
// Create a new plugin and add the following system event: OnManagerPageInit
//
// © 2010 Mark Hamstra <hello@markhamstra.com>
// Buy me a beer? Paypal hamstra.mark at gmail.com.
//
// Licensed under the MIT license
var win = Ti.UI.createWindow({backgroundColor:'#ccc'});
var isRunning = false;
var btn = Ti.UI.createButton({
title:'start',
bottom:10,
height:50,
left:10,
right:10
});
var slider = Ti.UI.createSlider({
@opengeek
opengeek / recalculateURIs.php
Created April 13, 2011 14:47
Script to recalculate all unfrozen URI values for MODX Resources in 2.1.x+
<?php
include 'config.core.php';
include MODX_CORE_PATH . 'model/modx/modx.class.php';
$modx = new modX();
$modx->setLogTarget(XPDO_CLI_MODE ? 'ECHO' : 'HTML');
$modx->initialize('mgr');
$modx->setLogLevel(modX::LOG_LEVEL_INFO);