about summary refs log tree commit diff stats
path: root/update/plugin
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2008-08-05 15:57:07 +0000
committerKelly Rauchenberger <fefferburbia@gmail.com>2008-08-05 15:57:07 +0000
commit0abc3d2b8c1d41984c288bfed93b8ab35da47d5e (patch)
tree0557b42b42997a7a5b460bbffda244df93647901 /update/plugin
parented2551a6b1eda640da2ee87377d30c55bd11659d (diff)
downloadinstadisc-0abc3d2b8c1d41984c288bfed93b8ab35da47d5e.tar.gz
instadisc-0abc3d2b8c1d41984c288bfed93b8ab35da47d5e.tar.bz2
instadisc-0abc3d2b8c1d41984c288bfed93b8ab35da47d5e.zip
Update: Fixed author display in Wordpress plugin
Also fixed a typo in the admin panel and removed the postfix from the comments' subscription's title.
Fixes #20.
Diffstat (limited to 'update/plugin')
-rw-r--r--update/plugin/wordpress/trunk/instadisc/instadisc.php10
-rw-r--r--update/plugin/wordpress/trunk/instadisc/subscription.php1
2 files changed, 5 insertions, 6 deletions
diff --git a/update/plugin/wordpress/trunk/instadisc/instadisc.php b/update/plugin/wordpress/trunk/instadisc/instadisc.php index 2419e70..629987e 100644 --- a/update/plugin/wordpress/trunk/instadisc/instadisc.php +++ b/update/plugin/wordpress/trunk/instadisc/instadisc.php
@@ -41,10 +41,9 @@ function id_settings_page()
41<H3>General</H3> 41<H3>General</H3>
42<TABLE CLASS="form-table"> 42<TABLE CLASS="form-table">
43<TR VALIGN="top"> 43<TR VALIGN="top">
44 <TH SCOPE="row"><LABEL>Subscription Title Prefix</LABEL> 44 <TH SCOPE="row"><LABEL>Subscription Title</LABEL>
45 <TD> 45 <TD>
46 <INPUT TYPE="text" NAME="instaDisc_subscription_title" VALUE="<?php echo(get_option('instaDisc_subscription_title')); ?>" SIZE="40"> 46 <INPUT TYPE="text" NAME="instaDisc_subscription_title" VALUE="<?php echo(get_option('instaDisc_subscription_title')); ?>" SIZE="40">
47 <BR>Because you have two subscriptions (blog posts and comments), you can specify a prefix to go before both subscriptions' titles. So, if the prefix was "Four Island", the blog post's title would be "Four Island" and the comments' would be "Four Island Comments".
48 </TD> 47 </TD>
49</TR> 48</TR>
50</TABLE> 49</TABLE>
@@ -125,7 +124,7 @@ function id_settings_page()
125</TR> 124</TR>
126</TABLE> 125</TABLE>
127<INPUT TYPE="hidden" NAME="action" VALUE="update"> 126<INPUT TYPE="hidden" NAME="action" VALUE="update">
128<INPUT TYPE="hidden" NAME="page_options" VALUE="instaDisc_subscription_title,instadisc_blogPost_centralServer_activationKey,instaDisc_blogPost_centralServer,instaDisc_comment_centralServer_activationKey,instaDisc_comment_centralServer,instaDisc_blogPost_centralServer_username,instaDisc_blogPost_centralServer_password,instaDisc_comment_centralServer_username,instaDisc_comment_centralServer_passsword"> 127<INPUT TYPE="hidden" NAME="page_options" VALUE="instaDisc_subscription_title,instadisc_blogPost_centralServer_activationKey,instaDisc_blogPost_centralServer,instaDisc_comment_centralServer_activationKey,instaDisc_comment_centralServer,instaDisc_blogPost_centralServer_username,instaDisc_blogPost_centralServer_password,instaDisc_comment_centralServer_username,instaDisc_comment_centralServer_password">
129<P CLASS="submit"><INPUT TYPE="submit" NAME="Submit" VALUE="<?php _e('Save Changes') ?>"></P> 128<P CLASS="submit"><INPUT TYPE="submit" NAME="Submit" VALUE="<?php _e('Save Changes') ?>"></P>
130</FORM></DIV><?php 129</FORM></DIV><?php
131} 130}
@@ -138,7 +137,8 @@ function sendPost($id)
138{ 137{
139 $post = get_post($id); 138 $post = get_post($id);
140 $title = $post->post_title; 139 $title = $post->post_title;
141 $author = $post->post_author; 140 $author = get_userdata($post->post_author);
141 $authorName = $author->display_name;
142 $url = get_permalink($id); 142 $url = get_permalink($id);
143 143
144 $verID = rand(1,65536); 144 $verID = rand(1,65536);
@@ -149,7 +149,7 @@ function sendPost($id)
149 new xmlrpcval($verID, 'int'), 149 new xmlrpcval($verID, 'int'),
150 new xmlrpcval(get_option('siteurl') . '/', 'string'), 150 new xmlrpcval(get_option('siteurl') . '/', 'string'),
151 new xmlrpcval($title, 'string'), 151 new xmlrpcval($title, 'string'),
152 new xmlrpcval($author, 'string'), 152 new xmlrpcval($authorName, 'string'),
153 new xmlrpcval($url, 'string'), 153 new xmlrpcval($url, 'string'),
154 new xmlrpcval(array(), 'array'))); 154 new xmlrpcval(array(), 'array')));
155 $client->send($msg); 155 $client->send($msg);
diff --git a/update/plugin/wordpress/trunk/instadisc/subscription.php b/update/plugin/wordpress/trunk/instadisc/subscription.php index bdf51d9..d7ffa86 100644 --- a/update/plugin/wordpress/trunk/instadisc/subscription.php +++ b/update/plugin/wordpress/trunk/instadisc/subscription.php
@@ -11,7 +11,6 @@ if (isset($_GET['comment']))
11 11
12 echo('Title: '); 12 echo('Title: ');
13 echo(get_option('instaDisc_subscription_title')); 13 echo(get_option('instaDisc_subscription_title'));
14 echo(' Comments');
15 echo("\n"); 14 echo("\n");
16 15
17 echo('Category: blog-comment'); 16 echo('Category: blog-comment');