Changeset 193530
- Timestamp:
- 01/13/2010 09:42:11 AM (16 years ago)
- Location:
- affiliate-plus/trunk
- Files:
-
- 3 edited
-
affiplus.php (modified) (6 diffs)
-
affipsettings.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
affiliate-plus/trunk/affiplus.php
r186562 r193530 5 5 Description: Affiliate Plus lets your registered users get credit for new users they recruit 6 6 Author: Nico 7 Version: 1.3 7 Version: 1.3.1 8 8 Author URI: http://www.blogio.net/blog/ 9 9 Questions, sugestions, problems? Let me know at nico@blogio.net … … 19 19 $newoptions['affp_trkpar'] = 'affid'; 20 20 $newoptions['affp_usrpage'] = '1'; 21 $newoptions['affp_showid'] = '1'; 21 22 add_option('affiliate_plus_cfg', $newoptions); 22 23 … … 45 46 'affp_trkpar' => '', 46 47 'affp_usrpage' => '', 47 'affp_land' => '' 48 'affp_land' => '', 49 'affp_showid' => '' 48 50 ); 49 51 $affiliate_plus_cfg = get_option('affiliate_plus_cfg'); 50 52 51 if(! isset($affiliate_plus_cfg['affp_trkpar'])){53 if(!($affiliate_plus_cfg['affp_trkpar'])){ 52 54 $affiliate_plus_cfg['affp_trkpar'] = 'affid'; 53 55 } … … 90 92 function affiplus_signupform() 91 93 { 94 global $wpdb; 95 $affiliate_plus_cfg = array( 96 'affp_override' => '', 97 'affp_expire' => '', 98 'affp_redir' => '', 99 'affp_trkpar' => '', 100 'affp_usrpage' => '', 101 'affp_showid' => '' 102 ); 103 $affiliate_plus_cfg = get_option('affiliate_plus_cfg'); 104 92 105 // check if we have a cookie 93 106 if(isset($_COOKIE['affiplus'])){ 94 107 $form_referral = $_COOKIE['affiplus']."\" readonly=\"readonly"; 95 } 96 echo'<p> 97 <label>Referral ID<br /> 98 <input type="text" name="affiplus_referral" id="user_login" class="input" value="'.$form_referral.'" size="20" tabindex="30" /></label> 99 </p>'; 100 101 108 if ($affiliate_plus_cfg['affp_showid']){ 109 echo'<p> 110 <label>Referral ID<br /> 111 <input type="text" name="affiplus_referral" id="user_login" class="input" value="'.$form_referral.'" size="20" tabindex="30" /></label> 112 </p>'; 113 } else { 114 echo'<input type="hidden" name="affiplus_referral" id="user_login" class="input" value="'.$form_referral.'" size="20" tabindex="30" />'; 115 } 116 } else { 117 echo'<p> 118 <label>Referral ID<br /> 119 <input type="text" name="affiplus_referral" id="user_login" class="input" value="'.$form_referral.'" size="20" tabindex="30" /></label> 120 </p>'; 121 } 102 122 } 103 123 … … 146 166 'affp_redir' => '', 147 167 'affp_trkpar' => '', 148 'affp_usrpage' => '' 168 'affp_usrpage' => '', 169 'affp_showid' => '' 149 170 ); 150 171 $affiliate_plus_cfg = get_option('affiliate_plus_cfg'); … … 210 231 'affp_redir' => '', 211 232 'affp_trkpar' => '', 212 'affp_usrpage' => '' 233 'affp_usrpage' => '', 234 'affp_showid' => '' 213 235 ); 214 236 $affiliate_plus_cfg = get_option('affiliate_plus_cfg'); 237 238 if(!($affiliate_plus_cfg['affp_trkpar'])){ 239 $affiliate_plus_cfg['affp_trkpar'] = 'affid'; 240 } 215 241 216 242 if ($affiliate_plus_cfg['affp_usrpage']){ -
affiliate-plus/trunk/affipsettings.php
r186562 r193530 6 6 'affp_trkpar' => '', 7 7 'affp_usrpage' => '', 8 'affp_land' => '' 8 'affp_land' => '', 9 'affp_showid' => '' 9 10 ); 10 11 $ol_flash = ''; … … 16 17 $affiliate_plus_cfg['affp_usrpage'] = $_POST['affp_usrpage']; 17 18 $affiliate_plus_cfg['affp_land'] = $_POST['affp_land']; 19 $affiliate_plus_cfg['affp_showid'] = $_POST['affp_showid']; 18 20 update_option('affiliate_plus_cfg',$affiliate_plus_cfg); 19 21 $ol_flash = "Your settings have been saved."; … … 62 64 </tr> 63 65 <tr valign="top"> 66 <th scope="row">show referral ID on signup page</th> 67 <td><input name="affp_showid" type="checkbox" value="1" <?php if($affiliate_plus_cfg['affp_showid']){echo"checked";}?>></td> 68 <td>select to show referral ID on the signup form.</td> 69 </tr> 70 <tr valign="top"> 64 71 <th scope="row">show affiliate details on user page </th> 65 72 <td><input name="affp_usrpage" type="checkbox" value="1" <?php if($affiliate_plus_cfg['affp_usrpage']){echo"checked";}?>></td> -
affiliate-plus/trunk/readme.txt
r186562 r193530 5 5 Requires at least: 2.8.4 6 6 Tested up to: 2.9 7 Stable tag: 1.3 7 Stable tag: 1.3.1 8 8 9 9 Affiliate Plus lets your registered users get credit for new users they recruit … … 24 24 == Changelog == 25 25 26 = 1.3.1 = 27 * 13-01-2010 28 * added the option to hide the affiliate parameter on the signup form 29 26 30 = 1.3 = 27 31 * 23-12-2009 28 * added landingpage parameter to the settings page to redirect all incomming affiliate links to a certain page32 * added landingpage parameter to the settings page to redirect all incomming affiliate links to a certain page 29 33 30 34 = 1.2.1 =
Note: See TracChangeset
for help on using the changeset viewer.