]> git.mxchange.org Git - friendica-addons.git/blobdiff - ljpost/ljpost.php
cleaned up where "lj" was included in dwpost.css
[friendica-addons.git] / ljpost / ljpost.php
index 3084b8bd3a90a0356535fce67179584687e7c7b3..14bac69e3a81cffd80380a19b6f5ae6c8872ce65 100644 (file)
@@ -4,7 +4,7 @@
  * Name: LiveJournal Post Connector
  * Description: Post to LiveJournal
  * Version: 1.0
- * Author: Tony Baldwin <http://tonybaldwin.me/friendica/profile/tony>
+ * Author: Tony Baldwin <https://free-haven.org/profile/tony>
  * Author: Michael Johnston
  */
 
@@ -61,7 +61,6 @@ function ljpost_settings(&$a,&$s) {
 
        $lj_username = get_pconfig(local_user(), 'ljpost', 'lj_username');
        $lj_password = get_pconfig(local_user(), 'ljpost', 'lj_password');
-       $lj_url = get_pconfig(local_user(), 'ljpost', 'lj_url');
 
 
     /* Add some HTML to the existing form */
@@ -83,11 +82,6 @@ function ljpost_settings(&$a,&$s) {
     $s .= '<input id="ljpost-password" type="password" name="lj_password" value="' . $lj_password . '" />';
     $s .= '</div><div class="clear"></div>';
 
-    $s .= '<div id="ljpost-url-wrapper">';
-    $s .= '<label id="ljpost-url-label" for="ljpost-url">' . t('LiveJournal URL') . '</label>';
-    $s .= '<input id="ljpost-url" type="url" name="lj_url" value="' . $lj_url . '" />';
-    $s .= '</div><div class="clear"></div>';
-
     $s .= '<div id="ljpost-bydefault-wrapper">';
     $s .= '<label id="ljpost-bydefault-label" for="ljpost-bydefault">' . t('Post to LiveJournal by default') . '</label>';
     $s .= '<input id="ljpost-bydefault" type="checkbox" name="lj_bydefault" value="1" ' . $def_checked . '/>';
@@ -108,7 +102,6 @@ function ljpost_settings_post(&$a,&$b) {
                set_pconfig(local_user(),'ljpost','post_by_default',intval($_POST['lj_bydefault']));
                set_pconfig(local_user(),'ljpost','lj_username',trim($_POST['lj_username']));
                set_pconfig(local_user(),'ljpost','lj_password',trim($_POST['lj_password']));
-               set_pconfig(local_user(),'ljpost','lj_url',trim($_POST['lj_url']));
 
        }
 
@@ -170,7 +163,7 @@ function ljpost_send(&$a,&$b) {
 
        $lj_username = get_pconfig($b['uid'],'ljpost','lj_username');
        $lj_password = get_pconfig($b['uid'],'ljpost','lj_password');
-       $lj_blog = '$lj_url/interface/xmlrpc';
+       $lj_blog = 'http://www.livejournal.com/interface/xmlrpc';
 
        if($lj_username && $lj_password && $lj_blog) {