XF 2.2 Change order under avatar

MapleOne

Well-known member
Screenshot (7).png


Left side posts & likes (I changed the names)

Is there a way to move posts & likes to the bottom, under the website?


----------------------------------------------------------------------------------

Screenshot (8).png

Also...

Also...

I shut off all reactions because I only use like and 1 like is one point.
When someone likes a post the Like icon goes bold.

Instead of having the word like bold I would prefer it to change to unlike.
So basically it would say Like until the poster clicks like and then it would say Unlike if the poster changes their mind.

I know you can remove your like by clicking it but it would be like some of my other forums if it said Unlike or Remove Like.
 
Is there a way to move posts & likes to the bottom, under the website?
This can be done by modifying the message_macros template.

This block of code:

HTML:
<xf:if is="$extras.message_count">
   <dl class="pairs pairs--justified">
      <dt>{{ phrase('messages') }}</dt>
      <dd>{$user.message_count|number}</dd>
   </dl>
</xf:if>
<xf:if is="$extras.solutions AND $user.question_solution_count">
   <dl class="pairs pairs--justified">
      <dt>{{ phrase('solutions') }}</dt>
      <dd>{$user.question_solution_count|number}</dd>
   </dl>
</xf:if>
<xf:if is="$extras.reaction_score">
   <dl class="pairs pairs--justified">
      <dt>{{ phrase('reaction_score') }}</dt>
      <dd>{$user.reaction_score|number}</dd>
   </dl>
</xf:if>

Needs to be moved down to below:

HTML:
<xf:if is="$extras.website && $user.Profile.website">
   <dl class="pairs pairs--justified">
      <dt>{{ phrase('website') }}</dt>
      <dd><a href="{$user.Profile.website}" rel="nofollow" target="_blank">{$user.Profile.website|url('host', phrase('visit_site'))}</a></dd>
   </dl>
</xf:if>

Instead of having the word like bold I would prefer it to change to unlike.
So basically it would say Like until the poster clicks like and then it would say Unlike if the poster changes their mind.
I've just had a look at the code and there's not actually a clear way to workaround this. If it was something that needed to be done it would have to be done with custom development and an add-on. However, on balance, I'd probably say you're fine to leave it as it is. It's a fairly common UI principle seen across various social media, including nearly exactly the same thing in Facebook.
 
Thank you Chris

1. I will definitely take your advice for the LIKE response.

2. I am on cloud and one of the decisions I made moving forward is I will no longer modify code. That ultimately gets in the way for upgrades.

So I notice that when the location field is populated it does appear on the card that is clicked when the member avatar is clicked so I will probably revert to that. However the member website is not displayed, is there a way to move it or other fields into the card without code modifications?
 
Back
Top Bottom