Skip to content

Instantly share code, notes, and snippets.

View dpdexter's full-sized avatar

David Dexter dpdexter

View GitHub Profile
@dpdexter
dpdexter / gist:1337437
Created November 3, 2011 18:55
Bash Rename Files
for i in REG_* ; do mv $i `echo $i | sed 's/REG_//'`; done
@dpdexter
dpdexter / gist:1303003
Created October 21, 2011 03:01
BR price_html error [#0000125]
function _check_product_price($p)
{
$group_id = $this->EE->session->userdata["group_id"];
// Deal with our price matrix
foreach($p["price_matrix"] as $price){
if( $price["group_id"] == 0 ||
$price["group_id"] == $group_id){
$amt = array(
@dpdexter
dpdexter / gist:1271562
Created October 7, 2011 23:11
Getting BrilliantRetail Category Images
{exp:query sql="SELECT * FROM exp_br_category WHERE parent_id = (SELECT category_id FROM exp_br_category WHERE url_title = 'products') ORDER BY sort"}
<h2>{title}</h2>
{url_title}
<br />
{image}
<br />
{detail}
<hr />
{/exp:query}