Recent Updates RSS Toggle Comment Threads | Keyboard Shortcuts

  • Prasad 7:26 pm on May 14, 2012 Permalink | Log in to leave a Comment
    Tags: free-icons, , open-source-icons   

    Open source icons. 

    http://www.greepit.com/open-source-icons-gcons/

    VN:F [1.9.17_1161]
    Rating: +1 (from 1 vote)
     
  • Pradeep 1:49 pm on May 14, 2012 Permalink | Log in to leave a Comment
    Tags: , ,   

    CSS3 Slider 

    http://coding.smashingmagazine.com/2012/04/25/pure-css3-cycling-slideshow/

    VN:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
     
  • Rakshit Thakker 4:02 am on May 8, 2012 Permalink | Log in to leave a Comment
    Tags:   

    Gravity Forms PDF 

    Adds PDF rendering to the Gravity Forms Admin Page.

    More @ http://wordpress.org/extend/plugins/gravity-forms-pdf/

    VN:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
     
  • Ankit 4:11 pm on May 4, 2012 Permalink | Log in to leave a Comment
    Tags: , , , ,   

    My amazing wordpress widget with google search shopping API 

    Hello guys,
    This time I got my hands wet with Google shopping Search API. ;)

    I read about this api yesterday and thought that I should try to implement this API functionality in my wordpress widget.

    The Search API for Shopping is intended for developers who want to programmatically query data that has been uploaded to Google via the Google Merchant Center.

    The Search API for Shopping targets the following use cases:

    1) Developers can build applications that query product offers across merchants.
    2) Merchants can use the API to query their own data by becoming a Commerce Search user.
    3) Publishers in the Google Affiliate Network can use the API to access product offers from their advertisers of choice.

    In fact this API is too much extensive to it’s scope and can be very useful to the sites which are mainly intended towards the product search for consumers, also it can be very useful to more revenue generation because with the help of this API you can programatically display any offers and products from a perticular publisher.

    All the above mentioned stuff was intro (or you can also call it a speech if you wish so.. ;) ) about the Search API for shopping.

    now it’s time to get practical:->
    You can copy and paste the following code to create custom widget implementing google shopping api.

    /******************** Code Starts Here *************************************/
    function widget($args, $instance){
    extract($args, EXTR_SKIP);

    echo $before_widget;
    $title = empty($instance['title']) ? ‘ ‘ : apply_filters(‘widget_title’, $instance['title']);
    $api_key = $instance['api_key'];
    $search_q = $instance['search_q'];
    $by_brand = $instance['by_brand'];
    $results_to_show = $instance['results_to_show'];

    if(empty($results_to_show)){
    $results_to_show = 6; /* Default results to show is 6 */
    }

    $get_search_q = explode(‘ ‘, $search_q);

    if(count($get_search_q)>1){
    $more_term = 1;
    }
    //$product_url = ‘https://www.googleapis.com/shopping/search/v1/public/products?key=’.trim($api_key).’&country=US&q=netbook’;

    $product_url = ‘https://www.googleapis.com/shopping/search/v1/public/products?key=’;
    if($api_key && $search_q){
    $product_url .= trim($api_key).’&country=US&q=’;

    if(isset($more_term)){

    for($p=0;$p1){
    $more_brands = 1;
    }
    }

    /* If brands are present and more than one */
    if(isset($more_brands)){

    for($p=0;$pitems as $key=>$val){
    array_push($img_arr,$val->product->images[0]);
    array_push($title_arr,$val->product->title);
    array_push($inventory_arr,$val->product->inventories[0]);
    }
    //print_r($img_arr[0]->link);
    //exit;
    if (!empty($title))
    echo $before_title . $title . $after_title;

    if(count($title_arr)){
    if(count($title_arr)>$results_to_show){
    $result_to_display = $results_to_show;
    }else
    $result_to_display = count($title_arr);
    ?>

    <?php for($i=0; $i

    <img alt="img-” title=”" src=”link; ?>”/>

    <?php }
    }
    echo $after_widget;
    }

    }

    function rtp_child_register_widgets() {
    register_widget( 'google_shop_widget' );
    }
    add_action( 'widgets_init', 'rtp_child_register_widgets', 11 );

    /******************** Code Ends Here *************************************/

    you can make your widget as much extensible as you wish it to be.

    Currently it will ask you title for widget, what products (one or more) to search, which brands to search (optional) and number of results to display on widget.

    there is one more option for API key it's because u hav to register urself for using google API's for getting access to API through API key.

    You can also watch out my working example at http://ankit.rtcamp.info

    Hope this will be helpful to you all any point of time.
    ( Do not forget to vote if you like it :) )
    Thanks :)

    VN:F [1.9.17_1161]
    Rating: +1 (from 1 vote)
     
  • Ankit 1:51 pm on May 3, 2012 Permalink | Log in to leave a Comment
    Tags:   

    Hello Everyone,
    everyone of us know about built-in and custom widget, but there may condition arise that you may want to display same form or any other data as that of widget on a page or any other custom template.
    For sake of this we require to get $instance of that widget (which is nothing but the settings data of widget), so there is simple solution for this as follow:

    Everything in wordpress is stored in database, so as widget settings will also be there we just have to retrieve it from wp_option table with help of get_option function.

    Example:
    step1. get all settings data.
    $instincts = get_option(“your_widget_name_here”);

    step2. now $instincts contain all settings data in array as follows.
    Array
    (
    [2] => Array
    (
    [title] => SEARCH LUXURY PROPERTIES
    [min_price] => 10000
    [c_min_price] => 10
    [o_min_price] => 10000
    [max_price] => 60000
    [c_max_price] => 7
    [o_max_price] => 10000
    )

    [_multiwidget] => 1
    )

    step 3. take all settings data in your single array variable.
    foreach($instincts as $key=>$val){
    if(is_array($val)){
    $instances['c_min_price'] = trim($val['c_min_price']);
    $instances['o_min_price']=trim($val['o_min_price']);
    $instances['max_price'] = $val['max_price'];
    $instances['c_max_price'] = $val['c_max_price'];
    $instances['o_max_price']=$val['o_max_price'];
    }
    }
    (Above is merely a random example ;) so donn worry :p )

    at this point u will have all widget setting data in $instances variable, so now u can play with it however you want even out of sidebar’s ground.

    Hope this will be useful to you.
    Thanks.

    VN:F [1.9.17_1161]
    Rating: +1 (from 1 vote)
     
  • Abhimanyu 12:19 pm on May 3, 2012 Permalink | Log in to leave a Comment
    Tags: ,   

    gMaps – Google maps jQuery plugin 

    A nice jQuery plugin worth trying.

    http://gmap.nurtext.de/examples.html

    VN:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
     
  • Rahul Bansal 11:20 am on May 3, 2012 Permalink | Log in to leave a Comment
    Tags: , ,   

    Gravity Wiz 

    Dedicated blog for GravityForm plugin tutorials. Please check… Gravity Wiz

    VN:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
     
  • Rahul Bansal 7:11 am on May 3, 2012 Permalink | Log in to leave a Comment
    Tags: , google chrome, google fonts, preview   

    Google Font Previewer for Chrome 

    Must use Google Chrome Add-on for Developers/Designers.

    https://chrome.google.com/webstore/detail/engndlnldodigdjamndkplafgmkkencc

    VN:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
     
  • Tapan Bojja 10:51 am on April 28, 2012 Permalink | Log in to leave a Comment
    Tags:   

    Supereb CSS3 scroll effects. 

    Hey friends, go through the below link. It has different nice css3 scroll effect with stroll.js

    Link – http://lab.hakim.se/scroll-effects/

    VN:F [1.9.17_1161]
    Rating: +1 (from 1 vote)
     
  • Abhimanyu 5:30 pm on April 24, 2012 Permalink | Log in to leave a Comment
    Tags: , ,   

    Why wordPress comments feed returns “404 Page not found” error? 

    Refer @ http://jonathanpolansky.com/2009/03/wordpress-comments-feed-returns-404-page-not-found/

    VN:F [1.9.17_1161]
    Rating: 0 (from 0 votes)
     
c
compose new post
j
next post/next comment
k
previous post/previous comment
r
reply
e
edit
o
show/hide comments
t
go to top
l
go to login
h
show/hide help
shift + esc
cancel