Plugin Directory

Changeset 1453950


Ignore:
Timestamp:
07/13/2016 09:30:50 AM (10 years ago)
Author:
O-Zone
Message:

Some bugs fixed and URL update

Location:
wp-allaround/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • wp-allaround/trunk/README.txt

    r1453892 r1453950  
    55Requires at least: 4.0.0
    66Tested up to: 4.5.3
    7 Stable tag: 0.1
     7Stable tag: 0.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1414
    1515WP-AllAround is the connector plugin for AllAroundSiena Telegram Bot service, that let you to spread via Telegram channels new posts of your blog.
    16 To connect your blog to the Telegram Channel, you simply need an API key to get freely via [AllAroundSiena](http://www.allaroundsiena.com/bot "AllAroundSiena Telegram Bot).
     16To connect your blog to the Telegram Channel, you simply need an API key to get freely on http://www.allaroundsiena.com/.
    1717
    1818== Installation ==
     
    22223. Use the Settings->AllAround Options screen to configure the plugins and add the AllAround API key (get for free on www.allaroundsiena.com/bot)
    23234. Click on "Connect this blog" button to validate the API key and connect your blog to the AllAroundSiena Telegram Bot service
    24 5. You're done ! Now you need to create you Telegram Channel and configure it as explained on [AllAroundSiena](http://www.allaroundsiena.com/bot "AllAroundSiena Telegram Bot) pages
     245. You're done ! Now you need to create you Telegram Channel and configure it as explained on http://www.allaroundsiena.com/ pages
    2525
    2626== Frequently Asked Questions ==
     
    3636== Changelog ==
    3737
     38= 0.2 =
     39* Miscellaneous bug fixed
     40
    3841= 0.1 =
    3942* First release
  • wp-allaround/trunk/languages/default.po

    r1453892 r1453950  
    22msgstr ""
    33"Project-Id-Version: WP-AllAround\n"
    4 "POT-Creation-Date: 2016-07-06 12:10+0100\n"
    5 "PO-Revision-Date: 2016-07-06 12:11+0100\n"
     4"POT-Creation-Date: 2016-07-13 11:24+0100\n"
     5"PO-Revision-Date: 2016-07-13 11:25+0100\n"
    66"Last-Translator: Michele \"O-Zone\" Pinassi <o-zone@zerozone.it>\n"
    77"Language-Team: \n"
     8"Language: it_IT\n"
    89"MIME-Version: 1.0\n"
    910"Content-Type: text/plain; charset=UTF-8\n"
     
    1213"X-Poedit-KeywordsList: _;gettext;gettext_noop;_e\n"
    1314"X-Poedit-Basepath: .\n"
    14 "Language: it_IT\n"
    1515"X-Poedit-SearchPath-0: ..\n"
    1616
    17 #: ../wp-allaround-admin.php:77
     17#: ../wp-allaround-admin.php:81
    1818msgid "Your AllAround BOT Api Key"
    1919msgstr "La tua API Key del BOT AllAround"
    2020
    21 #: ../wp-allaround-admin.php:81
     21#: ../wp-allaround-admin.php:85
    2222msgid "Type here your AllAround BOT Api Key"
    2323msgstr "Digita qui la chiave del BOT"
    2424
    25 #: ../wp-allaround-admin.php:94
     25#: ../wp-allaround-admin.php:98
    2626msgid ""
    2727"After setting BOT Api Key (get one for free at <a href='http://www."
    28 "allaroundsiena.com/bot'>www.allaroundsiena.com/bot</a>) click on the "
    29 "following button to start broadcasting:"
     28"allaroundsiena.com'>www.allaroundsiena.com</a>) click on the following "
     29"button to start broadcasting:"
    3030msgstr ""
    3131
    32 #: ../wp-allaround-admin.php:96
     32#: ../wp-allaround-admin.php:99
    3333msgid "Connect this blog"
    3434msgstr "Connetti questo blog"
    3535
    36 #: ../wp-allaround.php:84
     36#: ../wp-allaround.php:130
     37msgid "Post published successfully on your BOT !"
     38msgstr "Articolo pubblicato con successo !"
     39
     40#: ../wp-allaround.php:138
    3741msgid ""
    38 "Oops ! Something went wrong while publishing your post: try again in few "
    39 "minutes"
     42"Ooops ! Something wrong happens while publish your post on AllAround BOT: "
     43"try again in few minutes"
    4044msgstr ""
     45"Ooops ! E' successo qualcosa di sbagliato nella pubblicazione del tuo post "
     46"su AllAround BOT: prova ancora tra qualche minuto...."
  • wp-allaround/trunk/wp-allaround-admin.php

    r1453892 r1453950  
    2222    $body = Unirest\Request\Body::multipart($data);
    2323
    24     $result = Unirest\Request::post('https://www.allaroundsiena.com/bot/rest/connect', $headers, $body);
     24    $result = Unirest\Request::post('https://www.allaroundsiena.com/rest/connect', $headers, $body);
    2525
    2626    if($result->code == '200') {
     
    9696    </div> <!-- end poststuff -->
    9797    <div>
    98         <p><?php echo _e('After setting BOT Api Key (get one for free at <a href=\'http://www.allaroundsiena.com/bot\'>www.allaroundsiena.com/bot</a>) click on the following button to start broadcasting:'); ?></p>
     98        <p><?php echo _e('After setting BOT Api Key (get one for free at <a href=\'http://www.allaroundsiena.com\'>www.allaroundsiena.com</a>) click on the following button to start broadcasting:'); ?></p>
    9999        <button class="btn btn-large" id="allaround_connect"><?php _e('Connect this blog', 'wp-allaround'); ?></button>
    100100        <span id="allaround_connect_result">&nbsp;</span>
  • wp-allaround/trunk/wp-allaround.php

    r1453892 r1453950  
    22/*
    33Plugin Name:    WP AllAround Connector Plugin
    4 Plugin URI:     http://www.allaroundsiena.com/bot
     4Plugin URI:     http://www.allaroundsiena.com/plugin
    55Description:    This plugin let you to connect a Telegram Bot with your blog
    66Version:    0.1
     
    109109    error_log(print_r($body, true));
    110110
    111     $result = Unirest\Request::post('https://www.allaroundsiena.com/bot/rest/publish', $headers, $body);
     111    $result = Unirest\Request::post('https://www.allaroundsiena.com/rest/publish', $headers, $body);
    112112
    113113    error_log(print_r($result, true));
     
    116116
    117117    if($result->code == "200") { /* Success */
    118         $html = "<div class='updated'><p>"._e("Post '$post_title' published successfully on your BOT", 'wp-allaround' )."</p></div>";
     118        add_action( 'admin_notices', 'allaround_notice_publish_success' );
    119119    } else {
    120         $html = "<div class='error'><p>"._e("Oops ! Something went wrong while publishing your post: try again in few minutes", 'wp-allaround' )."</p></div>";
     120        add_action( 'admin_notices', 'allaround_notice_publish_error' );
    121121    }
    122122
     
    125125}
    126126
     127function allaround_notice_publish_success() {
     128?>
     129    <div class="updated notice">
     130    <p><?php _e('Post published successfully on your BOT !', 'wp-allaround' ); ?></p>
     131    </div>
     132<?php
     133}
     134
     135function allaround_notice_publish_error() {
     136?>
     137    <div class="error notice">
     138    <p><?php _e('Ooops ! Something wrong happens while publish your post on AllAround BOT: try again in few minutes', 'wp-allaround' ); ?></p>
     139    </div>
     140<?php
     141}
Note: See TracChangeset for help on using the changeset viewer.