Browse Source

pumpio: Connecting to pumpio should be made much more easier

pull/153/head
Michael Vogel 8 years ago
parent
commit
8e799b0216
4 changed files with 11 additions and 5 deletions
  1. +1
    -1
      .gitignore
  2. +2
    -2
      blogger/blogger.css
  3. +5
    -0
      pumpio/pumpio.php
  4. +3
    -2
      statusnet/statusnet.php

+ 1
- 1
.gitignore View File

@ -21,4 +21,4 @@ report/
/nbproject/private/
#ignore smarty cache
/view/smarty3/compiled/
/view/smarty3/compiled/

+ 2
- 2
blogger/blogger.css View File

@ -1,11 +1,11 @@
#blogger-enable-label, #blogger-username-label, #blogger-password-label, #blogger-bydefault-label {
#blogger-enable-label, #blogger-username-label, #blogger-password-label, #blogger-bydefault-label, #blogger-blog-label {
float: left;
width: 200px;
margin-top: 10px;
}
#blogger-checkbox, #blogger-username, #blogger-password, #blogger-bydefault {
#blogger-checkbox, #blogger-username, #blogger-password, #blogger-bydefault, #blogger-blog {
float: left;
margin-top: 10px;
}


+ 5
- 0
pumpio/pumpio.php View File

@ -163,6 +163,9 @@ function pumpio_connect(&$a) {
if($success) {
logger("pumpio_connect: authenticated");
header("Location: ".$a->get_baseurl()."/settings/connectors");
$o .= t("You are now authenticated to pumpio.");
$o .= '<br /><a href="'.$a->get_baseurl().'/settings/connectors">'.t("return to the connector page").'</a>';
} else {
@ -316,6 +319,8 @@ function pumpio_settings_post(&$a,&$b) {
set_pconfig(local_user(),'pumpio','public',$_POST['pumpio_public']);
set_pconfig(local_user(),'pumpio','mirror',$_POST['pumpio_mirror']);
set_pconfig(local_user(),'pumpio','post_by_default',intval($_POST['pumpio_bydefault']));
header("Location: ".$a->get_baseurl()."/pumpio/connect");
}
}
}


+ 3
- 2
statusnet/statusnet.php View File

@ -313,11 +313,12 @@ function statusnet_settings(&$a,&$s) {
$s .= '<div class="clear"></div>';
$s .= '<label id="statusnet-baseapi-label" for="statusnet-baseapi">'. t("Base API Path \x28remember the trailing /\x29") .'</label>';
$s .= '<input id="statusnet-baseapi" type="text" name="statusnet-baseapi" size="35" /><br />';
$s .= '<p></p><div class="clear"></div></div>';
$s .= '<div class="clear"></div>';
$s .= '<label id="statusnet-applicationname-label" for="statusnet-applicationname">'.t('StatusNet application name').'</label>';
$s .= '<input id="statusnet-applicationname" type="text" name="statusnet-applicationname" size="35" /><br />';
$s .= '<p></p><div class="clear"></div></div>';
$s .= '<p></p><div class="clear"></div>';
$s .= '<div class="settings-submit-wrapper" ><input type="submit" name="statusnet-submit" class="settings-submit" value="' . t('Submit') . '" /></div>';
$s .= '</div>';
} else {
/***
* ok we have a consumer key pair now look into the OAuth stuff


Loading…
Cancel
Save