Module: User Thank/Flame
Posted by J. David Smith
|
Re: Module: User Thank/Flame November 08, 2009 02:39AM |
Registered: 22 years ago Posts: 666 |
Quote
J. David Smith
No, its not abandoned. I've just been a bit busy with other things. That and my dev computer died. But I just finished piecing together a new one and will start working on this again soon. I have another module I am going to work on (unpublished, still in concept phase) as well, so everything may not happen immediately
Does anyone have a demo of this up and running, or screenshots?
Edit: Went ahead and installed this. It's a very nice module, but there is a loophole. If somebody votes on a post, they can use the back button and vote again, and it will count as an additional vote each time this is done, making it easy for someone to cheat the system. I'm guessing refresh would probably do the same thing.
Also, I see
in the language file, and I'm assuming this is what would display once a person has voted, but it doesn't appear to be called from any file. When a person votes, the thank/flame bar just disappears and leaves nothing in its stead.Quote
"MsgThanked" => "This message has been thanked",
"MsgFlamed" => "This message has been flamed",
On a side note, I figured I'd offer to share these thank/flame icons, if anyone's interested. The +1 and -1 I made myself, while the other two (star and flame) I shrunk down from free-to-use clipart. Feel free to change them as you'd like.
-------------------------------------------
"Everything we see or seem, is but a dream within a dream." -Edgar Allan Poe
Edited 1 time(s). Last edit at 11/08/2009 05:46AM by Ryan.
|
Re: Module: User Thank/Flame November 08, 2009 06:03AM |
Registered: 18 years ago Posts: 7 |
Quote
hvella
Hello Zeduc
For correct the problem of possible hack...
You have to go to the bar.tpl file
and put a post vars after the beginning of the form.
eg;
<form action="" method="post">
{POST_VARS}
It will work like this
Best regards
doesn't work for me
btw. there are 2 bar.tpl
mods/user_thank_flame/templates/emerald/bar.tpl
templates/emerald/bar.tpl
|
Re: Module: User Thank/Flame November 08, 2009 01:52PM |
Admin Registered: 21 years ago Posts: 8,532 |
The one in the directory templates/emerald is not part of the standard distribution, so you added it there. I don't know why (possibly for some other module that requires copying the template file there, possibly because you accidentally copied the template files in the emerald dir), but I am pretty sure that in this case you' have to edit the one in mods/user_thank_flame/templates/emerald.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
|
Re: Module: User Thank/Flame November 08, 2009 02:24PM |
Registered: 18 years ago Posts: 7 |
|
Re: Module: User Thank/Flame November 08, 2009 04:10PM |
Registered: 22 years ago Posts: 666 |
Zekuc, in your template (not the mod's template but the one you're using for your board), in read.tpl, if you are using:
{INCLUDE "user_thank_flame::bar"} then it will utilize the file in mods/user_thank_flame/templates/emerald/bar.tpl
If you are using
{INCLUDE "user_thank_flame::min_bar"} then it will utilize the file in mods/user_thank_flame/templates/emerald/mini_bar.tpl
Both have form lines, and whichever one you're using (or you can just do it to both anyway), make sure {POST_VARS} is listed on the line after where it says 'form action="" method="post"'. Then make sure they are uploaded to the proper directory (mods/user_thank_flame/templates/emerald/) and view some posts again. Rating a post shouldn't bring up the hack message anymore.
-------------------------------------------
"Everything we see or seem, is but a dream within a dream." -Edgar Allan Poe
Edited 1 time(s). Last edit at 11/08/2009 04:14PM by Ryan.
{INCLUDE "user_thank_flame::bar"} then it will utilize the file in mods/user_thank_flame/templates/emerald/bar.tpl
If you are using
{INCLUDE "user_thank_flame::min_bar"} then it will utilize the file in mods/user_thank_flame/templates/emerald/mini_bar.tpl
Both have form lines, and whichever one you're using (or you can just do it to both anyway), make sure {POST_VARS} is listed on the line after where it says 'form action="" method="post"'. Then make sure they are uploaded to the proper directory (mods/user_thank_flame/templates/emerald/) and view some posts again. Rating a post shouldn't bring up the hack message anymore.
-------------------------------------------
"Everything we see or seem, is but a dream within a dream." -Edgar Allan Poe
Edited 1 time(s). Last edit at 11/08/2009 04:14PM by Ryan.
|
Re: Module: User Thank/Flame November 08, 2009 04:28PM |
Registered: 18 years ago Posts: 7 |
|
Re: Module: User Thank/Flame November 25, 2009 03:27PM |
Registered: 17 years ago Posts: 20 |
|
Re: Module: User Thank/Flame December 08, 2009 08:30AM |
Registered: 17 years ago Posts: 20 |
Hi,
Has anybody this problem :
Warning: Invalid argument supplied for foreach() in /homez.134/schoolan/www/forum_2/mods/user_thank_flame/user_thank_flame.php on line 142
Warning: Invalid argument supplied for foreach() in /homez.134/schoolan/www/forum_2/mods/user_thank_flame/user_thank_flame.php on line 142
Warning: Cannot modify header information - headers already sent by (output started at /homez.134/schoolan/www/forum_2/mods/user_thank_flame/user_thank_flame.php:142) in /var/log/tmp/tpl-emerald-header-2728c3bd19462d0e85332064f23fb8c4.php-stage2 on line 5
The problem appears only with the list.php page (line 142 is about tf_list function).
Thanks in advance for your help
Has anybody this problem :
Warning: Invalid argument supplied for foreach() in /homez.134/schoolan/www/forum_2/mods/user_thank_flame/user_thank_flame.php on line 142
Warning: Invalid argument supplied for foreach() in /homez.134/schoolan/www/forum_2/mods/user_thank_flame/user_thank_flame.php on line 142
Warning: Cannot modify header information - headers already sent by (output started at /homez.134/schoolan/www/forum_2/mods/user_thank_flame/user_thank_flame.php:142) in /var/log/tmp/tpl-emerald-header-2728c3bd19462d0e85332064f23fb8c4.php-stage2 on line 5
The problem appears only with the list.php page (line 142 is about tf_list function).
Thanks in advance for your help
|
Re: Module: User Thank/Flame December 08, 2009 12:00PM |
Admin Registered: 21 years ago Posts: 8,532 |
If you search in this thread's page, you'll see that there are more people that have this issue. I don't think anybody ever wrote a fix for this though.
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
Maurice Makaay
Phorum Development Team
my blog
linkedin profile
secret sauce
|
Re: Module: User Thank/Flame December 08, 2009 12:28PM |
Registered: 17 years ago Posts: 20 |
Sorry, only registered users may post in this forum.


