barry91
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Comment ThemesWell, the code i posted wasn’t the actual code, because i’m not supposed to post that (it’s spreadshirt’s property, not mine). I just posted how I did it, without using specific examples.
Do you want the ability to have separate comments looks for the admin and other users? Or do you just want the word bubbles?
Forum: Fixing WordPress
In reply to: Comment ThemesHello, I’m the designer of the ubershop site…um yeah the guy who forgot to put the wordpress link somewhere on the site. Believe me, it wasn’t intentional. My bad.
I’m talking it over with bosses to put it somewhere on the site.
The comments are nothing special, just a css trick. And some PHP.
This is what the part in comments.php looks like. (Please not that this is only that part, and not the full comments.css)
<div class="<?php if ($comment->user_id == "1") echo 'comment-admin';
else if ($comment->user_id == "1") echo 'comment-admin';
else if ($comment->user_id == "45") echo 'comment-250';
else if ($comment->user_id == "20") echo 'comment-employee';
else echo 'comment'; ?>" id="comment-<?php comment_ID() ?>">
<?php comment_text() ?>
<p class="comment-tagline"><strong>
<?php comment_author_link() ?>
<?php if ($comment->comment_approved == '0') : ?>
<em>Your comment is awaiting moderation.</em>
<?php endif; ?> </strong><span class="comment-date">on <?php comment_date('F jS, Y') ?> at <?php comment_time() ?></span>
</div>
And then the css is like this
.comment {global css stuff}
.comment p (more global)
.comment-admin {specific to admin users)
.comment-250 {specific to 250 club members}
etc