Post by aRMY83 on Dec 17, 2014 14:30:53 GMT -8
To place a "Reply" button left of the Quote button in Posts/PM's.
Post Reply Example:
Go to Admin > Structure > Layout Templates > Thread > Post List and find this: (line 17 or so)
and look for:
and place this:
to the left of it which will then look like this:
Message Reply Example:
Go to Admin > Structure > Layout Templates > Conversations > Message List and find this: (line 19 or so)
and look for:
and place this:
to the left of it which will then look like this:
If you decide you want to style your buttons with a different background and or text color then give them
a unique id for this purpose.
Examples:
Now create a CSS (example below) and then place it at the bottom of your Style Sheet:
/* Button for Post Reply - Message Reply */
.button.test { background-color: #hex color or transparent; color: #hex color;
Caution: Before making any modifications to any templates, do a Ctrl + A + C and then Ctrl + V and save to notepad. It's a good practice to get into when modifying any template.
Post Reply Example:
Go to Admin > Structure > Layout Templates > Thread > Post List and find this: (line 17 or so)
and look for:
$[post.quote_button]
and place this:
<a class="reply-button button" href="/post/new/" role="button">Reply</a>
to the left of it which will then look like this:
<div class="controls">
<a class="reply-button button" href="/post/new/" role="button">Reply</a>$[post.quote_button]
$[post.edit_button]
$[post.likes.button]
$[post.select_options]
</div>
<a class="reply-button button" href="/post/new/" role="button">Reply</a>$[post.quote_button]
$[post.edit_button]
$[post.likes.button]
$[post.select_options]
</div>
Message Reply Example:
Go to Admin > Structure > Layout Templates > Conversations > Message List and find this: (line 19 or so)
and look for:
$[message.quote_button]
and place this:
<a class="reply-button button" role="button" href="/message/new/">Reply</a>
to the left of it which will then look like this:
<div class="controls">
<a class="reply-button button" role="button" href="/message/new/">Reply</a>$[message.quote_button]
$[message.select_options]
</div>
<a class="reply-button button" role="button" href="/message/new/">Reply</a>$[message.quote_button]
$[message.select_options]
</div>
If you decide you want to style your buttons with a different background and or text color then give them
a unique id for this purpose.
Examples:
<a class="reply-button button test" href="/post/new/" role="button">Reply</a>
<a class="reply-button button test" role="button" href="/message/new/">Reply</a>
<a class="reply-button button test" role="button" href="/message/new/">Reply</a>
Now create a CSS (example below) and then place it at the bottom of your Style Sheet:
/* Button for Post Reply - Message Reply */
.button.test { background-color: #hex color or transparent; color: #hex color;
Caution: Before making any modifications to any templates, do a Ctrl + A + C and then Ctrl + V and save to notepad. It's a good practice to get into when modifying any template.