Changeset 673792
- Timestamp:
- 02/26/2013 09:30:25 PM (12 years ago)
- Location:
- af-tell-a-friend
- Files:
-
- 8 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
af-tell-a-friend/tags/1.1/af-tell-friend.php
r672214 r673792 2 2 /* 3 3 Plugin Name: AF Tell a Friend 4 Plugin URI: http://argonfactory.com 4 Plugin URI: http://argonfactory.com/wordpress/af-tell-a-friend-plugin/ 5 5 Description: AF Tell a Friend Plugin create pop up window, with option for both sender email and friend's email. Inside email message box, AF Tell a Friend Plugin place full URL to the actual page where Tell a Friend button was installed. Website admin can modify content of message box, but message area is set to read only mode, so can not be used for inserting spam content. 6 Version: 1. 06 Version: 1.1 7 7 Plugin URI: http://argonfactory.com/wordpress/af-tell-a-friend-plugin/ 8 Author URI: http://argonfactory.com/ wordpress/af-tell-a-friend-plugin/8 Author URI: http://argonfactory.com/ 9 9 */ 10 10 … … 24 24 'af_tf_form_content_message' => 'Hello, I think this page is interesting: ', 25 25 'af_tf_email_greetings' => 'best regards', 26 'af_tf_button_text' => 'Tell a Friend' 26 'af_tf_button_text' => 'Tell a Friend', 27 'af_tf_text_visual' => 'Tell a Friend', 28 'af_tf_window_height' => 380, 29 'af_tf_window_width' => 500 27 30 ); 28 31 update_option( 'af_tf_plugin_options', $af_tf_options_array ); … … 59 62 $var_af_tf_admin_content_greetings = $af_tf_temporary_array['af_tf_email_greetings']; 60 63 $var_af_tf_admin_button_text = $af_tf_temporary_array['af_tf_button_text']; 61 62 63 64 $var_af_tf_admin_window_width = $af_tf_temporary_array['af_tf_window_width']; 65 $var_af_tf_admin_window_height = $af_tf_temporary_array['af_tf_window_height']; 66 $var_af_tf_admin_text_visual = $af_tf_temporary_array['af_tf_text_visual']; 64 67 65 68 if (@$_POST['af_tf_admin_setting']) … … 71 74 $var_af_tf_admin_content_greetings = stripslashes($_POST['af_tf_admin_email_greetings']); 72 75 $var_af_tf_admin_button_text = stripslashes($_POST['af_tf_admin_button_text']); 76 $var_af_tf_admin_window_width = stripslashes($_POST['var_af_tf_admin_window_width']); 77 $var_af_tf_admin_window_height = stripslashes($_POST['var_af_tf_admin_window_height']); 78 $var_af_tf_admin_text_visual = stripslashes($_POST['af_tf_admin_text_visual']); 73 79 74 80 $af_tf_options_array = array( … … 77 83 'af_tf_form_content_message' => $var_af_tf_admin_inside_email_title, 78 84 'af_tf_email_greetings' => $var_af_tf_admin_content_greetings, 79 'af_tf_button_text' => $var_af_tf_admin_button_text 85 'af_tf_button_text' => $var_af_tf_admin_button_text, 86 'af_tf_text_visual' => $var_af_tf_admin_text_visual, 87 'af_tf_window_width' => $var_af_tf_admin_window_width, 88 'af_tf_window_height' => $var_af_tf_admin_window_height, 80 89 ); 81 90 update_option( 'af_tf_plugin_options', $af_tf_options_array ); … … 102 111 echo $var_af_tf_admin_content_greetings . '" name="af_tf_admin_email_greetings" maxlength="200" id="af_tf_admin_email_greetings" /><br />'; 103 112 104 echo '<p>Button Text:<br><input style="width: 100px;" type="text" value="';113 echo '<p>Button Text:<br><input style="width: 100px;" type="text" value="'; 105 114 echo $var_af_tf_admin_button_text . '" name="af_tf_admin_button_text" id="af_tf_admin_button_text" /><br />'; 106 115 116 echo '<p>Widget/Shortcode Text:<br><input style="width: 100px;" type="text" value="'; 117 echo $var_af_tf_admin_text_visual . '" name="af_tf_admin_text_visual" id="af_tf_admin_text_visual" /><br />'; 118 119 echo '<p>Window\'s Width:<br><input style="width: 100px;" type="text" value="'; 120 echo $var_af_tf_admin_window_width . '" name="var_af_tf_admin_window_width" id="var_af_tf_admin_window_width" /><br />'; 121 122 echo '<p>Window\'s Height:<br><input style="width: 100px;" type="text" value="'; 123 echo $var_af_tf_admin_window_height . '" name="var_af_tf_admin_window_height" id="var_af_tf_admin_window_height" /><br />'; 107 124 108 125 ?> … … 137 154 function af_TellaFriend() 138 155 { 139 140 //window.open("theURL","messageWindow","scrollbars=no,menubar=no,height=380,width=500,resizable=yes,toolbar=no,location=no,status=no");156 $af_tmp_array = get_option('af_tf_plugin_options'); 157 141 158 echo '<a href="'; 142 159 echo get_option('siteurl').'/wp-content/plugins/af-tell-a-friend/af-tf-window.php'; 143 echo '" onclick="af_tellafriendpopupwin(this.href); return false">'; 144 echo '<strong>Tell a Friend</strong></a>'; 160 echo '" onclick="af_tellafriendpopupwin(this.href,'; 161 echo $af_tmp_array['af_tf_window_height']; 162 echo ','; 163 echo $af_tmp_array['af_tf_window_width']; 164 echo '); return false">'; 165 echo '<strong>'; 166 echo $af_tmp_array['af_tf_text_visual']; 167 echo '</strong></a>'; 145 168 146 169 } … … 180 203 function af_tf_shortcode() { 181 204 205 $af_tmp_array_sc = get_option('af_tf_plugin_options'); 206 182 207 $af_tf_sh = '<a href="'; 183 208 $af_tf_sh .= get_option('siteurl').'/wp-content/plugins/af-tell-a-friend/af-tf-window.php'; 184 $af_tf_sh .= '" onclick="af_tellafriendpopupwin(this.href); return false">'; 185 $af_tf_sh .= '<strong>Tell a Friend</strong></a>'; 209 // $af_tf_sh .= '" onclick="af_tellafriendpopupwin(this.href); return false">'; 210 $af_tf_sh .= '" onclick="af_tellafriendpopupwin(this.href,'; 211 $af_tf_sh .= $af_tmp_array_sc['af_tf_window_height']; 212 $af_tf_sh .= ','; 213 $af_tf_sh .= $af_tmp_array_sc['af_tf_window_width']; 214 $af_tf_sh .= '); return false">'; 215 $af_tf_sh .= '<strong>'; 216 $af_tf_sh .= $af_tmp_array_sc['af_tf_text_visual']; 217 $af_tf_sh .= '</strong></a>'; 186 218 return $af_tf_sh; 187 219 } -
af-tell-a-friend/tags/1.1/af-tf-css/af-tf-style.css
r672214 r673792 19 19 body,td,th { 20 20 font-family: Arial, Helvetica, sans-serif; 21 overflow:hidden; 21 22 } 22 23 -
af-tell-a-friend/tags/1.1/af-tf-js/af-tf-js.js
r672214 r673792 1 1 2 function af_tellafriendpopupwin(afURL )2 function af_tellafriendpopupwin(afURL,af_xSize,af_ySize) 3 3 { 4 sendMessageWindow=window.open(afURL,"messageWindow","scrollbars=no,menubar=no,height= 380,width=500,resizable=yes,toolbar=no,location=no,status=no");4 sendMessageWindow=window.open(afURL,"messageWindow","scrollbars=no,menubar=no,height="+af_xSize+",width="+af_ySize+",resizable=no,toolbar=no, menubar=no, location=no,status=no"); 5 5 6 6 } -
af-tell-a-friend/tags/1.1/readme.txt
r672214 r673792 6 6 Tags: email form, tell a friend, tell a friend widget, email a friend, refer a friend, send to a friend, contact form, 7 7 Requires at least: 3.0 8 Tested up to: 3.5 9 Stable tag: 1. 08 Tested up to: 3.5.1 9 Stable tag: 1.1 10 10 License: GPLv2 or later 11 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 31 31 32 32 = Is this plugin free? = 33 * Yes. 34 = Does it have some layout management? 33 34 Yes. 35 36 = Does it have some layout management? = 37 35 38 Yes, it is possible via css file, however more comfortable layout setting feature via admin panel is on the way, and will be available in next version. 36 39 … … 38 41 == Screenshots == 39 42 40 1. Display ( As seen after Tell a Friend link is clicked. )41 2. Display ( As seen at admin panel. )43 1. Display - as seen after Tell a Friend link is clicked. 44 2. Display - as seen at admin panel. 42 45 43 46 == Changelog == 44 47 48 49 = 1.1 = 50 * A few minor changes: 51 Now it is possible to set size of the pop up window and edit visual text content for shortcode and widget 52 45 53 = 1.0 = 46 * Initial Release 54 * Initial Release. 47 55 48 56 == Upgrade Notice == 49 50 none 57 = 1.0 = -
af-tell-a-friend/trunk/af-tell-friend.php
r672214 r673792 2 2 /* 3 3 Plugin Name: AF Tell a Friend 4 Plugin URI: http://argonfactory.com 4 Plugin URI: http://argonfactory.com/wordpress/af-tell-a-friend-plugin/ 5 5 Description: AF Tell a Friend Plugin create pop up window, with option for both sender email and friend's email. Inside email message box, AF Tell a Friend Plugin place full URL to the actual page where Tell a Friend button was installed. Website admin can modify content of message box, but message area is set to read only mode, so can not be used for inserting spam content. 6 Version: 1. 06 Version: 1.1 7 7 Plugin URI: http://argonfactory.com/wordpress/af-tell-a-friend-plugin/ 8 Author URI: http://argonfactory.com/ wordpress/af-tell-a-friend-plugin/8 Author URI: http://argonfactory.com/ 9 9 */ 10 10 … … 24 24 'af_tf_form_content_message' => 'Hello, I think this page is interesting: ', 25 25 'af_tf_email_greetings' => 'best regards', 26 'af_tf_button_text' => 'Tell a Friend' 26 'af_tf_button_text' => 'Tell a Friend', 27 'af_tf_text_visual' => 'Tell a Friend', 28 'af_tf_window_height' => 380, 29 'af_tf_window_width' => 500 27 30 ); 28 31 update_option( 'af_tf_plugin_options', $af_tf_options_array ); … … 59 62 $var_af_tf_admin_content_greetings = $af_tf_temporary_array['af_tf_email_greetings']; 60 63 $var_af_tf_admin_button_text = $af_tf_temporary_array['af_tf_button_text']; 61 62 63 64 $var_af_tf_admin_window_width = $af_tf_temporary_array['af_tf_window_width']; 65 $var_af_tf_admin_window_height = $af_tf_temporary_array['af_tf_window_height']; 66 $var_af_tf_admin_text_visual = $af_tf_temporary_array['af_tf_text_visual']; 64 67 65 68 if (@$_POST['af_tf_admin_setting']) … … 71 74 $var_af_tf_admin_content_greetings = stripslashes($_POST['af_tf_admin_email_greetings']); 72 75 $var_af_tf_admin_button_text = stripslashes($_POST['af_tf_admin_button_text']); 76 $var_af_tf_admin_window_width = stripslashes($_POST['var_af_tf_admin_window_width']); 77 $var_af_tf_admin_window_height = stripslashes($_POST['var_af_tf_admin_window_height']); 78 $var_af_tf_admin_text_visual = stripslashes($_POST['af_tf_admin_text_visual']); 73 79 74 80 $af_tf_options_array = array( … … 77 83 'af_tf_form_content_message' => $var_af_tf_admin_inside_email_title, 78 84 'af_tf_email_greetings' => $var_af_tf_admin_content_greetings, 79 'af_tf_button_text' => $var_af_tf_admin_button_text 85 'af_tf_button_text' => $var_af_tf_admin_button_text, 86 'af_tf_text_visual' => $var_af_tf_admin_text_visual, 87 'af_tf_window_width' => $var_af_tf_admin_window_width, 88 'af_tf_window_height' => $var_af_tf_admin_window_height, 80 89 ); 81 90 update_option( 'af_tf_plugin_options', $af_tf_options_array ); … … 102 111 echo $var_af_tf_admin_content_greetings . '" name="af_tf_admin_email_greetings" maxlength="200" id="af_tf_admin_email_greetings" /><br />'; 103 112 104 echo '<p>Button Text:<br><input style="width: 100px;" type="text" value="';113 echo '<p>Button Text:<br><input style="width: 100px;" type="text" value="'; 105 114 echo $var_af_tf_admin_button_text . '" name="af_tf_admin_button_text" id="af_tf_admin_button_text" /><br />'; 106 115 116 echo '<p>Widget/Shortcode Text:<br><input style="width: 100px;" type="text" value="'; 117 echo $var_af_tf_admin_text_visual . '" name="af_tf_admin_text_visual" id="af_tf_admin_text_visual" /><br />'; 118 119 echo '<p>Window\'s Width:<br><input style="width: 100px;" type="text" value="'; 120 echo $var_af_tf_admin_window_width . '" name="var_af_tf_admin_window_width" id="var_af_tf_admin_window_width" /><br />'; 121 122 echo '<p>Window\'s Height:<br><input style="width: 100px;" type="text" value="'; 123 echo $var_af_tf_admin_window_height . '" name="var_af_tf_admin_window_height" id="var_af_tf_admin_window_height" /><br />'; 107 124 108 125 ?> … … 137 154 function af_TellaFriend() 138 155 { 139 140 //window.open("theURL","messageWindow","scrollbars=no,menubar=no,height=380,width=500,resizable=yes,toolbar=no,location=no,status=no");156 $af_tmp_array = get_option('af_tf_plugin_options'); 157 141 158 echo '<a href="'; 142 159 echo get_option('siteurl').'/wp-content/plugins/af-tell-a-friend/af-tf-window.php'; 143 echo '" onclick="af_tellafriendpopupwin(this.href); return false">'; 144 echo '<strong>Tell a Friend</strong></a>'; 160 echo '" onclick="af_tellafriendpopupwin(this.href,'; 161 echo $af_tmp_array['af_tf_window_height']; 162 echo ','; 163 echo $af_tmp_array['af_tf_window_width']; 164 echo '); return false">'; 165 echo '<strong>'; 166 echo $af_tmp_array['af_tf_text_visual']; 167 echo '</strong></a>'; 145 168 146 169 } … … 180 203 function af_tf_shortcode() { 181 204 205 $af_tmp_array_sc = get_option('af_tf_plugin_options'); 206 182 207 $af_tf_sh = '<a href="'; 183 208 $af_tf_sh .= get_option('siteurl').'/wp-content/plugins/af-tell-a-friend/af-tf-window.php'; 184 $af_tf_sh .= '" onclick="af_tellafriendpopupwin(this.href); return false">'; 185 $af_tf_sh .= '<strong>Tell a Friend</strong></a>'; 209 // $af_tf_sh .= '" onclick="af_tellafriendpopupwin(this.href); return false">'; 210 $af_tf_sh .= '" onclick="af_tellafriendpopupwin(this.href,'; 211 $af_tf_sh .= $af_tmp_array_sc['af_tf_window_height']; 212 $af_tf_sh .= ','; 213 $af_tf_sh .= $af_tmp_array_sc['af_tf_window_width']; 214 $af_tf_sh .= '); return false">'; 215 $af_tf_sh .= '<strong>'; 216 $af_tf_sh .= $af_tmp_array_sc['af_tf_text_visual']; 217 $af_tf_sh .= '</strong></a>'; 186 218 return $af_tf_sh; 187 219 } -
af-tell-a-friend/trunk/af-tf-css/af-tf-style.css
r672214 r673792 19 19 body,td,th { 20 20 font-family: Arial, Helvetica, sans-serif; 21 overflow:hidden; 21 22 } 22 23 -
af-tell-a-friend/trunk/af-tf-js/af-tf-js.js
r672214 r673792 1 1 2 function af_tellafriendpopupwin(afURL )2 function af_tellafriendpopupwin(afURL,af_xSize,af_ySize) 3 3 { 4 sendMessageWindow=window.open(afURL,"messageWindow","scrollbars=no,menubar=no,height= 380,width=500,resizable=yes,toolbar=no,location=no,status=no");4 sendMessageWindow=window.open(afURL,"messageWindow","scrollbars=no,menubar=no,height="+af_xSize+",width="+af_ySize+",resizable=no,toolbar=no, menubar=no, location=no,status=no"); 5 5 6 6 } -
af-tell-a-friend/trunk/readme.txt
r672214 r673792 6 6 Tags: email form, tell a friend, tell a friend widget, email a friend, refer a friend, send to a friend, contact form, 7 7 Requires at least: 3.0 8 Tested up to: 3.5 9 Stable tag: 1. 08 Tested up to: 3.5.1 9 Stable tag: 1.1 10 10 License: GPLv2 or later 11 11 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 31 31 32 32 = Is this plugin free? = 33 * Yes. 34 = Does it have some layout management? 33 34 Yes. 35 36 = Does it have some layout management? = 37 35 38 Yes, it is possible via css file, however more comfortable layout setting feature via admin panel is on the way, and will be available in next version. 36 39 … … 38 41 == Screenshots == 39 42 40 1. Display ( As seen after Tell a Friend link is clicked. )41 2. Display ( As seen at admin panel. )43 1. Display - as seen after Tell a Friend link is clicked. 44 2. Display - as seen at admin panel. 42 45 43 46 == Changelog == 44 47 48 49 = 1.1 = 50 * A few minor changes: 51 Now it is possible to set size of the pop up window and edit visual text content for shortcode and widget 52 45 53 = 1.0 = 46 * Initial Release 54 * Initial Release. 47 55 48 56 == Upgrade Notice == 49 50 none 57 = 1.0 =
Note: See TracChangeset
for help on using the changeset viewer.