mood plugin for mybb mybb1.6.11

Cleopatra

Addicted
Joined
Sep 23, 2013
Messages
971
Reaction score
0
FP$
1,697
Hello everyone
I want to install a mood plugin like the one you have here for mybb forum
I tried using
My mood
It install correctly and I can choose the mood I want but it doesn't appear on the posts or the profile

I have tried mood manger
But when I tried to activate it I get squl error even I installed it correctly

I am really confused and can't find the solution
I have a mybb1.6.11 forum
Any help
 
If you can't see the mood in the postbit then it sounds like the code hasn't been added to the templates.

Please share the postbit and postbit_classic template here.
 
Sure
Postbit


{$ignore_bit}
<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="{$post_extra_style} {$post_visibility}" id="post_{$post['pid']}">
<tbody>
<tr>
<td class="tcat">
<div class="float_left smalltext">
{$post['postdate']}, {$post['posttime']} <span id="edited_by_{$post['pid']}">{$post['editedmsg']}</span>
</div>
{$post['posturl']}
</td>
</tr>

<tr>
<td class="trow1 {$unapproved_shade}">
<table cellspacing="0" cellpadding="0" border="0" style="width: 100%;">
<tr>
<td class="post_avatar" width="100" style="{$post['avatar_padding']}">
{$post['useravatar']}<br />
</td>
<td class="post_author">
<strong><span class="largetext">{$post['profilelink']}</span></strong> {$post['onlinestatus']}<br />
<span class="smalltext">
{$post['usertitle']}<br />
{$post['userstars']}
{$post['groupimage']}
</span>
</td>
<td class="smalltext post_author_info" width="165">
{$post['user_details']}<!-- postbit_achivements -->{$post['achivementspostbit']}<!-- /postbit_achivements -->
</td>
</tr>
</table>
</td>
</tr>

<tr>
<td class="trow2 post_content {$unapproved_shade}">
<span class="smalltext"><strong>{$post['icon']}{$post['subject']} {$post['subject_extra']}</strong></span>

<div class="post_body" id="pid_{$post['pid']}">
{$post['message']}
</div>
{$post['attachments']}
{$post['signature']}

<div class="post_meta" id="post_meta_{$post['pid']}">
{$post['iplogged']}
</div>
</td>
</tr>

<tr>
<td class="trow1 post_buttons {$unapproved_shade}">
<div class="author_buttons float_left">
{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}
</div>
<div class="post_management_buttons float_right">{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quote']}{$post['thanks']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}
</div>
</td>
</tr>{$post['thxdsp_inline']}
</tbody>
</table>{$post['thxdsp_outline']}

-- 29 Dec 2013, 15:10 --

Postbit classic



{$ignore_bit}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="{$post_extra_style} {$post_visibility}" id="post_{$post['pid']}">
<tr>
<td class="{$altbg}" width="15%" valign="top" style="white-space: nowrap; text-align: center;"><a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<strong><span class="largetext">{$post['profilelink']}</span></strong> <br />
<span class="smalltext">
{$post['usertitle']}<br />
{$post['userstars']}<br />
{$post['useravatar']}<br />
{$post['groupimage']}<br />
{$post['user_details']}<!-- postbit_achivements -->{$post['achivementspostbit']}<!-- /postbit_achivements --><br />
</span>
</td>
<td class="{$altbg}" valign="top">
<table width="100%">
<tr><td>{$post['posturl']}<span class="smalltext"><strong>{$post['icon']}{$post['subject']} {$post['subject_extra']}</strong></span>
<br />
<div id="pid_{$post['pid']}" class="post_body">
{$post['message']}
</div>
{$post['attachments']}
{$post['signature']}
<div style="text-align: right; vertical-align: bottom;" id="post_meta_{$post['pid']}">
<div id="edited_by_{$post['pid']}">{$post['editedmsg']}</div>
{$post['iplogged']}
</div>
</td></tr>
</table>
</td>
</tr>
<tr>
<td class="{$altbg}" style="white-space: nowrap; text-align: center; vertical-align: middle;"><span class="smalltext">{$post['postdate']} {$post['posttime']}</span></td>
<td class="{$altbg}" style="vertical-align: middle;">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr valign="bottom">
<td align="left" ><span class="smalltext">{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}</span></td>
<td align="right">{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quote']}{$post['thanks']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}</td>
</tr>
</table>
</td>
</tr>{$post['thxdsp_inline']}
</table>{$post['thxdsp_outline']}

-- 29 Dec 2013, 15:17 --





<br /><br />-- 29 Dec 2013, 15:18 --<br /><br />As u can see the mood is active and working
But doesn't appear on my postbit nor profile
U can check by urself
Www.thegame-zone.com
 
Please add the following to both the postbit and postbit_classic templates:

Code:
<span class="smalltext">{$lang->mood_mood}: {$post['usermood']} <br /></span>

Below:
Code:
{$post['user_details']}

Let me know if it works. If it doesn't, I can take a look and fix it for you.
 
Thanks
But where exactly I add them on postbit and postbit classic
U mean after this on postbit
{$post['user_details']}<!--

And after this on postbit classic
{$post['user_details']}<!-- postbit_achivements -->{$post['achivementspostbit']}<!-- /postbit_achivements --><br />
Please tell me exactly

-- 29 Dec 2013, 20:44 --

Also I saw on some FAQS
That I have to add that too.?
{$post['usermood']}

But I didn't know where exactly to add it

Please I appreciate your help
 
Add the following to both the postbit and postbit_classic templates:

Code:
<span class="smalltext">{$lang->mood_mood}: {$post['usermood']} <br /></span>

Add the above code under:
Code:
{$post['user_details']}
 
I understand..
Before <!--

-- 29 Dec 2013, 23:31 --

{$ignore_bit}
<a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="{$post_extra_style} {$post_visibility}" id="post_{$post['pid']}">
<tbody>
<tr>
<td class="tcat">
<div class="float_left smalltext">
{$post['postdate']}, {$post['posttime']} <span id="edited_by_{$post['pid']}">{$post['editedmsg']}</span>
</div>
{$post['posturl']}
</td>
</tr>

<tr>
<td class="trow1 {$unapproved_shade}">
<table cellspacing="0" cellpadding="0" border="0" style="width: 100%;">
<tr>
<td class="post_avatar" width="100" style="{$post['avatar_padding']}">
{$post['useravatar']}<br />
</td>
<td class="post_author">
<strong><span class="largetext">{$post['profilelink']}</span></strong> {$post['onlinestatus']}<br />
<span class="smalltext">
{$post['usertitle']}<br />
{$post['userstars']}
{$post['groupimage']}
</span>
</td>
<td class="smalltext post_author_info" width="165">
{$post['user_details']}
<span class="smalltext">{$lang->mood_mood}: {$post['usermood']} <br /></span>
<!--
postbit_achivements -->{$post['achivementspostbit']}<!-- /postbit_achivements -->
</td>
</tr>
</table>
</td>
</tr>

<tr>
<td class="trow2 post_content {$unapproved_shade}">
<span class="smalltext"><strong>{$post['icon']}{$post['subject']} {$post['subject_extra']}</strong></span>

<div class="post_body" id="pid_{$post['pid']}">
{$post['message']}
</div>
{$post['attachments']}
{$post['signature']}

<div class="post_meta" id="post_meta_{$post['pid']}">
{$post['iplogged']}
</div>
</td>
</tr>

<tr>
<td class="trow1 post_buttons {$unapproved_shade}">
<div class="author_buttons float_left">
{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}
</div>
<div class="post_management_buttons float_right">{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quote']}{$post['thanks']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}
</div>
</td>
</tr>{$post['thxdsp_inline']}
</tbody>
</table>{$post['thxdsp_outline']}




..................

{$ignore_bit}
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder" style="{$post_extra_style} {$post_visibility}" id="post_{$post['pid']}">
<tr>
<td class="{$altbg}" width="15%" valign="top" style="white-space: nowrap; text-align: center;"><a name="pid{$post['pid']}" id="pid{$post['pid']}"></a>
<strong><span class="largetext">{$post['profilelink']}</span></strong> <br />
<span class="smalltext">
{$post['usertitle']}<br />
{$post['userstars']}<br />
{$post['useravatar']}<br />
{$post['groupimage']}<br />
{$post['user_details']}
<span class="smalltext">{$lang->mood_mood}: {$post['usermood']} <br /></span>
<!-- postbit_achivements -->{$post['achivementspostbit']}<!-- /postbit_achivements --><br />
</span>
</td>
<td class="{$altbg}" valign="top">
<table width="100%">
<tr><td>{$post['posturl']}<span class="smalltext"><strong>{$post['icon']}{$post['subject']} {$post['subject_extra']}</strong></span>
<br />
<div id="pid_{$post['pid']}" class="post_body">
{$post['message']}
</div>
{$post['attachments']}
{$post['signature']}
<div style="text-align: right; vertical-align: bottom;" id="post_meta_{$post['pid']}">
<div id="edited_by_{$post['pid']}">{$post['editedmsg']}</div>
{$post['iplogged']}
</div>
</td></tr>
</table>
</td>
</tr>
<tr>
<td class="{$altbg}" style="white-space: nowrap; text-align: center; vertical-align: middle;"><span class="smalltext">{$post['postdate']} {$post['posttime']}</span></td>
<td class="{$altbg}" style="vertical-align: middle;">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr valign="bottom">
<td align="left" ><span class="smalltext">{$post['button_email']}{$post['button_pm']}{$post['button_www']}{$post['button_find']}{$post['button_rep']}</span></td>
<td align="right">{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quote']}{$post['thanks']}{$post['button_multiquote']}{$post['button_report']}{$post['button_warn']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}</td>
</tr>
</table>
</td>
</tr>{$post['thxdsp_inline']}
</table>{$post['thxdsp_outline']}<br /><br />-- 29 Dec 2013, 23:33 --<br /><br />
This is what I got when I add it the way above
 
Try this code instead:

Code:
<span class="smalltext">{$lang->mood_mood}: {$post['mood']} <br /></span>
 
<br /><br />-- 30 Dec 2013, 11:36 --<br /><br />Thank u very much
Looks like I should have done this step
Open your /inc/plugins/mood.php

Find this code
PHP Code:
function mood($post)
{
global $db, $mybb, $lang, $templates, $theme;

$lang->set_language($mybb->settings['bblanguage']);
$lang->load("mood");

Now in the first line i.e.
PHP Code:
function mood($post)
add a '&' before the '$'

So that it looks like
PHP Code:
function mood(&$post)

After I did it it appear
But do u know how to remove the word
My mood :

And just leave the picture
 
Sure, just delete this code from postbit and postbit_classic templates:

Code:
{$lang->mood_mood}:
 
Back
Top Bottom