Plugin Directory

Changeset 517909


Ignore:
Timestamp:
03/12/2012 01:15:07 PM (14 years ago)
Author:
mobstac
Message:

Users can modify their MobStac settings.

Location:
mobstac-blogger/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • mobstac-blogger/trunk/readme.txt

    r517803 r517909  
    3030
    3131== Changelog ==
     32= 2.74 =
     33* Allowing users to modify MobStac settings.
     34
    3235= 2.73 =
    3336* Renamed screenshots files.
  • mobstac-blogger/trunk/wordpress_common.php

    r517793 r517909  
    44Plugin URI: http://mobstac.com/tour
    55Description: Redirects mobile visitors to a mobile version of your WordPress blog, powered by MobStac with blazing-fast page loads, support for over 5000 mobile devices (not just iPhones and touch phones), custom domain support (m.yourdomain.com), analytics, and ad network integration.
    6 Version: 2.73
     6Version: 2.74
    77Author: MobStac
    88Author URI: http://mobstac.com
     
    265265        $hidden_field_name = 'mt_submit_hidden';
    266266       
     267        // hidden field to edit form
     268        $edit_settings_form = 'mt_settings_hidden';
     269       
    267270        // Create the database entry if not present
    268271        add_option($this->MOBILE_URL);
     
    274277        $mobile_url = $mobstac_api_key = '';
    275278        $this->mobstac_get_params($mobile_url, $mobstac_api_key);
     279       
     280        //if (isset($_POST[$this->MOBILE_URL]) && isset($_POST[$this->MOBSTAC_API_KEY]) && $_POST[$edit_settings_form] == 'Y') {
     281        if ($_POST[$edit_settings_form] == 'Y') {
     282            update_option($this->MOBSTAC_SITE_CREATED, 'pending');
     283        }
    276284       
    277285        // See if the user has posted us some information
     
    316324      ?>
    317325          <div class="updated">
    318             <p>Congratulations! your mobile site is ready. Access your <a target="_blank" href="http://mobstac.com/m/plugin/iframe/loginformdisplay/?email=<?php echo get_option($this->MOBSTAC_SITE_OWNER) ?>" onclick="window.open(this.href, 'popup_id', 'scrollbars,resizable,width=300,height=500'); return false;"> MobStac dashboard here</a>.</p>
     326            <p>Congratulations! Your MobStac site is ready. Access your <a target="_blank" href="http://mobstac.com/mpa/"> MobStac dashboard here</a>.</p>
    319327          </div>
     328          <form name="settings_info_form" method="post" action="">
     329            <input type="hidden" name="<?php echo $edit_settings_form; ?>" value="Y">
     330            <p><b>MobStac plug-in settings:</b></p>
     331            <p><b>API Key  : </b><i><?php echo $mobstac_api_key; ?></i></p>
     332            <p><b>Site URL : </b><i><?php echo $mobile_url; ?></i></p>
     333            <input type="submit" name="Submit" class="button-primary" value="<?php esc_attr_e('Edit Settings') ?>" />
     334          </form>
    320335      <?php
    321336      }
     
    334349      if (get_option($this->MOBSTAC_SITE_CREATED) != 'created'){
    335350      ?>
    336       <div style="border-style:solid;">
    337351      <form name="form1" method="post" action="">
    338352        <input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
     
    348362        </p>
    349363      </form>
    350       </div>
    351364      <?php
    352365      }
Note: See TracChangeset for help on using the changeset viewer.