Skip to content

Instantly share code, notes, and snippets.

View timkelty's full-sized avatar

Tim Kelty timkelty

View GitHub Profile
@timkelty
timkelty / Default Weblog Preferences
Created January 23, 2009 15:27
Some default weblog preferences for ExpressionEngine
UPDATE exp_weblogs SET
deft_trackbacks = 'n',
deft_comments = 'n',
weblog_allow_img_urls = 'y',
weblog_auto_link_urls = 'y',
comment_system_enabled = 'n',
show_url_title = 'n',
trackback_system_enabled = 'n',
show_trackback_field = 'n',
trackback_use_captcha = 'n',
# Run this at your site root to upgrade EE
# Paths assume your system folder is at site root
# http://expressionengine.com/docs/installation/update.html
#!/bin/bash
# location of the release
RELEASE_PATH="/Users/timkelty/Repos/expressionengine/releases/1.6.7"
echo "Enter the name of your system folder"
# get rid of template groups
TRUNCATE TABLE exp_template_groups;
INSERT INTO exp_template_groups
(group_name, group_order, is_site_default)
VALUES
('home', '1', 'y');
# get rid of templates
TRUNCATE TABLE exp_templates;
INSERT INTO exp_templates
DULL=0
BRIGHT=1
FG_BLACK=30
FG_RED=31
FG_GREEN=32
FG_YELLOW=33
FG_BLUE=34
FG_VIOLET=35
FG_CYAN=36
/***************************************
* Default Text Plugin for inputs
* @author Karl Swedberg
* @version 1.0 (03/30/2009)
* @requires jQuery v1.3+
************************************** */
(function($){
/***************************************
* Default Text Plugin for inputs
* @author Karl Swedberg
* @version 1.0 (03/30/2009)
* @requires jQuery v1.3+
************************************** */
(function($){
# get rid of template groups
TRUNCATE TABLE exp_template_groups;
INSERT INTO exp_template_groups
(group_name, group_order, is_site_default)
VALUES
('home', '1', 'y');
# get rid of templates
TRUNCATE TABLE exp_templates;
INSERT INTO exp_templates
TRUNCATE TABLE exp_categor
# get rid of template groups
TRUNCATE TABLE exp_template_groups;
INSERT INTO exp_template_groups
(group_name, group_order, is_site_default)
VALUES
('pages', '1', 'y'),
('global', '2', 'n'),
('forms', '3', 'n');
# get rid of templates
#!/bin/bash
#
# This script creates symlinks from a self contained directory to theirappropriate
# places in your site directory, allowing you to maintain addons as Git submodules.
addon_dir="submodule_addons"
# FieldFrame
ln -sf ../"$addon_dir"/bk.fieldframe.ee_addon/extensions/ext.fieldframe.php ../extensions/ext.fieldframe.php
ln -sf ../../"$addon_dir"/bk.fieldframe.ee_addon/language/english/lang.fieldframe.php ../language/english/lang.fieldframe.php