Hover over wherever your mood is displayed and click. These locations are described in the first post and ReadMe (which I guess no one reads anyway ).How can a user change the mood?
Which location are you looking for exactly? Inside threads, in the sidebar, member cards, or profiles?One more question. Is there a way to move the mood under the user title? With one template edit for the profile/thread view, I can't figure it out. Thanks.
Which location are you looking for exactly? Inside threads, in the sidebar, member cards, or profiles?
Thread view. I'd like to be able to place it under the user title there.Which location are you looking for exactly? Inside threads, in the sidebar, member cards, or profiles?
Edit the mood_display template. Replace the top line with:Is there a conditional I could put around the one in the postbit so it doesn't show if they haven't selected a mood?
<xen:if is="{$canViewMoods} && ({$visitor.user_id} != {$user.user_id} && {$user.mood_id} == 0)">
Firstly, you need to disable the template hook. Edit /library/XenMoods/Listener/TemplateHook.php, find (on line 22):Thread view. I'd like to be able to place it under the user title there.
new self($name, $contents, $params, $template);
//new self($name, $contents, $params, $template);
<div class="avatarHolder"><xen:avatar user="$user" size="m" itemprop="photo" /></div>
<xen:if is="@threadShowMood">
<xen:include template="mood_display" />
</xen:if>
<xen:if hascontent="true"><em class="userTitle" itemprop="title"><xen:contentcheck>{xen:helper userTitle, $user}</xen:contentcheck></em></xen:if>
<xen:if is="@threadShowMood">
<xen:include template="mood_display" />
</xen:if>
Edit the mood_display template. Replace the top line with:
HTML:<xen:if is="{$canViewMoods} && ({$visitor.user_id} != {$user.user_id} && {$user.mood_id} == 0)">
<xen:if is="{$canViewMoods} && ({$user.mood_id} || (!{$user.mood_id} && {$visitor.user_id} == {$user.user_id}))">
Whoops, didn't think that one through too well. Sorry.
Thumbs up! Would like to see it in the core...
Agreed... as members really lose control direct to the developer, who often only manage a small selection of mods vs. the entire XF software.I doubt, nor would ever like to see this added into the core product.
We use essential cookies to make this site work, and optional cookies to enhance your experience.