pinger

    Wednesday, November 20, 2013

    bit off dirty way to display all variables from single product in woo commence plugin for wordpress

    well the list display of variables is nice but i wanted page showing all of them
    here's how it looks as output
    as u see is bare bones and needs styling for php to output divs spans classes ids but it works just fine now

    code to insert goes to woocommerce/templates/single-product/add-to-cart/variable.php

    at the end paste this
        </form>
        <?php
        $noop = 0;
        foreach ( $terms as $term ) {
        echo  "{$term->name}<br>
        {$available_variations[$noop]['weight']}<br>
        {$available_variations[$noop]['price_html']}<br>
        {$available_variations[$noop]['dimensions']}<br>";
         $noop = $noop + 1;
        }

    Thursday, August 22, 2013

    get more sliders in lite version

    for standard your limited with just 5 well this hack makes you how much you want

    find in file constants.php

    // The license of this plugin
    if( !defined( 'SLIDEDECK2_LICENSE' ) ) define( 'SLIDEDECK2_LICENSE', self::$license );
    if( !defined( 'SLIDEDECK_TOTAL_SLIDES_LITE' ) ) define( 'SLIDEDECK_TOTAL_SLIDES_LITE', 5 );

    and edit the 5 to whatever you want :)

    Monday, August 19, 2013

    how to get images in custom-facebook-feed no pro required !

    go to editing the plugin

    find the
      //**************************//
    //***CREATE THE POST HTML***//
      //**************************//

    and before //EVENT paste this

    $photo = $news->picture;
    $content .= "<img src='{$photo}'/>";

    Tuesday, April 9, 2013

    run inkscape on 10.8 ML

    get that xquartz and paste in terminal
    launchctl load -w /Library/LaunchAgents/org.macosforge.xquartz.startx.plist

    Tuesday, March 12, 2013

    load external images in swiffy code

    soo today found that swiffy uses base64 images so just checking that it can be replaced by image location it works say goodbye to 1 mb limit