This is the community forum. For a developer response use the Client Area.
Follow us on Facebook, Twitter and YouTube!

Admin Reply/Box
#1

Any customizations to admin reply? If you need me to help with anything, I'm free to help. Just contact me.

I'm giving you three guesses...
Reply
#2

I can't come up with a good enough style for the admin reply box.

Have you completed the interview?
Reply
#3

I'll get working on that right now.

I'm giving you three guesses...
Reply
#4

Okay thanks.

Have you completed the interview?
Reply
#5

Try this out and tell me what you think. I'm still working on it, but it's the general idea.
In "comments/includes/comments.php", replace the admin reply related stuff with
PHP Code:
<?php 
//Reply
if (!empty($reply)) {
$box .= "<div class='height_above_reply_text'></div>";
$box .= "<div class='admin_reply'>";
$box .= "<span class='reply_intro'>";
$box .= REPLY_INTRO;
$box .= "</span>";
$box .= " ";
$box .= "<div class='reply_text'>";
$box .= $reply;
$box .= "</div>";
$box .= "</div>";
}
And place it below the div with the class "hieght_below_comment_text".

In the stylesheet, replace the reply related stuff with
PHP Code:
<?php 
.admin_reply {
border: 1px solid #222;
margin: 0 4em 0;
padding: 8px;
background-color: #FFF;
}

.
reply_intro {
font-family: helvetica;
font-size: 0.8em;
font-weight: bold;
color: #006600;
}

.
reply_text {
font-family: helvetica;
font-size: 0.8em;
}

You might also want to pass the admin reply value through the nl2br() function in order to preserve line breaks. A cool feature[?] of the admin reply is that you can add html to it. However, it also makes adding smilies a little harder. No need for bbcode in admin reply Tongue In fact, you can even put forms in a reply!

I'm giving you three guesses...
Reply
#6

Okay we're talking about different things.

I meant that I can't come up with a good enough style for the admin boxes. That's why they currently use the same styling as the other boxes. Can you come up with a good style for the admin box?

Code:
.admin_comment_box_1 {
padding: 5px;
background-color: #FFF8DC;
border: 1px solid #828282;
overflow: auto;
}

.admin_comment_box_2 {
padding: 5px;
background-color: #FFF8DC;
border: 1px solid #828282;
overflow: auto;
}

Have you completed the interview?
Reply
#7

OH, right, haha. Oh well. The reply box also needed a facelift anyway. I'll work on the admin boxes now.

I'm giving you three guesses...
Reply
#8

Take a look at what I have so far. It's still very rough and messy, but it gives you the general idea. I made a couple of changes to the generate_comment() function, so you'll need to download the file. I added some divs for admin styling.

The css should be something like this:
Code:
.admin_comment_box_1 {
overflow: auto;
}

.admin_comment_box_1 .admin_box_header {
display: inline-block;
margin: 5px 5px 0 5px;
padding: 5px;
border-top: 2px outset #FFF8DC;
border-left: 2px outset #FFF8DC;
border-right: 2px outset #FFF8DC;
border-bottom: 1px outset #FFF8DC;
background-color: #FFF8DC;
width: auto;
}

.admin_comment_box_1 .admin_comment_area {
margin: 0 5px 5px 5px;
padding: 5px;
border-top: 2px outset #FFF8DC;
border-left: 3px outset #FFF8DC;
border-bottom: 3px outset #FFF8DC;
border-right: 3px outset #FFF8DC;
background-color: #FFF8DC;
}

.admin_comment_box_2 {
overflow: auto;
}

.admin_comment_box_2 .admin_box_header {
display: inline-block;
margin: 5px 5px 0 5px;
padding: 5px;
border-top: 2px outset #FFF8DC;
border-left: 2px outset #FFF8DC;
border-right: 2px outset #FFF8DC;
border-bottom: 1px outset #FFF8DC;
background-color: #FFF8DC;
width: auto;
}

.admin_comment_box_2 .admin_comment_area {
margin: 0 5px 5px 5px;
padding: 5px;
border-top: 2px outset #FFF8DC;
border-left: 3px outset #FFF8DC;
border-bottom: 3px outset #FFF8DC;
border-right: 3px outset #FFF8DC;
background-color: #FFF8DC;
}

It'll definitely need improving.


Attached Files
.php comments.php Size: 8.2 KB  Downloads: 20

I'm giving you three guesses...
Reply
#9

Thanks, I'll take a look as soon as I've finished the Multiple Admins feature. It's about 60% complete now.

Have you completed the interview?
Reply
#10

I think a green border looks quite good. It might be too subtle though. Not sure.

Code:
.admin_comment_box_1 {
padding: 5px;
background-color: #FFF8DC;
border: 1px solid #228B22;
overflow: auto;
}

.admin_comment_box_2 {
padding: 5px;
background-color: #FFF8DC;
border: 1px solid #228B22;
overflow: auto;
}

Have you completed the interview?
Reply


Possibly Related Threads…
Thread / Author Replies Views Last Post
Last Post by Steven
25-Aug-2010, 05:35 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)