I still want it as a feature, but to delete "thanks" from the wrong post, I went into the database table LUM_ThankfulPeople and deleted the row for that comment.
I want to modify ThankfulPeople by limiting "thanks" to the first comment of a discussion in a certain category. Does anyone know how can i determine if:
- some comment is the first of a discussion
- the category id
I have looked in the documentation and searched in the forums, but i haven't found anything. I don't know much about the framework ... :(
Since you're so busy and have so many addons, you should really state what's going to be updated when. At least PMs you don't have to do much updating to, ty bschultz.
Thanks for addon :)! Is it possible for you to add a function in your next release to 'remove' thanks you have left? Also, I'd like to add the thumbs up icon next to 'thanks' writing. What line must I edit?
edit -
Found out how to get the icon up there. Just incase anyone else was stuck:
default.php:
function Comment_ThankfulPeople(&$CommentGrid) {
$Comment = &$CommentGrid->DelegateParameters['Comment'];
if ($Comment->AuthUserID !== $Comment->Context->Session->UserID) {
$CommentList = &$CommentGrid->DelegateParameters['CommentList'];
$CommentList .= '<---------IMG TAG + URL HERE--------> <a href="./" onclick="ThankfulPeople(\''.$Comment->Context->Configuration['WEB_ROOT'].'extensions/ThankfulPeople/addthanks.php\','.$Comment->CommentID.'); return false;">'.$Comment->Context->GetDefinition('Thanks').'</a>';
}
}
EDIT 2 -
Has anyone got a version with the code within renamed (so multiple versions can run?). I tried renaming myself but it keeps messing up.
I have downloaded this add on, unzip + install it but nothing changes... Have I miss something ?
More precisely : - I have the number of thanks in my user account - I don't see where I can "thank" on a comment or in a discussion - Which permissions are required ? >>> I logged under another administrator and I could see the "thank" link. So some 2 points are linked... - Can I thank myself ? >>> after some tests, seems that I can't - Would it be possible to say when writing a comment if you allow or not such thanks ?
Has anyone seen this before? Doesn't seem like it would be caused by interaction with another add ons. This extension seems to work for others, though. Could this be caused by my own mysql server being funky?
Error Message An error occurred while retrieving data. Affected Elements ThankfulPeople.CommentGrid_InitThankfulPeople();
The error occurred on or near: You have an error in your SQL syntax near 'on tp.UserID = u.UserID where m.DiscussionID = '10' ' at line 1
Yet another one...
Notice: Undefined index: ThankfulPeople in /home/myserver/public_html/library/Framework/Framework.Functions.php on line 522
Notice: Undefined index: ThankfulPeople in /home/myserver/public_html/library/Framework/Framework.Class.SqlBuilder.php on line 68
Notice: Undefined index: ThankfulPeople in /home/myserver/public_html/library/Framework/Framework.Class.SqlBuilder.php on line 117
Notice: Undefined index: ThankfulPeople in /home/myserver/public_html/library/Framework/Framework.Class.SqlBuilder.php on line 117
Notice: Undefined index: ThankfulPeople in /home/myserver/public_html/library/Framework/Framework.Class.SqlBuilder.php on line 68
A fatal, non-recoverable error has occurred
Technical information (for support personel):
Error Message
An error occurred while retrieving data.
Affected Elements
ThankfulPeople.CommentGrid_InitThankfulPeople();
The error occurred on or near: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'as CommentID, tp. as UserID, u.Name as UserName from LUM_Comment m inner join ' at line 1
For additional support documentation, visit the Lussumo Documentation website at: lussumo.com/docs
Any suggestion?
Could it be related to http://lussumo.com/community/discussion/6945/databasephp-erased-oh-noes-helps/#Item_12 ?
It happened simultaneously.
If I wanted to create a new add-on that only works when the number of Thankful People for a particular user is greater than 1, what is the code that I use in that other add on?
I'm basically looking for an "if" statement that figures out the Thankful People count for any particular user. Any ideas?
Dear people
very new BUT NOT totally DUMB one here...I would like to use this extension BUT..it ain't got a read me file. It dont seem to work on the extension folder....and it changed the conf/extensions.php.....which with my small brain I feel very clever for fixing myself..said the little red hen BUT can someone tell moi where to put it. I love vanilla.....so its not wasted on me!
Thanks
After you activate this extension, you will only see the ability to thank someone on the Comments page. Then on each person's account page they can see how many thank you's they have received.
Been using this and love it, as does my userbase, I think. It'd be a great candidate for ajaxifying, so no page load is necessary after hitting thanks -- any plans (asking the author) or any tips (asking anyone) to leverage Mootools to make that happen?
Comments
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Posted: Tuesday, 6 March 2007 at 8:23AM (AEDT)
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •But an insult feature would be excellent ;)
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •maybe have two icons. thumbs up and thumbs down, then have the ability to delete your thanks/insult at any time.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •jk
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Since you're so busy and have so many addons, you should really state what's going to be updated when. At least PMs you don't have to do much updating to, ty bschultz.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •More precisely :
- I have the number of thanks in my user account
- I don't see where I can "thank" on a comment or in a discussion
- Which permissions are required ?
>>> I logged under another administrator and I could see the "thank" link. So some 2 points are linked...
- Can I thank myself ?
>>> after some tests, seems that I can't
- Would it be possible to say when writing a comment if you allow or not such thanks ?
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •Error Message
An error occurred while retrieving data.
Affected Elements
ThankfulPeople.CommentGrid_InitThankfulPeople();
The error occurred on or near: You have an error in your SQL syntax near 'on tp.UserID = u.UserID where m.DiscussionID = '10' ' at line 1
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •// Thankful People Table Structure
$DatabaseTables['ThankfulPeople'] = 'ThankfulPeople';
$DatabaseColumns['ThankfulPeople']['CommentID'] = 'CommentID';
$DatabaseColumns['ThankfulPeople']['UserID'] = 'UserID';
Also check that you have in settings.php:
$Configuration['THANKFULPEOPLE_VERSION'] = '1.0';- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •if (!AppendToConfigurationFile($Configuration['APPLICATION_PATH'].'conf/database.php', $Structure)) $Errors = 1;to this:
if (!AppendToConfigurationFile($Configuration['DATABASE_PATH'], $Structure)) $Errors = 1;Where your conf/settings.php file has the $Configuration['DATABASE_PATH'] pointing to the location of your database.php file.
Thanks for a great extension.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •I'm basically looking for an "if" statement that figures out the Thankful People count for any particular user. Any ideas?
Never mind, I figured it out.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •It would be nice if the amount of thankfull peoples who have voted for the initial discussion-post would be displayed on the overview-page/frontpage.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •