Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
how to get discussion ID from DiscussionsController. +
SonicNebula
New
How do I get the discussion ID from DiscussionsController_DiscussionOptions_Handler each time it fires?
+How do I do a var dump of $Sender explicit to the function that uses it?
Thanks in advance.
Tagged:
0
Comments
it's a way - may not be the best
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Dude. You are just The Awesome
Is it your intention to write to a ratings table or just to the rating column in discussions.
I think your code shows you trying to do half of one and half of the other.
It may be worth just writing only to a Ratings table with the Discussion Id and Rating and perhaps Author ID, rather than messing with Discussions Table just a thought.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
I had thought writing a rating column to the Discussion table would be the quick and dirty solution. However, I believe you are right. It is better practice to create a new table for the with the Discussion ID as the Primary Key.