$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 */
$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 . '/>';
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']));
}
$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) {