Tuesday, November 22, 2011

joomla page nav modification

plugins>content>pagenavigation>pagenavigation.php. no, doesn't look like you can override - yet. http://forum.joomla.org/viewtopic.php?p=1605175

Wednesday, October 26, 2011

Mute Pandora Adverts (or anything really) using a keyboard shortcut

Use Automator to create a service that runs this applescript

set myVol to output volume of (get volume settings)
set volume 0
delay 15
set volume (myVol / 14.5)

Then in System Prefs in Keyboard > Keyboard shortcuts add a shortcut to the service.

Done. 15 sec delay to volume which does most pandora ads, not enough, hit it again... never hear about 5 hour energy again.

Don't ask me why you have to divide the volume by 14.5 but if you don't it gets incrementally higher every time....

Wednesday, October 19, 2011

Replace a form submit button with an image using just CSS

form input[type=submit] {
    background : url(../images/submit.gif) no-repeat center center;
    width : 90px;
    height :42px;
    border : none;
    color : transparent;
    font-size : 0margin: 0px;
    padding: 0px;
    float: right;
}
adapted from http://www.suburban-glory.com/blog?page=140

Thursday, June 30, 2011

joomla 1.6 custom article fields

Hackedey hack hack

add fields to jos_content as you please

add fields to article.xml in components>com_content>models>forms>article.xml like so

class="inputbox" description="custom" field="" id="custom" label="custom" name="custom" size="20" type="text"


then you can use it in stuff like  components>com_content>models>forms>tmpl>edit.php like so

    form->getInput('custom');

then you can use those fields in a template override

if you want to access the fields in a module like mod_articles_category change helper to include
        $item->custom = $item->custom;
near this line
        $item->slug = $item->id.':'.$item->alias;


AND the seclect clause in components>com_content>models>articles.php
        $this->getState(
                'list.select',
                'a.id, a.title, a.alias, a.title_alias, a.introtext, a.custom, ' .

then you can override the mudule in templates>html and use
        echo $item->custom;
like
  echo $item->title;

Wednesday, June 15, 2011

Hotham Lodges refresh

Finally got around to refreshing Hotham Lodges

http://www.hothamlodges.com.au/

first version, if only I can find some more time.