Module: User Thank/Flame

Posted by J. David Smith 
Re: Module: User Thank/Flame
June 17, 2008 08:22AM
Perfect, it's working now. v0.4 will be up in a moment. No Top Users page yet, sorry, but the settings page works great!
Re: Module: User Thank/Flame
June 17, 2008 11:04AM
New version (again!) now there is a 'Top Users' page and partial support for lang
Re: Module: User Thank/Flame
June 18, 2008 10:55AM
Is there a hook like 'read' for the profile and control center pages?
Re: Module: User Thank/Flame
June 18, 2008 10:58AM
"Profile" and "control center" are two different beasts. There is a "profile" hook that allows you to modify profile data for the profile page. What is it that you want to do for the control center?


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: User Thank/Flame
June 18, 2008 12:22PM
Display the following:

Thanked x times
Flamed x times
Overall Score: x

Same on the Profile page. Actually, I need the hooks to get the user id to get the # thanks and # flames. The actual display part is held in a template in the module. I know that for a template file in the CC I can use PROFILE->user_id to get the user id. I was hoping there was a way I wouldn't have to create a custom hook (e.g. hook: tf_profile|mod_user_thank_flame_profile() ).
Re: Module: User Thank/Flame
June 18, 2008 12:24PM
thanks for the update! :)

just as a reminder, I updated to 0.4, using phorum version 5.2.8 RC1
i am able to see setting pages and so on, but still getting that error message

Fatal error: phorum_api_user_save(): missing field "user_id" in user data array in /home/eastlink/public_html/phorun/include/api/user.php on line 417
Re: Module: User Thank/Flame
June 18, 2008 12:34PM
I am running 5.2.8-RC1 on my test server as well. Try running the system sanity checks in the admin menu. Also, try redownloading and replacing the installed files with the newly downloaded ones (but not reinstall the DB and settings.php). It may be a partially corrupted file. This may also be a problem with the user itself. Try creating a new user account and thanking/flaming someone with that one. If your account is missing it's user_id field when phorum_api_user_get() is run, then that would cause the same problem (also thanking the installer message causes that error).
Re: Module: User Thank/Flame
June 18, 2008 12:56PM
I got the 'profile' hook working maurice. Thanks. This module now has full LANG support, it will be uploaded soon.
Re: Module: User Thank/Flame
June 18, 2008 01:02PM
i already did the sanity and db thing before.
however, I was trying to flame me myself (lol) as admin. I created a new user and same problem.

however i wont worry about his as this is a test environment before upgrading (my old phorum runs 5,1 with half milion posts).
i will have to recreate the db so we will see what happens then

now i will wait for that top users page. any chance to flame/vote threads?

thank you so much for effort. highly appreciated :)
Re: Module: User Thank/Flame
June 18, 2008 01:31PM
I hadn't thought of thread thank/flaming. I will look into it. If threads have meta variables like messages do, I will try to implement it. First, though, I am going to have each message show how many times it has been thanked/flamed (in addition to user thank/flame counts).

Do you all think I should show who has thanked a person on the message, ala vBulletin, or just the amount of times it has been thanked? I will not show who has flamed the message, to avoid starting personal flame wars.
Sorry, only registered users may post in this forum.

Click here to login