News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Thank-O-Matic

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

Previous topic - Next topic

littlenicki

This is a great mod. I just installed it and like it very much. I just got one problem with display.php and hope someone can help me please. Where it says:

<search for>
ID_MSG_MODIFIED < $topicinfo[new_from] AS isRead
FROM {$db_prefix}messages
</search for>

<add before>
".($board_info['thank_you_post_enable'] && allowedTo('thank_you_post_show') ? "thank_you_post, thank_you_post_counter," : "")."
</add before>


I got this code:




$messages_request = db_query("
SELECT
m.ID_MSG, m.icon, m.subject, m.posterTime, m.posterIP, m.ID_MEMBER, m.modifiedTime, m.modifiedName, m.body, m.showSIG, m.edit_reason,
post_hidden, hidden_reason, hidden_by, hmd.realName,
m.smileysEnabled, m.posterName, m.posterEmail,
m.ID_MSG_MODIFIED < $topicinfo[new_from] AS isRead,
k.message AS is_repped,
IFNULL(lr.ID_TOPIC, 0) as reporttopic, IFNULL(lr.solved, -1) as reportsolved
FROM {$db_prefix}messages AS m
LEFT JOIN {$db_prefix}members AS hmd ON (hmd.ID_MEMBER = hidden_by)
LEFT JOIN {$db_prefix}log_reports as lr ON (lr.ID_MSG = m.ID_MSG)
LEFT JOIN {$db_prefix}log_karma AS k ON (k.message = m.ID_MSG AND k.ID_EXECUTOR = {$ID_MEMBER})
WHERE m.ID_MSG IN (" . implode(',', $messages) . ")
ORDER BY m.ID_MSG" . (empty($options['view_newest_first']) ? '' : ' DESC'), __FILE__, __LINE__);



Any advice on what the modified code should look like is much appreciated. Thank you!
Fomer SMF user. Switched to Invision Power Board and VBulletin

aceking

#2241
I need help removing the word Thank You Given: August 16, 2013, 10:22:38 PM"> I just need to show the member name who gave thank you. I attached a screenshot. Is is possible that my files had errors or what? I'm running 2.0.1. Thanks!


DeeX

Is anyone still working on this MOD?

RikuAnsem

It's me or the new version not work ok?
When I install it, i can't go to the panel "Admin -> Configuraciones -> Thank-o-Matic".
I understand that it is deleted in the new version...
¿Why? Yes... I've readed because the mod is very big...  but... it is needed...

Maybe is my installation.

Anyone can help me?


Thanks in advanced.

Branko.

For me also...something is missing.  :o
Strong people don't put others down, they lift them up.
A clever person solves a problem. A wise person avoids it.

simzman

Hi all,

Having a bit of trouble putting my finger on this:
Every month or so, all members' thank you stats are erased. No idea what's causing it. Have been searching and this is my last option.
Restoring them requires restoring a backup of the database which I was not able to do last time around as it would have wiped 3 days or more of posts.

I've checked scheduled maintenance, no cron jobs on the server, no accidents from any admin's, no clue.
Any idea of where to start looking? It's starting to take it's toll on some valued members.

Thank you :)

simzman

In addition - it may be the 'thank_you_posts' table content being dropped. No idea why though...
Any advice?

Branko.

#2247
Quote from: RikuAnsem on August 22, 2013, 12:24:38 PM
It's me or the new version not work ok?
When I install it, i can't go to the panel "Admin -> Configuraciones -> Thank-o-Matic".
I understand that it is deleted in the new version...
¿Why? Yes... I've readed because the mod is very big...  but... it is needed...

Maybe is my installation.

Anyone can help me?


Thanks in advanced.
Sources/Admin.php
For Configuration>Thank-O-Matic
Find:
'serversettings' => array(
'label' => $txt['admin_server_settings'],
'file' => 'ManageServer.php',
'function' => 'ModifySettings',
'icon' => 'server.gif',
'subsections' => array(
'general' => array($txt['general_settings']),
'database' => array($txt['database_paths_settings']),
'cookie' => array($txt['cookies_sessions_settings']),
'cache' => array($txt['caching_settings']),
'loads' => array($txt['load_balancing_settings']),
),
),

add
'thankyoupostsettings' => array(
'label' => $txt['thankyouposttitle'],
'file' => 'ManageThankYouPost.php',
'function' => 'ManageThankYouPost',
'icon' => 'thank_you_settings.gif',
'subsections' => array(
'general' => array($txt['general_settings']),
'layout' => array($txt['mods_cat_layout']),
'permission' => array($txt['edit_permissions'], 'enabled' => allowedTo('manage_permissions')),
'boards' => array($txt['admin_boards']),
'modrelated' => array($txt['thxmodification']),
),
),


and for Maintenance>Maintaince Thank-O-Matic

find:
'reports' => array(
'enabled' => in_array('rg', $context['admin_features']),
'label' => $txt['generate_reports'],
'file' => 'Reports.php',
'function' => 'ReportsMain',
'icon' => 'reports.gif',
),

add
'maintainThankYouPost' => array(
'label' => $txt['maintain_thxpost'],
'file' => 'ThankYouPost-Maintaince.php',
'icon' => 'thank_you_maintain.gif',
'function' => 'ManageMaintenanceThankYouPost',
'subsections' => array(
'maintain' => array($txt['maintain_thank_you_post_maintainaince'], 'admin_forum'),
'recount' => array($txt['maintain_thank_you_post_recount'], 'admin_forum'),
),
),
Strong people don't put others down, they lift them up.
A clever person solves a problem. A wise person avoids it.

littlenicki

Quote from: littlenicki on August 12, 2013, 11:06:19 PM
This is a great mod. I just installed it and like it very much. I just got one problem with display.php and hope someone can help me please. Where it says:

<search for>
ID_MSG_MODIFIED < $topicinfo[new_from] AS isRead
FROM {$db_prefix}messages
</search for>

<add before>
".($board_info['thank_you_post_enable'] && allowedTo('thank_you_post_show') ? "thank_you_post, thank_you_post_counter," : "")."
</add before>


I got this code:




$messages_request = db_query("
SELECT
m.ID_MSG, m.icon, m.subject, m.posterTime, m.posterIP, m.ID_MEMBER, m.modifiedTime, m.modifiedName, m.body, m.showSIG, m.edit_reason,
post_hidden, hidden_reason, hidden_by, hmd.realName,
m.smileysEnabled, m.posterName, m.posterEmail,
m.ID_MSG_MODIFIED < $topicinfo[new_from] AS isRead,
k.message AS is_repped,
IFNULL(lr.ID_TOPIC, 0) as reporttopic, IFNULL(lr.solved, -1) as reportsolved
FROM {$db_prefix}messages AS m
LEFT JOIN {$db_prefix}members AS hmd ON (hmd.ID_MEMBER = hidden_by)
LEFT JOIN {$db_prefix}log_reports as lr ON (lr.ID_MSG = m.ID_MSG)
LEFT JOIN {$db_prefix}log_karma AS k ON (k.message = m.ID_MSG AND k.ID_EXECUTOR = {$ID_MEMBER})
WHERE m.ID_MSG IN (" . implode(',', $messages) . ")
ORDER BY m.ID_MSG" . (empty($options['view_newest_first']) ? '' : ' DESC'), __FILE__, __LINE__);



Any advice on what the modified code should look like is much appreciated. Thank you!

Any advice?
Fomer SMF user. Switched to Invision Power Board and VBulletin

Geor'G

Quote from: Cutter65 on August 27, 2012, 07:22:08 AM
I also get this error when I try to run Maintenance.

Repair and optimize Thank-O-Matic tables give this error

forum/index.php?action=admin;area=maintainThankYouPost;sa=maintain;activity=optimize
Database Error: Operand should contain 1 column(s)
File: /public_html/forum/Sources/ThankYouPost-Maintaince.php
Line: 603

601: 'msg_ids' => $msg_ids,
602: )
==>603: );
604:    
605: $_REQUEST['start'] +=$increment;

../Sources/ThankYouPost-Maintaince.php find:
WHERE ({array_int:msg_ids})',
Fix:
WHERE id_msg IN ({array_int:msg_ids})',

estes

will this work in 2.0.5 eventually?  i tried to emulate 2.0.4 to install correctly and there was a slew of errors.

vms

attached portuguese translation.

ThankOMaticPortuguese_brazilian
ThankOMaticPortuguese_brazilian-utf8
ThankOMaticPortuguese_pt
ThankOMaticPortuguese_pt-utf8




Midnight_Rider

Quote from: estes on September 12, 2013, 05:23:12 PM
will this work in 2.0.5 eventually?  i tried to emulate 2.0.4 to install correctly and there was a slew of errors.

i have 2.0.5 installed and this mod works. however in the tapatalk app the Thanks in there stopped working. i do not know if it is this mod being outdated or that i updated to 2.0.5

i updated the tapatalk app and that all has the right file perms, but still no Thanks in tapatalk itself

wonder if i should go back to 2.0.4 to see

Fisch.666

Mhhh, at the tapatalk forums there are some reports that this is caused by an update of the tapatalk plugin:

https://support.tapatalk.com/threads/no-thanks-button-after-updating-plug-in.19825/

estes

when i tried to install this i received a few errors.  i manually changed the files and ran through the install.

i only see buttons "lock all thank you" but no actual link to "thank" posts.

the following 4 files that were updated are:
Load.php
Display.php
Display.template.php
Subs-Boards.php

anyone have any suggestions?

Branko.

Strong people don't put others down, they lift them up.
A clever person solves a problem. A wise person avoids it.

Shambles

Quote from: estes
i only see buttons "lock all thank you" but no actual link to "thank" posts.

Have you found the new section that controls the feature?

Admin > Configuration > Thank-O-Matic...

Go to the "Boards" tab and ensure you've ticked the boards you want thank-o-matic to show in. While you're in that area, check the "Permissions" tab to ensure the groups you want to see the feature, actually see the feature.

estes

Quote from: Shambles on September 27, 2013, 03:20:05 PM
Quote from: estes
i only see buttons "lock all thank you" but no actual link to "thank" posts.

Have you found the new section that controls the feature?

Admin > Configuration > Thank-O-Matic...

Go to the "Boards" tab and ensure you've ticked the boards you want thank-o-matic to show in. While you're in that area, check the "Permissions" tab to ensure the groups you want to see the feature, actually see the feature.

yes that is correct, i have all of these checked. 

Shambles

I suggest you recheck your edits; make sure you completed them all, in the right places.

Quote from: estes
i manually changed the files and ran through the install.

Greybrow

Hi.
Will there be an update fixing issue with changes in PHP 5.4?
Here is a info what happened: http://www.simplemachines.org/community/index.php?topic=419479.msg3341712#msg3341712

Advertisement: