• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.2 How to change the place of it?

MattW

Well-known member
#2
You should be able to just move the div containing the mood class "userMood" to below the <!-- slot: message_user_info_text --> section.
 

MattW

Well-known member
#4
That's because it's inserted via this template: mood_display_member_view

It then has a templatehook listener which injects the code after the hook it's looking for: message_user_info_avatar

PHP:
                        case 'message_user_info_avatar':
                                self::_addMoodDisplay(
                                        $template,
                                        '<!-- slot: message_user_info_avatar -->',
                                        $contents,
                                        $params['user'],
                                        'threadShowMood',
                                        FALSE
                                );
                                break;
What you probably want to do is replace message_user_info_avatar with message_user_info_text as that is the next template hook down.
 
#5
That should be in message_user_info template? Because i still can't find it; i tried to find message_user_info_avatar template and it doesnt exist. :( (But i found mood_display_member_view template; and the code that you gave to me isn't there.)

Thank you for your help :(
 

MattW

Well-known member
#6
No, that code is in the add-on. message_user_info is the template where it's own template is being injected in using the hook position.

library/XenMoods/Listener/TemplateHook.php is where the PHP code is that you need to look at editing.