Media Gallery XenMoods-Mod Tâm trạng cho XenForo


XenMoods is an add-on for XenForo that allows users to set their current mood.

1. To begin, upload all the files in the upload/ directory into your XenForo base directory (the one with library/ and styles/).
2. Next, go into your Admin Control Panel, and clickInstall Add-on.
3. Click the + Install Add-on button.
4. Select addon_xenmoods.xml as the file to upload.
5. Click Install Add-on to confirm the installation of XenMoods.
6. Perform the template edits as below.

Template Edits
The following template edits must be made to enable XenMoods to work correctly.

* Template: sidebar_visitor_panel
<dl class="pairsInline stats">
    <dt>{xen:phrase messages}:</dt> <dd>{xen:number $visitor.message_count}</dd>
    <dt>{xen:phrase likes}:</dt> <dd>{xen:number $visitor.like_count}</dd>
    <dt>{xen:phrase points}:</dt> <dd>{xen:number $visitor.trophy_points}</dd>
Add Below:
<xen:if is="@sidebarShowMood">
    <xen:include template="mood_display">
        <xen:map from="$visitor" to="$user" />
* Template: navigation_visitor_tab
<xen:if hascontent="true"><div  class="muted"><xen:contentcheck>{xen:helper usertitle,  $visitor}</xen:contentcheck></div></xen:if>
Add Below:
<xen:if is="@headerShowMood"> 	<xen:include template="mood_display"> 		<xen:map from="$visitor" to="$user" /> 	</xen:include> </xen:if>
* Template: message_user_info
<div class="avatarHolder"><xen:avatar user="$user" size="m" itemprop="photo" /></div>
Add Before </div>:
<xen:if is="({$isQuickReply} && @editorShowMood) || (!{$isQuickReply} && @messageShowMood)"> 	<xen:include template="mood_display" /> </xen:if>
* Template: member_card
<h3 class="username"><a href="{xen:link members, $user}">{$user.username}</a></h3>
Add Below:
<xen:if is="@memberCardShowMood">
    <xen:include template="mood_display" />
* Template: member_view
<h1 itemprop="name">{xen:helper richUserName, $user}</h1>
<xen:if is="[MENTION=4276]pro[/MENTION]fileShowMood">
    <xen:include template="mood_display" />
Display Locations
Moods are currently displayed in six locations which can be turned on or off through Style Properties (property location in parenthesis):
* Sidebar Visitor Panel (Options, Show User Mood on Sidebar)
* Navigation Visitor Tab (Header and Navigation, Show User Mood)
* Message User Info on Posts (Message User Info, Show Author Mood)
* Under Avatar on Quick Reply (Options, Show User Mood on QR Editor)
* Member Card (Options, Show User Mood on Member Card)
* Member Profile (Options, Show User Mood on Profile)

Adding, Editing and Deleting Moods
The manager is located at admin.php?moods/. The link can be found in the left navigation bar when on the Admin Control Panel homepage.

The interface should be intuitive enough to work out. Enter image URLs as relative, e.g. styles/default/xenmoods/happy.png.

NB. You must have the Admin Permission Can Manage Moods ticked.

User Permissions

You can set permissions for specific user groups as to whether they can see and have moods. The two permissions are Can View Moods and Can Have Mood.

If, for any reason, you would like to uninstall XenMoods, the following steps are necessary:
1. Undo the template edits that were performed on installation.
2. Go to your Admin Control Panel homepage, and click List Add-ons or Manage Add-ons.
3. Activate the Controls drop-down for XenMoods, and click Uninstall.
4. Remove all the files from XenForo (library/XenMoods/ and styles/default/xenmoods/).

Change Log

Version 1.1.1 (22 Dec 2010)
* Fix install bug if styles directory doesn't exist.
* Fix "Undefined offset" error on mood changes.
* Fix mood chooser hanging if not in overlay.

Version 1.1.0 (14 Dec 2010)
* Change moods with AJAX, fancy animations included.
* Publish mood changes into the news feed.
* Revise profile placement.
* Fix profile position margin issue.
* Fix tooltip alignment issue in certain situations.
* Various code improvements.

Version 1.0.4 (10 Dec 2010)
* XenForo 1.0.0 Beta 4 compatibility.
* Consolidate style properties.
* "Add New Mood" button added at bottom of moods list.
* Move thread view edits into template hooks.
* Updated other template edits.
* Various code improvements.

Version 1.0.3 (16 Oct 2010)
* Alphabetically sorted mood chooser.
* User profile mood positioning fix (redo member_view template edit).
* Fix mood chooser for differing mood image heights.
* Some code improvements.

Version 1.0.2 (15 Oct 2010)
* Centering of mood images in avatar holder.
* Add "No Mood" image (as default).
* Some code improvements.

Version 1.0.1 (10 Oct 2010)
* Add Shelley's moods.
* Scrolling Mood Chooser to manage overflow.
* Various code improvements.

Version 1.0.0 (9 Oct 2010)
* Initial release.




[DOWN]v1.1.0 :
You do not have permission to view link Đăng nhập hoặc Đăng ký.

v1.1.1 :
You do not have permission to view link Đăng nhập hoặc Đăng ký.


Update Version 1.1.1 (22 Dec 2010)

Facebook Comment

Tài nguyên mới

Top Bottom