Plugin Directory

Changeset 676300


Ignore:
Timestamp:
03/05/2013 04:52:30 AM (13 years ago)
Author:
dpereyra
Message:

Added support to Twitter API 1.1

Location:
dp-maintenance-mode-lite/trunk
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • dp-maintenance-mode-lite/trunk/dpMaintenanceLite.php

    r670768 r676300  
    33Plugin Name: DP Maintenance Mode Lite
    44Description: The DP Maintenance Lite plugin includes the possibility to add a maintenance mode with a sleek theme to your website.
    5 Version: 1.3
     5Version: 1.3.1
    66Author: Diego Pereyra
    77Author URI: http://www.dpereyra.com/
     
    1414$dpMaintenance = get_option('dpMaintenance_options');
    1515
    16 define("DPMAINTENANCE_VER","1.3",false);//Current Version of this plugin
     16define("DPMAINTENANCE_VER","1.3.1",false);//Current Version of this plugin
    1717if ( ! defined( 'DPMAINTENANCE_PLUGIN_BASENAME' ) )
    1818    define( 'DPMAINTENANCE_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );
  • dp-maintenance-mode-lite/trunk/readme.txt

    r670768 r676300  
    55Requires at least: 3.0
    66Tested up to: 3.5
    7 Stable tag: 1.3
     7Stable tag: 1.3.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4141== Changelog ==
    4242
     43= 1.3.1 =
     44* Added support to Twitter API 1.1
     45
    4346= 1.3 =
    4447* Fixed an issue Sending emails in some servers
     
    7275
    7376== Upgrade Notice ==
     77
     78= 1.3.1 =
     79* Added support to Twitter API 1.1
    7480
    7581= 1.3 =
  • dp-maintenance-mode-lite/trunk/settings/settings.php

    r639361 r676300  
    601601                    </div>
    602602                    <div class="clear"></div>
     603                    <div class="errorCustom"><p><?php _e('Notice: Due to recent changes in the twitter API, you need to add your consume key and secret key. Follow the instructions below.','dpMaintenance'); ?></p></div>
    603604                   
    604605                    <div class="option option-select option_w">
     
    627628                            </div>
    628629                        </div>
     630                    </div>
     631                    <div class="clear"></div>
     632                   
     633                    <div class="option option-select">
     634                        <div class="option-inner">
     635                            <label class="titledesc"><?php _e('Consumer Key:','dpMaintenance'); ?></label>
     636                            <div class="formcontainer">
     637                                <div class="forminp">
     638                                    <input type='text' name='dpMaintenance_options[twitter_consumer_key]' value="<?php echo $dpMaintenance['twitter_consumer_key']?>"/>
     639                                    <br>
     640                                </div>
     641                                <div class="desc"></div>
     642                            </div>
     643                        </div>
     644                    </div>
     645                    <div class="clear"></div>
     646                   
     647                    <div class="option option-select">
     648                        <div class="option-inner">
     649                            <label class="titledesc"><?php _e('Consumer Secret:','dpMaintenance'); ?></label>
     650                            <div class="formcontainer">
     651                                <div class="forminp">
     652                                    <input type='text' name='dpMaintenance_options[twitter_consumer_secret]' value="<?php echo $dpMaintenance['twitter_consumer_secret']?>"/>
     653                                    <br>
     654                                </div>
     655                                <div class="desc"></div>
     656                            </div>
     657                        </div>
     658                    </div>
     659                    <div class="clear"></div>
     660                   
     661                    <div class="option option-select">
     662                        <div class="option-inner">
     663                            <label class="titledesc"><?php _e('Access Token:','dpMaintenance'); ?></label>
     664                            <div class="formcontainer">
     665                                <div class="forminp">
     666                                    <input type='text' name='dpMaintenance_options[twitter_access_token]' value="<?php echo $dpMaintenance['twitter_access_token']?>"/>
     667                                    <br>
     668                                </div>
     669                                <div class="desc"></div>
     670                            </div>
     671                        </div>
     672                    </div>
     673                    <div class="clear"></div>
     674                   
     675                    <div class="option option-select">
     676                        <div class="option-inner">
     677                            <label class="titledesc"><?php _e('Access Token Secret:','dpMaintenance'); ?></label>
     678                            <div class="formcontainer">
     679                                <div class="forminp">
     680                                    <input type='text' name='dpMaintenance_options[twitter_access_secret]' value="<?php echo $dpMaintenance['twitter_access_secret']?>"/>
     681                                    <br>
     682                                </div>
     683                                <div class="desc"></div>
     684                            </div>
     685                        </div>
     686                    </div>
     687                    <div class="clear"></div>
     688                   
     689                    <div class="option option-select">
     690                        <div class="option-inner">
     691                            <div class="formcontainer">
     692                                <div class="forminp">
     693                                    <strong>Directions to get the Consumer Key and Consumer Secret</strong>
     694                                    <ol>
     695                                        <li><a href="https://dev.twitter.com/apps/new">Add a new Twitter application</a></li>
     696                                        <li>Fill in Name, Description, Website, and Callback URL (don't leave any blank) with anything you want</li>
     697                                        <li>Agree to rules, fill out captcha, and submit your application</li>
     698                                        <li>Click the button "Create my access token" and then go to the OAuth tab.</li>
     699                                        <li>Copy the Consumer key, Consumer secret, Access token and Access token secret into the fields above</li>
     700                                        <li>Click the Save Settings button at the bottom of this page</li>
     701                                    </ol>
     702                                </div>
     703                            </div>
     704                        </div>
    629705                    </div>
    630706                    <div class="clear"></div>
  • dp-maintenance-mode-lite/trunk/templates/dark/index.php

    r639360 r676300  
    8383        try{
    8484        var msgs = '';
    85         $.getJSON('http://api.twitter.com/1/statuses/user_timeline.json?screen_name=<?php echo $dpMaintenance['twitter_id']?>&count=<?php echo $dpMaintenance['twitter_count']?>&include_rts=true&include_entities=true&callback=?', function(data){
     85        $.getJSON('<?php echo dpMaintenance_plugin_url()?>/lib/user_timeline.php?screen_name=<?php echo $dpMaintenance['twitter_id']?>&count=<?php echo $dpMaintenance['twitter_count']?>&include_rts=true&include_entities=true&t=<?php echo time()?>', function(data){
    8686            $.each(data, function(index, item){
    8787                    msgs += '<div>' + item.text.linkify() + ' ' + '<br /><span class="date">' + relative_time(item.created_at) + '</span>' + '</div>';
  • dp-maintenance-mode-lite/trunk/templates/default/index.php

    r639359 r676300  
    8383        try{
    8484        var msgs = '';
    85         $.getJSON('http://api.twitter.com/1/statuses/user_timeline.json?screen_name=<?php echo $dpMaintenance['twitter_id']?>&count=<?php echo $dpMaintenance['twitter_count']?>&include_rts=true&include_entities=true&callback=?', function(data){
     85        $.getJSON('<?php echo dpMaintenance_plugin_url()?>/lib/user_timeline.php?screen_name=<?php echo $dpMaintenance['twitter_id']?>&count=<?php echo $dpMaintenance['twitter_count']?>&include_rts=true&include_entities=true&t=<?php echo time()?>', function(data){
    8686            $.each(data, function(index, item){
    8787                    msgs += '<div>' + item.text.linkify() + ' ' + '<br /><span class="date">' + relative_time(item.created_at) + '</span>' + '</div>';
Note: See TracChangeset for help on using the changeset viewer.