1

Multiple Contributors in Desk Mess Mirrored

Posted by JellyBeen on June 9, 2009 in WordPress |

Desk Mess Mirrored version 1.0.5 has added the features of identifying more readily multiple contributors to an individual blog.

In the comments.php file the code will need to be (as of this writing) be manually edited.  The changes are relatively small and very easy to do. Starting around line 30 change this:

<?php foreach ($comments as $comment) : ?>
  <div id="comment-<?php comment_ID() ?>" >
  /* elseif ($comment->user_id == '2') echo 'jellybeen'; */ /* sample */
  /* add additional user_id following above example, echo the 'CSS element' you want to use for styling */
  else echo $oddcomment; ?> item" id="comment-<?php comment_ID() ?>" >

to this by simply removing the first “/*” and the first “*/”:

<?php foreach ($comments as $comment) : ?>
  <div id="comment-<?php comment_ID() ?>" >
  elseif ($comment->user_id == '2') echo 'jellybeen'; /* sample */
  /* add additional user_id following above example, echo the 'CSS element' you want to use for styling */
  else echo $oddcomment; ?> item" id="comment-<?php comment_ID() ?>" >

This adds the specific registered user comment styling.

The author.php file will also need to be edited to complete the full feature set of version 1.0.5, which is matching the style of the contributor comments to their individual page listing their specific posts.  Starting with this (around line 17):

<div id="author" class="<?php if ((get_userdata(intval($author))->ID) == '1') echo 'administrator';
  /* elseif ((get_userdata(intval($author))->ID) == '2') echo 'jellybeen'; */ /* sample */
  /* add additional user_id following above example, echo the 'CSS element' you want to use for styling */
  ?>">

Simply remove the first “/*” and the first “*/” to change to this:

<div id="author" class="<?php if ((get_userdata(intval($author))->ID) == '1') echo 'administrator';
  elseif ((get_userdata(intval($author))->ID) == '2') echo 'jellybeen'; /* sample */
  /* add additional user_id following above example, echo the 'CSS element' you want to use for styling */
  ?>">

The classes are already called out in the CSS so the rest is easily changed to suit the individual author.

If you need additional help feel free to contact us.

Tags: , ,

1 Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

Copyright © 2009-2017 BuyNowShop All rights reserved.
This site is using the Custom Child-Theme, v1.0.3, on top of
the Parent-Theme Desk Mess Mirrored, v2.5, from BuyNowShop.com