WordPress.org

Plugin Directory

Changeset 517689


Ignore:
Timestamp:
03/11/12 22:32:32 (2 years ago)
Author:
xhanch_studio
Message:
 
Location:
xhanch-my-twitter/trunk
Files:
15 added
3 edited

Legend:

Unmodified
Added
Removed
  • xhanch-my-twitter/trunk/admin/setting.php

    r478265 r517689  
    103103                if($valid){ 
    104104                    if(isset($_POST['cmd_xmt_dpl_prf'])){ 
    105                         xmt_acc_add($acc_nme, xmt_acc_cfg_get($acc_nme));        
     105                        xmt_acc_add($acc_nme, xmt_acc_cfg_get($acc_sel));        
    106106                        echo '<div id="message" class="updated fade"><p>'.__('The profile <b>'.$acc_sel.'</b> has been duplicated as <b>'.$acc_nme.'</b>', 'xmt').'</p></div>';  
    107107                    }else{ 
     
    188188                'thm' => xmt_form_post('cbo_xmt_thm'), 
    189189                'cst_css' => xmt_form_post('txa_xmt_cst_css'), 
    190                 'shw_crd' => intval(xmt_form_post('chk_xmt_shw_crd')), 
     190                'shw_crd' => (intval(xmt_form_post('chk_xmt_shw_crd'))?0:1), 
    191191                'cvr_sml' => intval(xmt_form_post('chk_xmt_cvr_sml')), 
    192192                'lnk_new_tab' => intval(xmt_form_post('chk_xmt_lnk_new_tab')), 
     
    293293            if($msg) 
    294294                echo '<div id="message" class="updated fade"><p>'.__($msg, 'xmt').'</p></div>';  
     295        }elseif(isset($_POST['cmd_xmt_import_profile'])){ 
     296            $xmt_fle_nme = $_FILES['fil_xmt_prf_fle']['tmp_name'];   
     297            $xmt_dat = unserialize(base64_decode(file_get_contents($xmt_fle_nme))); 
     298            if($xmt_dat === false) 
     299                echo '<div id="message" class="updated fade"><p>'.__('Invalid XMT profile file', 'xmt').'</p></div>';    
     300            else{ 
     301                xmt_acc_del($xmt_dat['nme']); 
     302                xmt_acc_add($xmt_dat['nme'], $xmt_dat['cfg']);   
     303                echo '<div id="message" class="updated fade"><p>'.__('XMT profile (<b>'.$xmt_dat['nme'].'</b>) has been successfully imported', 'xmt').'</p></div>'; 
     304            } 
    295305        } 
    296306                 
     
    398408                    }                            
    399409            ?>       
    400                 <form action="" method="post" id="frm_config"> 
     410                <form action="" method="post" id="frm_config" enctype="multipart/form-data"> 
    401411                    <i><small>Note: <a href="#guide"><?php echo __('Click here for a complete explaination about these configurations fields', 'xmt'); ?></a></small></i><br/> 
    402412                    <br/>                
     
    791801                        </tr> 
    792802                        <tr> 
    793                             <td><?php echo __('Show credit?', 'xmt'); ?></td> 
    794                             <td><input type="checkbox" id="chk_xmt_shw_crd" name="chk_xmt_shw_crd" value="1" <?php echo ($cfg['shw_crd']?'checked="checked"':''); ?>/></td> 
     803                            <td><?php echo __('I have <a href="http://xhanch.com/xhanch-my-twitter-donate" target="_blank">donated</a>!', 'xmt'); ?></td> 
     804                            <td><input type="checkbox" id="chk_xmt_shw_crd" name="chk_xmt_shw_crd" value="1" <?php echo ($cfg['shw_crd']?'':'checked="checked"'); ?>/></td> 
    795805                            <td></td> 
    796806                            <td></td> 
     
    835845                        <?php } ?> 
    836846                        <input type="submit" name="cmd_xmt_delete_tweets" value="<?php echo __('Delete All Stored Tweets', 'xmt'); ?>" onclick="return confirm('Are you sure to delete all stored tweets?')"/> 
     847                        <input type="button" name="cmd_xmt_export_profile" value="<?php echo __('Export Profile', 'xmt'); ?>" onclick="location.href='<?php echo xmt_get_dir('url').'/misc/profile-export.php?prf='.urlencode($acc_sel); ?>'"/> 
    837848                        <input type="submit" name="cmd_xmt_delete_profile" value="<?php echo __('Delete Profile', 'xmt'); ?>" onclick="return confirm('Are you sure to delete this profile?')"/> 
    838849                    </p> 
     
    874885                <br/><br/> 
    875886 
     887                <form action="" method="post" enctype="multipart/form-data">                     
     888                    <b><big><?php echo __('Import XMT profile', 'xmt'); ?></big></b><br/> 
     889                    <br/> 
     890                    <?php echo __('Browse for your XMT profile file (<b>.xmt</b>)', 'xmt'); ?><br/>                          
     891                    <input type="file" size="30" name="fil_xmt_prf_fle"/><br/>   
     892                    <p class="submit"><input type="submit" name="cmd_xmt_import_profile" value="<?php echo __('Import Profile', 'xmt'); ?>"/></p> 
     893                </form> 
     894                <br/><br/> 
     895 
    876896                <form action="" method="post">               
    877                     <b><big><?php echo __('Import Old Profiles', 'xmt'); ?></big></b><br/> 
     897                    <b><big><?php echo __('Migrate Old Profiles', 'xmt'); ?></big></b><br/> 
    878898                    <br/> 
    879899                    <?php echo __('Are you just upgrading from version older than v 2.5.1? The following button will help you to restore your old profiles. Simply click the following button', 'xmt'); ?>      <br/>        
  • xhanch-my-twitter/trunk/readme.txt

    r478265 r517689  
    66Tags: twitter, tweet, status, sidebar, post, posts, page, seo, xhanch, widget, plugin, code, avatar, content, social, plugins, css, text, admin, google, comments, links, image 
    77Requires at least: 2.3 
    8 Tested up to: 3.3 
    9 Stable tag: 2.6.7 
     8Tested up to: 3.3.1 
     9Stable tag: 2.6.8 
    1010 
    1111The best plugin to display your latest tweets, replies, direct messages, retweets, auto and manual tweet and lots more. Support multiple accounts 
    1212 
    1313== Description == 
     14 
     15[Click here to see what's new in v2.6.8](http://forum.xhanch.com/index.php/topic,2634.0.html "Xhanch - My Twitter - 2.6.8") 
    1416 
    1517Xhanch - My Twitter (developed by [Xhanch Studio](http://xhanch.com/ "Xhanch Studio")) is the best WordPress plugin to show/hide or include/exclude your latest tweets, replies from other members to you, replies from you to other members, retweets, and direct messages from your Twitter account(s). 
  • xhanch-my-twitter/trunk/xhanch-my-twitter.php

    r478265 r517689  
    33        Plugin Name: Xhanch - My Twitter 
    44        Plugin URI: http://xhanch.com/wp-plugin-my-twitter/ 
    5         Description: Twitter plugin for wordpress 
     5        Description: The best Twitter plugin to integrate your Wordpress and your Twitter accounts 
    66        Author: Susanto BSc (Xhanch Studio) 
    77        Author URI: http://xhanch.com 
    8         Version: 2.6.7 
     8        Version: 2.6.8 
    99    */ 
    1010     
Note: See TracChangeset for help on using the changeset viewer.