MyBB Community Forums

Full Version: The "thank system" is put in the wrong place
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hii everyone Smile
I'm using the Thank plugin. I guess you all know about it, right Smile
I've got a problem with it ~
I deactived it then uninstalled then re-installed.

And the Postbit would look like this: (see screenshot)
(yeah I changed the word "thank" to "Like" ~ )

The number of posts liked (thanked) and the number of Like (thanks) should be on the right, under the location and Bias thingy.

Does anyone know how to move it BACK there?
I said BACK because it was there before I uninstall the plugin ~ Sad

Thanks~~ Smile
Can u post the code of ur postbit template please.

Look into postbit template,just see for this code where ever it is present :

%%TYL_NUMTHANKEDLIKED%%.

Cut the code and paste in

postbit_author_user template at bottom

This will solve ur problem Smile
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 style="color: rgb(67, 67, 67);">[{$post['fidX']}]</span><br />
							<span class="smalltext">
								{$post['usertitle']}<br />
								{$post['userstars']}
								{$post['groupimage']}
							</span>
						</td>
						<td class="smalltext post_author_info" width="165">
							{$post['user_details']}
						</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']}

The php file of the plugin and its language file in attachment
Uhm~ I must say that there is no %%TYL_NUMTHANKEDLIKED%% in Postbit template ~
I was looking for it too but I didnt find it
Try in postbit_author_user
(2011-07-16, 08:51 AM)Jen_Vuongyen Wrote: [ -> ]Uhm~ I must say that there is no %%TYL_NUMTHANKEDLIKED%% in Postbit template ~
I was looking for it too but I didnt find it

Thats because you're not using the thanks/like system but the thanks plugin which does not have that string.

The plugin files you attached above are named thx.php while the files for the thanks/like plugin are named thankyoulike.php
(2011-07-16, 10:54 PM)- G33K - Wrote: [ -> ]
(2011-07-16, 08:51 AM)Jen_Vuongyen Wrote: [ -> ]Uhm~ I must say that there is no %%TYL_NUMTHANKEDLIKED%% in Postbit template ~
I was looking for it too but I didnt find it

Thats because you're not using the thanks/like system but the thanks plugin which does not have that string.

The plugin files you attached above are named thx.php while the files for the thanks/like plugin are named thankyoulike.php

Thanks ~ I got it now ~
As I tried looking for "thx" I only saw :
Quote:</tr>{$post['thxdsp_inline']}
</tbody>
</table>{$post['thxdsp_outline']}
And when i copied them to Postbit_author_user it still didnt work Sad

So I still cant fix my prob Sad

I'm bad at php, code, .. so could please tell me exactly what to do?
Thanks Smile
So... there is no cure for this? Sad