XF 2.2 Swap positions of "New posts" and "Post thread" buttons? And... phrase only

beerForo

Well-known member
1. I would like to swap the position of those buttons is that possible in extra.less?

2. I would like to change the phrase of the "New posts" button but not have it change elsewhere. I notice it changes at the top of the new posts list. Can I just change the button?

Thanks!
 

beerForo

Well-known member
Sooooo.... I changed New Posts button to Unread Posts. This is because my users are used to this language. New is all of them in new to old order, unread = unread.

The problem now is, logged out, the button says Unread Posts for guests. How can I have it say the old New Posts when logged out? Thanks!
 

bzcomputers

Well-known member
Sooooo.... I changed New Posts button to Unread Posts. This is because my users are used to this language. New is all of them in new to old order, unread = unread.

The problem now is, logged out, the button says Unread Posts for guests. How can I have it say the old New Posts when logged out? Thanks!

You can use a conditional...
PHP:
<xf:if is="$xf.visitor.user_id">
  Unread Posts
<xf:else />
  {{ phrase('new_posts') }}
</xf:if>
 
Top