tips icon image

EE Insider Tips
Sponsored by Mijingo's EE 2 Screencasts

ExpressionEngine mini-howtos created by the EE Insider community.

All EE Insider Tips

A complete list of the tips created by the EE Insider community.

Search EE Docs in Chrome URL Bar with an alias

Posted on July 03, 2011 by mz91184

I search the EE Docs, EE Forums and CI Docs all the time.  I created a short alias in the Chrome for each site to save time.  Chrome allows you to create custom search engine options.  You can see how here.

http://www.google.com/support/chrome/bin/answer.py?answer=95653

Use this code for your

Read this tip

Add rel=“nofollow” to all auto generated links in a weblog entry

Posted on February 17, 2011 by Brad Morse

File: core.typography.php, for version 1.6.x

This will add rel=“nofollow” to all of your auto generated links in weblog entries.

Line 902:

change:

$str str_replace($matches['0'][$i]'<a href="'.$bounce.trim($url).'"'.$extra.'>'.$matches['2'][$i]."</a>"$str); 

to:

$str str_replace(

Read this tip

Disallowed Key Characters

Posted on January 20, 2011 by johnniefp

I’ve had this twice now on my Freeforms so thought it may help someone else.

One of my form element names had a leading space which caused this error.

How I found it was to add a little debugging to the core.

In the file: core.input.php (EE v1.7.0) there is a method called: clean_input_keys on

Read this tip

A generic User Message Template

Posted on December 09, 2010 by Derek Hogue

Here’s a simple, generic User Message Template that’s gentler on the eyes than the EE default. Easy to customize as well to match your site’s colours if you’re so inclined!

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
>

Read this tip

Javascript Pagination with Matrix / MX Calc and jQuery

Posted on September 27, 2010 by Steven

I ran into a situation where I couldn’t use generic slider-scripts due to their fixed width/height nature and absolute positioning, so I had to concoct my own. You’ll need Matrix (obviously) and MX Calc.

The template-tags:

{contentblocks}
    
<div class="block{if row_count == '1'} active{/if}" id

Read this tip

disappearing entries that suddenly reappear! DST!

Posted on July 06, 2010 by johnniefp

OK, this drove me mad over the last two days.

Ever had entries which you update on your site disappear after your update them? (and reappear later)

I thought something was caching - so turn caching off and cleared current cache. No joy.

The culprit was Daylight Saving Time setting on EE.

My

Read this tip

Add a {last_segment} global variable

Posted on June 28, 2010 by Erik Reagan

IMPORTANT UPDATE:
EllisLab has added an official {last_segment} tag as of EE 2.1.1. See info here: http://expressionengine.com/blog/entry/2.1.1_release_what_will_be_there_what_will_not/

—-

Sometimes it is quite handy to pull in the last segment of a URI. EE makes it easy to grab the first segment

Read this tip

Config Overrides for EE 1 and 2

Posted on June 17, 2010 by Ryan Irelan

I don’t think I’ve seen this one before, but the EE Wiki contains a full list of config.php overrides, which are easily found by doing the following in a EE 1.6.x template with PHP enabled:

<?php 
    
global $PREFS;
    
print_r($PREFS);
?> 

The list in the wiki is only for 1.6.7, so some may have

Read this tip

The filetype you are attempting to upload has invalid content for its MIME type

Posted on April 28, 2010 by johnniefp

Well this one is different to the Freeform upload issue I added a week or so ago.

When a user uploads content EE attempts to filter that content against XSS - (Cross Site Scripting, a technique the bad guys use to compromise your site)

A logged in Super Admin automatically is trusted by EE and

Read this tip

Add a dynamic page_uri global variable

Posted on April 14, 2010 by Erik Reagan

For some strange and odd reason, there is no full page_uri global variable built in to EE (that I’ve found at least). You can access each segment with segment variables but there’s not a way to get everything after your domain. We can easily add one by opening our path.php file and adding a global

Read this tip

 1 2 3 >  Last »

Search EE Insider Tips
Sponsored By