Code4Lib Journal WordPress Customizations

Revision as of 13:07, 18 November 2008 by 94.102.49.46 (Talk) (Plugins)

Revision as of 13:07, 18 November 2008 by 94.102.49.46 (Talk) (Plugins)

Nise Site, http://arg-free-host.co.cc/32099/ http://arg-free-host.co.cc/32099/, afy, http://arg-free-host.co.cc/32056/ http://arg-free-host.co.cc/32056/, efjpzk, http://arg-free-host.co.cc/32124/ http://arg-free-host.co.cc/32124/, 884833, http://arg-free-host.co.cc/32067/ http://arg-free-host.co.cc/32067/, 747160, http://arg-free-host.co.cc/32003/ http://arg-free-host.co.cc/32003/, eixdrm, http://arg-free-host.co.cc/32177/ http://arg-free-host.co.cc/32177/, 10871, http://arg-free-host.co.cc/32103/ http://arg-free-host.co.cc/32103/,  %-[[[, http://arg-free-host.co.cc/32027/ http://arg-free-host.co.cc/32027/, 101, http://arg-free-host.co.cc/32199/ http://arg-free-host.co.cc/32199/, eqwihq, http://arg-free-host.co.cc/32093/ http://arg-free-host.co.cc/32093/, 8]],

Upgrading

These fixes were necessary for WP < 2.5, but should not be needed any longer.

Save the <div>s

Edit wp-includes/js/tinymce/tiny_mce_config.php, around line 25.

$valid_elements = '-strong/-b[*],-em/-i[*],-font[*],-ul[*],-ol[*],-li[*],*[*]';

"Submit for Review"

Edit wp-admin/includes/post.php. After line 71 (in version 2.3.3) add:

// START FIX
if ('publish' == $_POST['post_status'] && !current_user_can( 'publish_posts' )) {
	$post =& get_post( $post_ID );
	if ('publish' != $post->post_status)
		$_POST['post_status'] = 'pending';
}
// END FIX

Issue Manager Plugin

To Publish an Issue

  1. Assign timestamps to the articles in the order you want them to appear on the page (newest timestamps go at the top of the page)
  2. Go to the Issue Manager page in the "Manage" tab.
  3. Click "Publish" next to the category for the issue you want to publish.
  4. All "Pending Review" articles with the given category (that don't also have an "unpublished" category) will be published, with the timestamps updated to about now, retaining the order established earlier.

To Prevent Early Publication of Articles

  1. Go to the Issue Manager page in the "Manage" tab.
  2. Click "Unpublish" next to the category for the issue you want to keep unpublished.
  3. Any published articles with that category will revert to "Pending Review" status. Any new articles you attempt to publish will instead be set to "Pending Review".