This is a simple technique which should work on ALL hosts to allow ExpressionEngine to handle URLs without index.php in them. Hopefully EllisLab will add this as a built-in option soon.
IJR
/* | |
* Normalized hide address bar for iOS & Android | |
* (c) Scott Jehl, scottjehl.com | |
* MIT License | |
*/ | |
(function( win ){ | |
var doc = win.document; | |
// If there's a hash, or addEventListener is undefined, stop here | |
if( !location.hash && win.addEventListener ){ |
<?php | |
/* | |
* Converts CSV to JSON | |
* Example uses Google Spreadsheet CSV feed | |
* csvToArray function I think I found on php.net | |
*/ | |
header('Content-type: application/json'); | |
// Set your CSV feed |
<?php | |
/** | |
* Get Upload Preferences (Cross-compatible between ExpressionEngine 2.0 and 2.4) | |
* @param int $group_id Member group ID specified when returning allowed upload directories only for that member group | |
* @param int $id Specific ID of upload destination to return | |
* @return array Result array of DB object, possibly merged with custom file upload settings (if on EE 2.4+) | |
*/ | |
function get_upload_preferences($group_id = NULL, $id = NULL) | |
{ |
#!/bin/bash | |
# | |
# Config | |
# | |
# if more than the threshold, the IP will be banned | |
THRESHOLD=100 | |
# search this many recent lines of the access log |
{!-- Controller --} | |
{exp:channel:entries channel="events" dynamic="off" show_future_entries="yes" order_by="entry_date" sort="asc" } | |
{!-- group into lists by day of the week --} | |
{exp:stash:append_list name="events_list" context="{entry_date format='%D'}" } | |
{stash:entry} | |
<li><a href="{page_url}">{title}</a> {entry_date format="%d/%m/%y"}</li> | |
{/stash:entry} | |
{/exp:stash:append_list} | |
{/exp:channel:entries} |
## | |
## SCM info | |
## | |
scm_info() { | |
local bzr_info=`bzr revno --tree 2> /dev/null` | |
if [ ${bzr_info} ]; then | |
if [ "$(bzr st -S)" ]; then | |
local bzr_color='\033[1;31m' | |
else | |
local bzr_color='\033[1;36m' |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title></title> | |
<meta name="description" content=""> | |
<meta name="author" content=""> |
<?php | |
public function settings() | |
{ | |
$this->EE->cp->set_right_nav(array( | |
'← Back to Schemas' => $this->cp_url('schemas'), | |
)); | |
$fields = array( | |
'settings' => array( |