MyBB Community Forums

Full Version: Mood and Thanks CODE
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi Guys,
Anyne knows where the MyMood and the ThankYou code are placed into the templates?
Like this:
{$post['mood']}

I need to change the order in the postbit but I didn't find it.

Thanks.
big bump =D
Look at the the plugin first bit of it. It will tell you the php stuff then its easy to change from there. Also link to the site?
The site is currently under development.
I'll make a thread when I finished it.

Here is the mood_postbit template:
<br><span class="smalltext">{$lang->mood_mood}: {$post['mood']}<br /></span>

I want to change something to make it:
[attachment=15390]

Appear like this:
[attachment=15391]


But I don't know how...

Here is the post_bit template:
{$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="1" style="{$post['avatar_padding']}">
							{$post['useravatar']}
						</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['newpoints_postbit']}							
                                                        <BR>{$post['user_details']}
                                                        {$post['awards']}						
                                              </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']}
				<style type="text/css">

.signature img {

max-height: {$mybb->settings['max_sig_h']}px;

max-width: {$mybb->settings['max_sig_w']}px;

}

</style>

<div class="signature">

{$post['signature']}

</div>

				<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']}
				</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['returntotop']}{$post['button_warn']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}
				</div>
			</td>
		</tr>
	<table>{$post['thxdsp']}</table></tbody>
</table>
There isn't the {$post['mood']}...
bump...
I'll try to help you.
Go into postbit_author_user
then add this where you want it in between:
<tr>
	<td class="trow3" align="center">
	{$lang->mood_mood} {$post['mood']}
	</td>
	</tr>

hmm.. wait I lied. That will add inside a grey box.

Do this:

Go into postbit_classic.
add
{$post['mood']}<br />

under

{$post['user_details']}<br />
for thank you, check the global template.. Smile please easy men.. Toungue be patience, don't bump.. lol thanks
Here is the Global Template for Mood:
<br><span class="smalltext">{$lang->mood_mood}: {$post['mood']}<br /></span>


I need to find the code and remove the space between: MyMood and Thanks Count.
[Image: attachment.php?aid=15390]


Here is the postbit template:
{$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="1" style="{$post['avatar_padding']}">
							{$post['useravatar']}
						</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['newpoints_postbit']}							
                                                        <BR>{$post['user_details']}
                                                       {$post['awards']}
                                                        
                                              </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']}
				<style type="text/css">

.signature img {

max-height: {$mybb->settings['max_sig_h']}px;

max-width: {$mybb->settings['max_sig_w']}px;

}

</style>

<div class="signature">

{$post['signature']}

</div>

				<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']}
				</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['returntotop']}{$post['button_warn']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}
				</div>
			</td>
		</tr>
	<table>{$post['thxdsp']}</table></tbody>
</table>


Here is the postbit_classic template:
{$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> {$post['onlinestatus']}<br />
		<span class="smalltext">
			{$post['usertitle']}<br />
			{$post['userstars']}
			{$post['groupimage']}
			{$post['useravatar']}<br />
			{$post['user_details']}{$post['newpoints_postbit']}
		</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']}" style="padding: 5px 0 5px 0;">
				{$post['message']}
			</div>
			{$post['attachments']}
			<style type="text/css">

.signature img {

max-height: {$mybb->settings['max_sig_h']}px;

max-width: {$mybb->settings['max_sig_w']}px;

}

</style>

<div class="signature">

{$post['signature']}

</div>
			<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']}</span></td>
				<td align="right">{$post['button_edit']}{$post['button_quickdelete']}{$post['button_quote']}{$post['thanks']}{$post['button_multiquote']}{$post['button_report']}{$post['returntotop']}{$post['button_warn']}{$post['button_reply_pm']}{$post['button_replyall_pm']}{$post['button_forward_pm']}{$post['button_delete_pm']}</td>
			</tr>
		</table>{$post['thxdsp']}
	</td>
</tr>
</table>

What I need to change to remove the space between the mymood and thanks count?????
I am not a programmer, but Trying to solve my own problem for the thank you plugin I think I might know how to fix your problem,

Go to your global template and look at
postbit_thxcount

it has 2 breaks leading the code, If you remove them it should bring the thank count up

I hope this helps.

Derrick
Thanks.. but didn't work...
Pages: 1 2