Post by aRMY83 on Dec 10, 2014 12:23:59 GMT -8
To place a Return Home Page Button in Posts/PM's left of the Quote button: (for demo purposes, i use RTN Home = Return Home) You can name it to whatever you want.
Posts Area:
Go to Admin > Structure > Layout Templates > Thread > Post List (line 20 or so)
and look for:
and place this:
to the left of it which will then look like this:
Example: (Post List)
Post Image Results:
PM Post Area:
Go to Admin > Structure > Layout Templates > Conversations Page > Message List (line 18 or so)
and look for:
and place this:
to the left of it which will then look like this:
Example: (Message List)
Message Image Results:
If you decide that you want to place the button to the right of those template buttons above, just reverse the position to the right.
Example: (Post List)
Example: (Message List)
Note: you can change your font colors to reflect the colors of your theme buttons.
EDIT: 11/12/2014 - If you are having transition color issues when hovering over the RTN Home button, then replace this:
with this:
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.
Posts Area:
Go to Admin > Structure > Layout Templates > Thread > Post List (line 20 or so)
and look for:
$[post.quote_button]
and place this:
<a class="button" href="/" style="background-color: #2e2e2e; color: #000000;">RTN Home</a>
to the left of it which will then look like this:
<a class="button" href="/" style="background-color: #2e2e2e; color: #000000;">RTN Home</a>$[post.quote_button]
Example: (Post List)
<div class="controls">
<a class="button" href="/" style="background-color: #2e2e2e; color: 000000;">RTN Home</a>$[post.quote_button]
$[post.edit_button]
$[post.likes.button]
$[post.select_options]
</div>
<a class="button" href="/" style="background-color: #2e2e2e; color: 000000;">RTN Home</a>$[post.quote_button]
$[post.edit_button]
$[post.likes.button]
$[post.select_options]
</div>
Post Image Results:
PM Post Area:
Go to Admin > Structure > Layout Templates > Conversations Page > Message List (line 18 or so)
and look for:
$[message.quote_button]
and place this:
<a class="button" href="/" style="background-color: #2e2e2e; color: #000000;">RTN Home</a>
to the left of it which will then look like this:
<a class="button" href="/" style="background-color: #2e2e2e; color: #000000;">RTN Home</a>$[message.quote_button]
Example: (Message List)
<div class="controls">
<a class="button" href="/" style="background-color: #2e2e2e; color: 000000;">RTN Home</a>$[message.quote_button]
$[message.select_options]
</div>
<a class="button" href="/" style="background-color: #2e2e2e; color: 000000;">RTN Home</a>$[message.quote_button]
$[message.select_options]
</div>
Message Image Results:
If you decide that you want to place the button to the right of those template buttons above, just reverse the position to the right.
Example: (Post List)
$[post.quote_button]<a class="button" href="/" style="background-color: #2e2e2e; color: #000000;">RTN Home</a>
Example: (Message List)
$[message.quote_button]<a class="button" href="/" style="background-color: #2e2e2e; color: #000000;">RTN Home</a>
Note: you can change your font colors to reflect the colors of your theme buttons.
EDIT: 11/12/2014 - If you are having transition color issues when hovering over the RTN Home button, then replace this:
style="background-color: #2e2e2e;
with this:
style="background-color: #transparent;
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.