Module: User Thank/Flame

Posted by J. David Smith 
Re: Module: User Thank/Flame
November 08, 2009 02:39AM
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
Quote

"MsgThanked" => "This message has been thanked",
"MsgFlamed" => "This message has been flamed",
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.

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.
Attachments:
open | download - thank-flame-icons.zip (3 KB)
open | download - icons-screenshot.jpg (15 KB)
Re: Module: User Thank/Flame
November 08, 2009 06:03AM
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
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
Re: Module: User Thank/Flame
November 08, 2009 02:24PM
i changed both, but i still get the error message
Re: Module: User Thank/Flame
November 08, 2009 04:10PM
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.
Re: Module: User Thank/Flame
November 08, 2009 04:28PM
ah okay, so i also have to change: mini_bar.tpl

ok, that did work! thanks Ryan :)
Re: Module: User Thank/Flame
November 25, 2009 03:27PM
Hi,

This is a first french translation. It may be improved but it can be useful to start :)

@+
Attachments:
open | download - french.php (1.1 KB)
Re: Module: User Thank/Flame
December 08, 2009 08:30AM
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
Re: Module: User Thank/Flame
December 08, 2009 12:00PM
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
Re: Module: User Thank/Flame
December 08, 2009 12:28PM
OK, I have done :

[code="php"]
if($item['meta']['message_ids']!=null)
{
foreach($item['meta']['message_ids'] as $mid) {
[/code]
Sorry, only registered users may post in this forum.

Click here to login