12-Dec-2011, 03:24 PM
I'm currently trying to customize the appearance, and I stumbled upon trouble when I was trying to edit the reply area. Basically I want to have the reply area a custom background and a different padding than the normal comment box.
I was trying to do this with the .reply_indent, but this div lies underneath the comment box div. What I would like to have is a custom box for replies, like the admin_comment_box_1, however I do not have any knowledge of php, so if anyone could help it would be great.
I think it should be added in the following area:
I was trying to do this with the .reply_indent, but this div lies underneath the comment box div. What I would like to have is a custom box for replies, like the admin_comment_box_1, however I do not have any knowledge of php, so if anyone could help it would be great.
I think it should be added in the following area:
PHP Code:
<?php
for ($i = 1; $i <= cmtx_get_reply_depth($id); $i++) {
if ($settings->reply_arrow && $i == cmtx_get_reply_depth($id)) {
$box .= "<div class='reply_arrow'>"; //add the reply arrow
}
$box .= '<div class="reply_indent">'; //indent the reply
}
if ($alternate == 1) { //if it's the first box
if ($is_admin) {
$box .= "<div class='admin_comment_box_1'>"; //admin box
} else {
$box .= "<div class='comment_box_1'>"; //normal box
}
} else { //if it's the second box
if ($is_admin) {
$box .= "<div class='admin_comment_box_2'>"; //admin box
} else {
$box .= "<div class='comment_box_2'>"; //normal box
}
}
So I was trying to make it look like this, but as I said, I do not have any php knowledge, and I don't know how to trigger the reply and the else (statement it is called i believe?):
PHP Code:
<?php
if ($alternate == 1) { //if it's the first box
if ($is_admin) {
$box .= "<div class='admin_comment_box_1'>"; //admin box
} else {
if ($REPLY) {
$box .= "<div class='reply_box_1'>"; //this would be the box im looking for :)
} else {
$box .= "<div class='comment_box_1'>"; //normal box
}