Open ID edit one page on Wordpress

Published in

* Install OpenID plugin * Active OpenID plugin * In the open ID settings change the user to be Subscriber, have all other options off we don't care about people needing a password to comment here. * Set up wordpress install to accept new accounts.Settings->membership->anyone can register * Install Role Scoper http://agapetry.net/ * Activate Role Scoper * Install Adminimise * Activate Adminimise * In the Adminimise options deactivate everything in the write options for the Page. Create a page that you want people to edit. Before you publish scroll down to the Editors section from Role Scoper and set it on for Subscriber. Go to the template and add some code to add the open ID for that page.
<?php 
if ((get_the_title() == "Schedule" && !$user_ID)) { //
$editLink="wp-admin/page.php?action=edit&post=".get_the_ID();
print "<form name=\"loginform\" id=\"loginform\" action=\"/wp-login.php\" method=\"post\">";
print "<input type=\"hidden\" name=\"redirect_to\" value=\"".$editLink."\">";
openid_wp_login_form();
print "<input id=\"wp-submit\" type=\"submit\" tabindex=\"100\" value=\"Log In\" name=\"wp-submit\"/>";
print "</form>";
}
?>

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.