PHP Developers Network
http://forums.devnetwork.net/

"This post has already been reported."
http://forums.devnetwork.net/viewtopic.php?f=7&t=130562
Page 1 of 1

Author:  VladSun [ Tue Jul 19, 2011 1:46 am ]
Post subject:  "This post has already been reported."

Can you make the button "disabled" in such case?

Author:  beetree [ Tue Jul 19, 2011 11:22 am ]
Post subject:  Re: "This post has already been reported."

Yes: <input type="submit" disabled>

Author:  Apollo [ Tue Jul 19, 2011 4:56 pm ]
Post subject:  Re: "This post has already been reported."

lol :)

btw, agree with VladSun.

Author:  Jonah Bron [ Tue Jul 19, 2011 10:28 pm ]
Post subject:  Re: "This post has already been reported."

+1. And disabled attribute ftw! :P

Author:  McInfo [ Wed Jul 20, 2011 9:43 pm ]
Post subject:  Re: "This post has already been reported."

All it would require is a small modification in viewtopic.php (tested on phpBB v3.0.8).

From this:
Syntax: [ Download ] [ Hide ]
                'U_REPORT'                      => ($auth->acl_get('f_report', $forum_id)) ? append_sid("{$phpbb_root_path}report.$phpEx", 'f=' . $forum_id . '&amp;p=' . $row['post_id']) : '',

To this:
Syntax: [ Download ] [ Hide ]
                'U_REPORT'                      => (!$row['post_reported'] && $auth->acl_get('f_report', $forum_id)) ? append_sid("{$phpbb_root_path}report.$phpEx", 'f=' . $forum_id . '&amp;p=' . $row['post_id']) : '',

However, I think the current policy is to not make such modifications. :(

Author:  beetree [ Wed Jul 20, 2011 10:33 pm ]
Post subject:  Re: "This post has already been reported."

Not sure if I interpret you guys correctly. But I read it as being somewhat unfriendly. I'm new here but, don't see the point in all this.

Author:  Jonah Bron [ Wed Jul 20, 2011 10:54 pm ]
Post subject:  Re: "This post has already been reported."

@beetree: didn't mean to offend, we're just having fun :mrgreen:

Author:  Benjamin [ Thu Jul 21, 2011 1:48 am ]
Post subject:  Re: "This post has already been reported."

I'm going to be digging around in there. I'll modify that line shortly.

Author:  beetree [ Thu Jul 21, 2011 11:14 am ]
Post subject:  Re: "This post has already been reported."


Author:  Weirdan [ Thu Jul 21, 2011 11:30 am ]
Post subject:  Re: "This post has already been reported."

beetree, this specific forum (PHPDN Suggestions) is intended to allow members to post suggestions to the moderators/admin team. So Vlad didn't mean to ask how to disable a button, but rather proposing changes to the forum software we use to disable the 'Report post' button under some circumstances.

Author:  Jonah Bron [ Thu Jul 21, 2011 11:46 am ]
Post subject:  Re: "This post has already been reported."


Author:  beetree [ Thu Jul 21, 2011 12:33 pm ]
Post subject:  Re: "This post has already been reported."


Author:  Benjamin [ Mon Jul 25, 2011 3:55 am ]
Post subject:  Re: "This post has already been reported."

This has been implemented.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/