Plugin Directory

Changeset 673792


Ignore:
Timestamp:
02/26/2013 09:30:25 PM (12 years ago)
Author:
argonfactory
Message:

tagging version 1.1 of af tell a friend

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  
    22 /*
    33 Plugin Name: AF Tell a Friend
    4  Plugin URI: http://argonfactory.com
     4 Plugin URI: http://argonfactory.com/wordpress/af-tell-a-friend-plugin/
    55 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.0
     6 Version: 1.1
    77Plugin URI: http://argonfactory.com/wordpress/af-tell-a-friend-plugin/
    8 Author URI: http://argonfactory.com/wordpress/af-tell-a-friend-plugin/
     8Author URI: http://argonfactory.com/
    99 */
    1010 
     
    2424'af_tf_form_content_message' => 'Hello, I think this page is interesting: ',
    2525'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
    2730);
    2831update_option( 'af_tf_plugin_options', $af_tf_options_array );
     
    5962$var_af_tf_admin_content_greetings = $af_tf_temporary_array['af_tf_email_greetings'];
    6063$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'];
    6467
    6568    if (@$_POST['af_tf_admin_setting'])
     
    7174        $var_af_tf_admin_content_greetings = stripslashes($_POST['af_tf_admin_email_greetings']);
    7275        $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']);
    7379
    7480$af_tf_options_array = array(
     
    7783'af_tf_form_content_message' => $var_af_tf_admin_inside_email_title,
    7884'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,
    8089);
    8190update_option( 'af_tf_plugin_options', $af_tf_options_array );
     
    102111    echo $var_af_tf_admin_content_greetings . '" name="af_tf_admin_email_greetings" maxlength="200" id="af_tf_admin_email_greetings" /><br />';
    103112   
    104     echo '<p>ButtonText:<br><input style="width: 100px;" type="text" value="';
     113    echo '<p>Button Text:<br><input style="width: 100px;" type="text" value="';
    105114    echo $var_af_tf_admin_button_text . '" name="af_tf_admin_button_text" id="af_tf_admin_button_text" /><br />';
    106115   
     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 />';
    107124   
    108125    ?>
     
    137154function af_TellaFriend()
    138155{
    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   
    141158        echo '<a href="';
    142159        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>';
    145168       
    146169}
     
    180203function af_tf_shortcode() {
    181204
     205    $af_tmp_array_sc = get_option('af_tf_plugin_options');
     206
    182207    $af_tf_sh = '<a href="';
    183208        $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>';       
    186218        return $af_tf_sh;
    187219}
  • af-tell-a-friend/tags/1.1/af-tf-css/af-tf-style.css

    r672214 r673792  
    1919body,td,th {
    2020    font-family: Arial, Helvetica, sans-serif;
     21    overflow:hidden;
    2122}
    2223
  • af-tell-a-friend/tags/1.1/af-tf-js/af-tf-js.js

    r672214 r673792  
    11
    2 function af_tellafriendpopupwin(afURL)
     2function af_tellafriendpopupwin(afURL,af_xSize,af_ySize)
    33{
    4 sendMessageWindow=window.open(afURL,"messageWindow","scrollbars=no,menubar=no,height=380,width=500,resizable=yes,toolbar=no,location=no,status=no");
     4sendMessageWindow=window.open(afURL,"messageWindow","scrollbars=no,menubar=no,height="+af_xSize+",width="+af_ySize+",resizable=no,toolbar=no, menubar=no, location=no,status=no");
    55   
    66}
  • af-tell-a-friend/tags/1.1/readme.txt

    r672214 r673792  
    66Tags: email form, tell a friend, tell a friend widget, email a friend, refer a friend, send to a friend, contact form,
    77Requires at least: 3.0
    8 Tested up to: 3.5
    9 Stable tag: 1.0
     8Tested up to: 3.5.1
     9Stable tag: 1.1
    1010License: GPLv2 or later
    1111License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3131
    3232= Is this plugin free? =
    33 * Yes.
    34 = Does it have some layout management?
     33
     34Yes.
     35
     36= Does it have some layout management? =
     37
    3538Yes, 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.
    3639
     
    3841== Screenshots ==
    3942
    40 1. Display ( As seen after Tell a Friend link is clicked. )
    41 2. Display ( As seen at admin panel. )
     431. Display - as seen after Tell a Friend link is clicked.
     442. Display - as seen at admin panel.
    4245
    4346== Changelog ==
    4447
     48
     49= 1.1 =
     50* A few minor changes:
     51Now it is possible to set size of the pop up window and edit visual text content for shortcode and widget
     52
    4553= 1.0 =
    46 * Initial Release
     54* Initial Release.
    4755
    4856== Upgrade Notice ==
    49 
    50 none
     57= 1.0 =
  • af-tell-a-friend/trunk/af-tell-friend.php

    r672214 r673792  
    22 /*
    33 Plugin Name: AF Tell a Friend
    4  Plugin URI: http://argonfactory.com
     4 Plugin URI: http://argonfactory.com/wordpress/af-tell-a-friend-plugin/
    55 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.0
     6 Version: 1.1
    77Plugin URI: http://argonfactory.com/wordpress/af-tell-a-friend-plugin/
    8 Author URI: http://argonfactory.com/wordpress/af-tell-a-friend-plugin/
     8Author URI: http://argonfactory.com/
    99 */
    1010 
     
    2424'af_tf_form_content_message' => 'Hello, I think this page is interesting: ',
    2525'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
    2730);
    2831update_option( 'af_tf_plugin_options', $af_tf_options_array );
     
    5962$var_af_tf_admin_content_greetings = $af_tf_temporary_array['af_tf_email_greetings'];
    6063$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'];
    6467
    6568    if (@$_POST['af_tf_admin_setting'])
     
    7174        $var_af_tf_admin_content_greetings = stripslashes($_POST['af_tf_admin_email_greetings']);
    7275        $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']);
    7379
    7480$af_tf_options_array = array(
     
    7783'af_tf_form_content_message' => $var_af_tf_admin_inside_email_title,
    7884'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,
    8089);
    8190update_option( 'af_tf_plugin_options', $af_tf_options_array );
     
    102111    echo $var_af_tf_admin_content_greetings . '" name="af_tf_admin_email_greetings" maxlength="200" id="af_tf_admin_email_greetings" /><br />';
    103112   
    104     echo '<p>ButtonText:<br><input style="width: 100px;" type="text" value="';
     113    echo '<p>Button Text:<br><input style="width: 100px;" type="text" value="';
    105114    echo $var_af_tf_admin_button_text . '" name="af_tf_admin_button_text" id="af_tf_admin_button_text" /><br />';
    106115   
     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 />';
    107124   
    108125    ?>
     
    137154function af_TellaFriend()
    138155{
    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   
    141158        echo '<a href="';
    142159        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>';
    145168       
    146169}
     
    180203function af_tf_shortcode() {
    181204
     205    $af_tmp_array_sc = get_option('af_tf_plugin_options');
     206
    182207    $af_tf_sh = '<a href="';
    183208        $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>';       
    186218        return $af_tf_sh;
    187219}
  • af-tell-a-friend/trunk/af-tf-css/af-tf-style.css

    r672214 r673792  
    1919body,td,th {
    2020    font-family: Arial, Helvetica, sans-serif;
     21    overflow:hidden;
    2122}
    2223
  • af-tell-a-friend/trunk/af-tf-js/af-tf-js.js

    r672214 r673792  
    11
    2 function af_tellafriendpopupwin(afURL)
     2function af_tellafriendpopupwin(afURL,af_xSize,af_ySize)
    33{
    4 sendMessageWindow=window.open(afURL,"messageWindow","scrollbars=no,menubar=no,height=380,width=500,resizable=yes,toolbar=no,location=no,status=no");
     4sendMessageWindow=window.open(afURL,"messageWindow","scrollbars=no,menubar=no,height="+af_xSize+",width="+af_ySize+",resizable=no,toolbar=no, menubar=no, location=no,status=no");
    55   
    66}
  • af-tell-a-friend/trunk/readme.txt

    r672214 r673792  
    66Tags: email form, tell a friend, tell a friend widget, email a friend, refer a friend, send to a friend, contact form,
    77Requires at least: 3.0
    8 Tested up to: 3.5
    9 Stable tag: 1.0
     8Tested up to: 3.5.1
     9Stable tag: 1.1
    1010License: GPLv2 or later
    1111License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3131
    3232= Is this plugin free? =
    33 * Yes.
    34 = Does it have some layout management?
     33
     34Yes.
     35
     36= Does it have some layout management? =
     37
    3538Yes, 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.
    3639
     
    3841== Screenshots ==
    3942
    40 1. Display ( As seen after Tell a Friend link is clicked. )
    41 2. Display ( As seen at admin panel. )
     431. Display - as seen after Tell a Friend link is clicked.
     442. Display - as seen at admin panel.
    4245
    4346== Changelog ==
    4447
     48
     49= 1.1 =
     50* A few minor changes:
     51Now it is possible to set size of the pop up window and edit visual text content for shortcode and widget
     52
    4553= 1.0 =
    46 * Initial Release
     54* Initial Release.
    4755
    4856== Upgrade Notice ==
    49 
    50 none
     57= 1.0 =
Note: See TracChangeset for help on using the changeset viewer.