WordPress.org

Plugin Directory

Changeset 533463


Ignore:
Timestamp:
04/19/12 12:26:59 (2 years ago)
Author:
ldebrouwer
Message:

Version 0.3.8. Added ways to contact me to the sidebar. Expanded the FAQ.

Location:
affiliate-press
Files:
6 added
6 edited
6 copied

Legend:

Unmodified
Added
Removed
  • affiliate-press/tags/0.3.8/affiliate-press.php

    r532932 r533463  
    22/** 
    33 * @package Affiliate_Press 
    4  * @version 0.3.7.1 
     4 * @version 0.3.8 
    55 */ 
    66/* 
     
    99Description: Affiliate Press allows you to set up an affiliate website based on product feeds as easy as 1-2-3. 
    1010Author: ldebrouwer 
    11 Version: 0.3.7.1 
     11Version: 0.3.8 
    1212Author URI: http://lucdebrouwer.nl/ 
    1313*/ 
     
    3232function AP_activation() { 
    3333    include( LDB_AP_PATH . 'affiliate-press-upgrade.php' ); 
    34     update_option( 'LDB_Affiliate_Press_Version', '0.3.7.1' ); 
     34    update_option( 'LDB_Affiliate_Press_Version', '0.3.8' ); 
    3535    wp_schedule_event( time(), 'hourly', 'AP_cronjob' ); 
    3636} 
  • affiliate-press/tags/0.3.8/readme.txt

    r532932 r533463  
    55Requires at least: 3.3 
    66Tested up to: 3.4 
    7 Stable tag: 0.3.7.1 
     7Stable tag: 0.3.8 
    88 
    99Affiliate Press allows you to set up an affiliate website based on product feeds as easy as 1-2-3. 
     
    6262The affiliate data is now stored in the $data variable. 
    6363 
     64= Why am I not seeing the products on a category page? = 
     65By default custom post types are not shown on a category page. To achieve this you'll have to add something along the lines of the code below to your themes' function.php. 
     66 
     67<pre> 
     68add_filter( 'pre_get_posts', 'my_get_posts' ); 
     69 
     70function my_get_posts( $query ) { 
     71 
     72    if ( is_category() && $query->is_main_query() ) 
     73        $query->set( 'post_type', array( 'post', 'product' ) ); 
     74 
     75    return $query; 
     76 
     77} 
     78</pre> 
     79 
    6480= Why aren't the images from the feed being attached to the post? = 
    6581The permissions on you 'uploads' folder in 'wp-content' are most likely not set correctly. 
     
    7187 
    7288== Changelog == 
     89 
     90= 0.3.8 = 
     91* Added ways to contact me to the sidebar. 
     92* Expanded the FAQ. 
    7393 
    7494= 0.3.7 = 
  • affiliate-press/tags/0.3.8/styles.css

    r532055 r533463  
    5555    width: 20%; 
    5656    float: left; 
     57} 
     58 
     59#ap_sidebar a { 
     60    text-decoration: none; 
    5761} 
    5862 
     
    135139    color: red; 
    136140} 
     141 
     142#ap_contact li { 
     143    padding-left: 26px; 
     144    line-height: 18px; 
     145} 
     146 
     147#ap_contact .lifacebook { 
     148    background: transparent url('images/facebook.png') no-repeat left center; 
     149} 
     150 
     151#ap_contact .litwitter { 
     152    background: transparent url('images/twitter.png') no-repeat left center; 
     153} 
     154 
     155#ap_contact .limail { 
     156    background: transparent url('images/mail.png') no-repeat left center; 
     157} 
  • affiliate-press/tags/0.3.8/views/sidebar.php

    r528107 r533463  
    77    $support = '<p>' . sprintf( __( 'If you are having problems with this plugin, or have any questions, please read and post about them in the <a href="%s">Support forums</a>.', 'LDB_AP' ), 'http://wordpress.org/tags/affiliate-press' ) . '</p>'; 
    88    $this->AP_postbox( 'ap_support', __( 'Support?', 'LDB_AP' ), $support ); 
     9    $contact = '<ul><li class="lifacebook"><a href="https://www.facebook.com/lucdebrouwernl" target="_blank">' . sprintf( __( 'Like %s on Facebook', 'LDB_AP' ), 'Luc' ) . '</a></li><li class="litwitter"><a href="https://twitter.com/ldebrouwer" target="_blank">' . sprintf( __( 'Follow %s on Twitter', 'LDB_AP' ), 'Luc' ) . '</a></li><li class="limail"><a href="mailto:affiliatepress@lucdebrouwer.nl">' . sprintf( __( 'Contact %s for paid support', 'LDB_AP' ), 'Luc' ) . '</a></li></ul>'; 
     10    $this->AP_postbox( 'ap_contact', sprintf( __( 'Contact or follow %s', 'LDB_AP' ), 'Luc De Brouwer' ), $contact ); 
    911?> 
    1012        </div> 
  • affiliate-press/trunk/affiliate-press.php

    r532932 r533463  
    22/** 
    33 * @package Affiliate_Press 
    4  * @version 0.3.7.1 
     4 * @version 0.3.8 
    55 */ 
    66/* 
     
    99Description: Affiliate Press allows you to set up an affiliate website based on product feeds as easy as 1-2-3. 
    1010Author: ldebrouwer 
    11 Version: 0.3.7.1 
     11Version: 0.3.8 
    1212Author URI: http://lucdebrouwer.nl/ 
    1313*/ 
     
    3232function AP_activation() { 
    3333    include( LDB_AP_PATH . 'affiliate-press-upgrade.php' ); 
    34     update_option( 'LDB_Affiliate_Press_Version', '0.3.7.1' ); 
     34    update_option( 'LDB_Affiliate_Press_Version', '0.3.8' ); 
    3535    wp_schedule_event( time(), 'hourly', 'AP_cronjob' ); 
    3636} 
  • affiliate-press/trunk/readme.txt

    r532932 r533463  
    55Requires at least: 3.3 
    66Tested up to: 3.4 
    7 Stable tag: 0.3.7.1 
     7Stable tag: 0.3.8 
    88 
    99Affiliate Press allows you to set up an affiliate website based on product feeds as easy as 1-2-3. 
     
    6262The affiliate data is now stored in the $data variable. 
    6363 
     64= Why am I not seeing the products on a category page? = 
     65By default custom post types are not shown on a category page. To achieve this you'll have to add something along the lines of the code below to your themes' function.php. 
     66 
     67<pre> 
     68add_filter( 'pre_get_posts', 'my_get_posts' ); 
     69 
     70function my_get_posts( $query ) { 
     71 
     72    if ( is_category() && $query->is_main_query() ) 
     73        $query->set( 'post_type', array( 'post', 'product' ) ); 
     74 
     75    return $query; 
     76 
     77} 
     78</pre> 
     79 
    6480= Why aren't the images from the feed being attached to the post? = 
    6581The permissions on you 'uploads' folder in 'wp-content' are most likely not set correctly. 
     
    7187 
    7288== Changelog == 
     89 
     90= 0.3.8 = 
     91* Added ways to contact me to the sidebar. 
     92* Expanded the FAQ. 
    7393 
    7494= 0.3.7 = 
  • affiliate-press/trunk/styles.css

    r532055 r533463  
    5555    width: 20%; 
    5656    float: left; 
     57} 
     58 
     59#ap_sidebar a { 
     60    text-decoration: none; 
    5761} 
    5862 
     
    135139    color: red; 
    136140} 
     141 
     142#ap_contact li { 
     143    padding-left: 26px; 
     144    line-height: 18px; 
     145} 
     146 
     147#ap_contact .lifacebook { 
     148    background: transparent url('images/facebook.png') no-repeat left center; 
     149} 
     150 
     151#ap_contact .litwitter { 
     152    background: transparent url('images/twitter.png') no-repeat left center; 
     153} 
     154 
     155#ap_contact .limail { 
     156    background: transparent url('images/mail.png') no-repeat left center; 
     157} 
  • affiliate-press/trunk/views/sidebar.php

    r528107 r533463  
    77    $support = '<p>' . sprintf( __( 'If you are having problems with this plugin, or have any questions, please read and post about them in the <a href="%s">Support forums</a>.', 'LDB_AP' ), 'http://wordpress.org/tags/affiliate-press' ) . '</p>'; 
    88    $this->AP_postbox( 'ap_support', __( 'Support?', 'LDB_AP' ), $support ); 
     9    $contact = '<ul><li class="lifacebook"><a href="https://www.facebook.com/lucdebrouwernl" target="_blank">' . sprintf( __( 'Like %s on Facebook', 'LDB_AP' ), 'Luc' ) . '</a></li><li class="litwitter"><a href="https://twitter.com/ldebrouwer" target="_blank">' . sprintf( __( 'Follow %s on Twitter', 'LDB_AP' ), 'Luc' ) . '</a></li><li class="limail"><a href="mailto:affiliatepress@lucdebrouwer.nl">' . sprintf( __( 'Contact %s for paid support', 'LDB_AP' ), 'Luc' ) . '</a></li></ul>'; 
     10    $this->AP_postbox( 'ap_contact', sprintf( __( 'Contact or follow %s', 'LDB_AP' ), 'Luc De Brouwer' ), $contact ); 
    911?> 
    1012        </div> 
Note: See TracChangeset for help on using the changeset viewer.