Thank-O-Matic

Started by enik, June 12, 2007, 12:18:59 PM

Previous topic - Next topic

Yiorgos

Quote from: Q-collective on February 05, 2012, 05:33:44 PM
I just updated from 2.0 rc4 to 2.0.2 and thought I would install this mod. However, when trying to thank someone I get the following error:

QuoteDatabase Error
Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8_unicode_ci,IMPLICIT) for operation 'ifnull'
File: /home/****/public_html/****/Sources/ThankYouPost.php
Line: 616

Could someone help me out?

Looks like you don't have the same collation on your MySQL smf_*tables and smf_thank_you_post table.
(utf8_general_ci,IMPLICIT) and (utf8_unicode_ci,IMPLICIT) Those are different collations

You probably have to get into your MySQL database with phpmyadmin and alter the smf_thank_you_post table collation, to match the collation of the other tables.
Be very careful with that.
Do not try that unless you know what you are doing.

www.sdtv.gr


Abandoned modifications that I corrected to apply on SMF 2.0 Gold
Simple Awards System  To award good members
Limit Posts Per Day  for over-posting members

motomaniacs

hello any ideas about the color of the post when the post is receiving a thank you ?

the mod is great but when you gave a thank you to a post then the person who receive a thank you in that post the background color change

i really dont want that

any ideas to solve my problem ?

please take a look

thanks

Yiorgos

Quote from: motomaniacs on February 09, 2012, 02:16:37 PM
hello any ideas about the color of the post when the post is receiving a thank you ?

the mod is great but when you gave a thank you to a post then the person who receive a thank you in that post the background color change

i really dont want that

any ideas to solve my problem ?

please take a look

thanks

That should be a matter caused by the Theme you use.
Is it time for your forum to change displaying Theme ?
Try Default theme and see if you have the same problem.

www.sdtv.gr


Abandoned modifications that I corrected to apply on SMF 2.0 Gold
Simple Awards System  To award good members
Limit Posts Per Day  for over-posting members

MrCreatoR


lucas-ruroken

Adk Portal 3.1 is coming....

Design your universe!

Game.ruler

guys this is an exclusive mod. i want some help regarding manual installation of this mod in core theme, running smf2.0
there are 5 errors , i removed 3 of them but still 2 there.
tried searching for the code to "add after" but its not in display.template.php , what should i do ?
please help me, i really need it.

Shambles

Quote from: Game.ruler on February 26, 2012, 01:48:33 PM
tried searching for the code to "add after" but its not in display.template.php , what should i do ?
Attach a copy of your display.template.php file to your next post so we can have a ganders and maybe suggest what's holding it up...

Game.ruler

here is the display.template.php
i really appreciate for your kind help.
thanks.

Shambles

Try this version (remove the "GR" prefix).

Is it for your ShareSpark forum? That's an SMF 2.0 version so I looked in the 2.0 build to see what you had missing (don't know why the particular string was absent)

This should get rid of one of the errors - couldn't see where a second error might occur

Game.ruler

#1969
shambles , i tried replacing this file, but still same errors are there.
i want help regarding this code , rest i will replace manually. coz i dint found this particular code-
Code (find) Select


<hr class="post_separator" />';

Code (add before) Select

';

// Show the Thank You list or the link or.... nothing? XD
echo '
<div class="ThankOMatic ', $message['approved'] ? ($message['alternate'] == 0 ? 'windowbg' : 'windowbg2') : 'approvebg', '" style="display: '.($message['thank_you_post']['isThankYouPost'] ? 'block' : 'none').';" id="ThankOMaticID' . $message['id'] . '">
<span class="error" id="ErrorThankOMaticID' . $message['id'] . '"></span>';
// Output the Template for Thank-O-Matic (Normal found in the index.template.php)
// It will fall back into a standard function, if this template_thank_you_post doesn't exists!
if ($message['thank_you_post']['isThankYouPost'])
{
// Mistake? Function not loaded oO.
if (empty($context['call_thank_you_post_func']))
loadThankYouTemplateFunctions();

// Call the correct function =D
$context['call_thank_you_post_func']($message['thank_you_post'], $message['id']);
}
echo '
</div>


i am getting error in this code.

Kindred

1- use code tags, PLEASE!

2- yes, the errors will still be present in the mod install...   you need to make the manual edits and then do the mod install despite the errors.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Shambles

Quote from: Game.ruler on February 27, 2012, 03:16:57 PM
i want help regarding this code , rest i will replace manually. coz i dint found this particular code-

(Find) [Select]

<hr class="post_separator" />';


I inserted that missing string at line 627 in the file I attached for you. If it's still not being found try deleting all the spaces + tabs at the start of the line and insert 4 tabs in their place

Game.ruler

@kindred
sorry for my mistake. i wasn't known to that.

@shambles
yup its working now, i was doing wrong before.
but still there is another error with stats.template.php file.


echo '
<span>', $poster['time_online'], '</span>
</dd>';
}


echo '
<span>', $poster['time_online'], '</span>
</dd>';
}

// Thank-O-Matic Stats
if (!empty($modSettings['thankYouPostStatsEnabled']))
{
echo '
</dl>
<div class="clear"></div>
</div>
<span class="botslice"><span></span></span>
</div>
</div>
</div>
<div class="flow_hidden">
<div id="most_thank_you_receive">
<h3 class="catbg"><span class="left"></span>
<img src="', $settings['images_url'], '/buttons/thank_you_b.png" class="icon" alt="" /> ', $txt['thank_you_post_Top10Receive'], ' <span class="smalltext">(', $txt['thank_you_post_became_display'], ' / ', $txt['thank_you_post_made_display'], ')</span>
</h3>
<div class="windowbg">
<span class="topslice"><span></span></span>
<div class="content">
<dl class="stats">';

foreach ($context['top_ThankOMatic_Receive'] as $poster)
echo '
<dt>', $poster['link'], '</dt>
<dd>', $poster['thank_you_post_became'], '/', $poster['thank_you_post_made'], '</dd>';

echo '
</dl>
<div class="clear"></div>
</div>
<span class="botslice"><span></span></span>
</div>
</div>
<div id="most_thank_you_given">
<h3 class="catbg"><span class="left"></span>
<img src="', $settings['images_url'], '/buttons/thank_you_b.png" class="icon" alt="" /> ', $txt['thank_you_post_Top10Given'], ' <span class="smalltext">(', $txt['thank_you_post_made_display'], ' / ', $txt['thank_you_post_became_display'], ')</span>
</h3>
<div class="windowbg2">
<span class="topslice"><span></span></span>
<div class="content">
<dl class="stats">';

foreach ($context['top_ThankOMatic_Given'] as $poster)
echo '
<dt>', $poster['link'], '</dt>
<dd>', $poster['thank_you_post_made'], '/', $poster['thank_you_post_became'], '</dd>';
}



attaching stats.template.php file

MrNicotine

I've found this question earlier in the topic, but I see no answer to it.

When I delete a "thank you", I get this database-error

-Unknown column 'karmaGood' in 'field list'-

/home/dutchmaffi/domains/***.com/public_html/Sources/Subs.php

What can I do about his? It's a new error, I've deleted thank you's before without any problems...
All I did change in the mod, is that after the thank you, it refreshes the page automatically.

tank_fv101

Hello,

I've been using this great mod for a few months now.  Is it possible for the member who is being thanked to receive a PM?  This would help the user to know many months down the line that their post is appreciated.

Many thanks,
Chris.

Tomy Tran

Like this too, because after review, some host or myself use Google Apps mail to send mail, if this mod work to send mail notice will increase the volume of mails sending and reach max 500 mails per day quickly, if PM will avoid of sending mail and keep in quota of GAPPs.

Prefer to PM any Thanks and send mail once per month only is the best.

Kindred

of course, if the user has the default setting of "send email when you receive a PM, your option does nothing to cut down on the number of emails....
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

cameranutzII

Quote from: Shambles on January 28, 2012, 09:09:46 AM
Well, without trundling through all 98 pages of this topic, I had a problem reported on my 2.0.2 installation where only Admin could see "thank you" buttons in certain boards.

A quick check on the differences between the various boards showed that those where the button was absent, were categorised as "no poll" rather than "default" boards. Changing them to default made the thanks button appear.

Will look into this myself, thanks!

Tomy Tran

Quote from: Kindred on March 09, 2012, 08:31:54 AM
of course, if the user has the default setting of "send email when you receive a PM, your option does nothing to cut down on the number of emails....

More point to pay attention, thanks for informative reply ;)

cameranutzII

Quote from: cameranutzII on March 09, 2012, 03:44:57 PM
Quote from: Shambles on January 28, 2012, 09:09:46 AM
Well, without trundling through all 98 pages of this topic, I had a problem reported on my 2.0.2 installation where only Admin could see "thank you" buttons in certain boards.

A quick check on the differences between the various boards showed that those where the button was absent, were categorised as "no poll" rather than "default" boards. Changing them to default made the thanks button appear.

Will look into this myself, thanks!

Set the boards back to Default and it's working. Thanks for the suggestion!

Advertisement: