Resource icon

XenMoods 1.1.3

No permission to download

MOZ

Well-known member
Hi, awesome plugin, but could you guide me on how to include a preference so that users have an option of whether they want to see moods or not. This is different from what was there in the guide, here the user can choose if he wants to see the moods of others or not.

Thank you.
Can someone guide me to adding a preference for this, and then how to check true/false for that property and show the Xenmood accordingly.
 

Shelley

Well-known member
Anything, anyone?
It's not an option and only dismounted can say whether he wants to introduce this into the xenmoods add-on. Alternatively, you could post in the add-on requests and request for a developer to possibly expand and implement the option you are looking for as part of a custom job. In the meantime, the option is not available in the xenmoods and it's really down to Dismounted whether he wants or feels it's beneficial to include.
 

Shelley

Well-known member
Hi Shelley,

I am wondering if the "mood icons" can be translated into another language (german) ?
Is the text variable to change or is it fixed for each icon (build into the graphic)?

One other question, please:
do you have any Zodiac-images available which would fit to the default XF-design and would work with this Add-on?
http://xenforo.com/community/resources/add-zodiac-sign-to-the-message-userinfo-bit.79/

Many thanks!
- The moods v2 have already been sent to somebody for german translation, the moods v1 have already been translated to german though I don't have the file at hand.
- The text is embedded onto the icon.

- I have Zodiac images on my HD but I have a busy schedule and a ever increasing workload so unfortunately I won't be able to make these available, sorry.
 

MOZ

Well-known member
Hi, awesome plugin, but could you guide me on how to include a preference so that users have an option of whether they want to see moods or not. This is different from what was there in the guide, here the user can choose if he wants to see the moods of others or not.

Thank you.
I have half a solution for this, I can post it here if others would want to do the same changes themselves. For us, now users have an option to set moods on/off. If on, moods are shown as normal, if off they are shown only on the profile.
 

MOZ

Well-known member
Here is my solution. After doing this the can choose in his preferences if he wishes to see the moods or not. If they choose no, then they will no see any moods of anyuser as well as thier own, if they choose yes, then they will see the moods as normal. By default they will show.

1. Create a Custom User Field, Users --> Custom User Fields --> Create New Field:
Basic Information:
-Field ID: showmoods
-Title: Show Moods?
-Display Location: Preference
-Field Types: Radio Buttons

Options for Choice Field:
-Possible Choices: "yes" & "Yes" and "no" and "No"

General Options:
-Only user editable ticked.


2. In the "mood_display" template I made the following change:
Replace the complete template with:
<xen:if is="{$canViewMoods} && {$visitor.customFields.showmoods} != 'no'">
<xen:require css="mood_display.css" />

<xen:set var="$moodImageUrl">{xen:if "{$user.mood_id}", {$moods.{$user.mood_id}.image_url}, {$moods.{$defaultMoodId}.image_url}}</xen:set>

<div class="userMood">
<xen:if is="{$visitor.user_id} == {$user.user_id} && {$canHaveMood}">
<a href="{xen:link moods/mood-chooser, '', 'redirect={$requestPaths.requestUri}'}" class="OverlayTrigger Tooltip" title="{xen:phrase mood_chooser}" data-cacheOverlay="false" data-offsetY="-8">
<img src="{$moodImageUrl}" alt="{$moods.{$user.mood_id}.title}" />
</a>
<xen:else />
<img src="{$moodImageUrl}" alt="{$moods.{$user.mood_id}.title}" />
</xen:if>
</div>
</xen:if>

The red part shows the change that has been made.
 

Jeff Fuqua

Well-known member
Hey all,

I sort of took this add-on in another direction. My members can choose the jersey of their favorite player. But it's pretty big so I want to move the mood down under the stats. I assume it's an easy thing to do but can't find the right template.

Here's what I have now:

example.jpg

Any suggestions appreciated.
 

Shelley

Well-known member
Hey all,

I sort of took this add-on in another direction. My members can choose the jersey of their favorite player. But it's pretty big so I want to move the mood down under the stats. I assume it's an easy thing to do but can't find the right template.

Here's what I have now:

View attachment 31726

Any suggestions appreciated.
You'll have to make a file edit to disable the hook then make the template changes. http://xenforo.com/community/threads/xenmoods.26688/page-21#post-352776
 

Sheldon

Well-known member
Hey all,

I sort of took this add-on in another direction. My members can choose the jersey of their favorite player. But it's pretty big so I want to move the mood down under the stats. I assume it's an easy thing to do but can't find the right template.

Here's what I have now:

View attachment 31726

Any suggestions appreciated.
Go to


Make sure the "Thread View" is unchecked.

Go to template
message_user_info

Find:
Code:
</xen:if>
 
    <span class="arrow"><span></span></span>
</div>
</div>
Replace:
Code:
</xen:if>
 
    <span class="arrow"><span></span></span>
<xen:include template="mood_display" />
</div>
</div>
 

erich37

Well-known member
I have 4 questions please:

1)
how do I install this Add-on on my server, meaning: which files do I put into which folder on my server?
Within the "upload"-folder, there are 3 files: "js" + "library" + "styles". Into which folder at my server do I move each of those files?

2)
Do I need to do any template-edits?

3)
How do I set a specific mood as being "default"? I do not want to have the "no-mood"-image to be the default image.

4)
which are the language-phrases which are used for this add-on, in order to translate the wording?


Appreciate your help!
Many thanks!
 

MOZ

Well-known member
1. Just copy the folder to the root of your xenforo, ie community folder (most likely)
2. No, not for the default funtionality
3. There is an option in the addon
 

Shelley

Well-known member
I have 4 questions please:

1)
how do I install this Add-on on my server, meaning: which files do I put into which folder on my server?
Within the "upload"-folder, there are 3 files: "js" + "library" + "styles". Into which folder at my server do I move each of those files?

2)
Do I need to do any template-edits?

3)
How do I set a specific mood as being "default"? I do not want to have the "no-mood"-image to be the default image.

4)
which are the language-phrases which are used for this add-on, in order to translate the wording?


Appreciate your help!
Many thanks!
4) venture into Admincp >> Appearance >> phrases in the admin and search "mood" and adjust accordingly.
 

jauburn

Well-known member
These do not display well against a black theme. The edges of the graphics look sloppy. Is there a fix for this? Thanks.
 

Cal

Well-known member
Go to


Make sure the "Thread View" is unchecked.

Go to template
message_user_info

Find:
Code:
</xen:if>
 
    <span class="arrow"><span></span></span>
</div>
</div>
Replace:
Code:
</xen:if>
 
    <span class="arrow"><span></span></span>
<xen:include template="mood_display" />
</div>
</div>

I'm trying to do the same thing he is and having issues. I can get the image to the bottom of the stats, but the remaining issue is the original one doesn't go away. I can't figure out how to get rid of the first one! Anyone have any idea??

See I need to kill the one under the avatar.

09.png
 
Top