This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{categories} | |
<input type="checkbox" value="{category_id}"{checked}>{category_name}</option> | |
{/categories} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @property CI_DB_active_record $db | |
* @property CI_DB_forge $dbforge | |
* @property CI_Benchmark $benchmark | |
* @property CI_Calendar $calendar | |
* @property CI_Cart $cart | |
* @property CI_Config $config | |
* @property CI_Controller $controller | |
* @property EE_Email $email |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{preload_replace:chan="products"} | |
{exp:channel:entries channel="{chan}"} | |
{cf_{chan}_field_name} | |
{/exp:channel:entries} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MX Google Map | |
Safe Harbor Polls | |
Matrix | |
Detour | |
Assets | |
Playa | |
Zoo Plus | |
CartThrob Order Items | |
Channel Files | |
Channel Images |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public Your_extension_ext | |
{ | |
public function your_hook() | |
{ | |
if ( ! isset($this->EE->session->cache['your_extension])) | |
{ | |
//do your stuff | |
} | |
//set the cache, so next time your stuff won't run |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if ( ! $this->EE->input->ajax_request()) | |
{ | |
show_404(); | |
} | |
?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{!--example url: template_group/template/123--} | |
{exp:safecracker entry_id="{segment_3}" return="template_group/template/ENTRY_ID"} | |
... | |
{!-- | |
this is the trick that duplicates the entry | |
even though entry_id 123 is LOADED into this form | |
this blank entry_id field will trick SC into thinking | |
this is a new entry |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" ?> | |
<rss version="2.0" | |
xmlns:g="http://base.google.com/ns/1.0"> | |
<channel> | |
<title>{site_name} Products</title> | |
<link>{site_url}</link> | |
<description>[insert store description here]</description> | |
{exp:channel:entries channel="products" rdf="off" dynamic_start="on" limit="1000" disable="member_data|trackbacks"} | |
<item> | |
<title>{exp:xml_encode}{title}{/exp:xml_encode}</title> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//add this to your config file | |
if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) | |
{ | |
$_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_X_FORWARDED_FOR']; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$url = (isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on')?'https':'http'.'://'.$_SERVER['HTTP_HOST'].($_SERVER['SERVER_PORT'] != 80)?':'.$_SERVER['SERVER_PORT']:''.$_SERVER['REQUEST_URI']; |