PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Fri Jul 21, 2017 1:32 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 13 posts ] 
Author Message
PostPosted: Tue Jul 19, 2011 1:46 am 
Offline
DevNet Master
User avatar

Joined: Wed Jun 27, 2007 9:44 am
Posts: 4294
Location: Sofia, Bulgaria
Can you make the button "disabled" in such case?

_________________
Image
http://openfmi.net/projects/flattc/ Linux is better :)


Top
 Profile  
 
PostPosted: Tue Jul 19, 2011 11:22 am 
Offline
Forum Commoner

Joined: Mon Jul 18, 2011 6:30 pm
Posts: 26
Location: Peninsula
Yes: <input type="submit" disabled>


Top
 Profile  
 
PostPosted: Tue Jul 19, 2011 4:56 pm 
Offline
Forum Regular
User avatar

Joined: Wed Apr 30, 2008 2:34 am
Posts: 794
lol :)

btw, agree with VladSun.


Top
 Profile  
 
PostPosted: Tue Jul 19, 2011 10:28 pm 
Offline
DevNet Master
User avatar

Joined: Thu Mar 15, 2007 6:28 pm
Posts: 2765
Location: Redding, California
+1. And disabled attribute ftw! :P


Top
 Profile  
 
PostPosted: Wed Jul 20, 2011 9:43 pm 
Offline
DevNet Resident
User avatar

Joined: Wed Apr 01, 2009 1:31 pm
Posts: 1531
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. :(


Top
 Profile  
 
PostPosted: Wed Jul 20, 2011 10:33 pm 
Offline
Forum Commoner

Joined: Mon Jul 18, 2011 6:30 pm
Posts: 26
Location: Peninsula
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.


Top
 Profile  
 
PostPosted: Wed Jul 20, 2011 10:54 pm 
Offline
DevNet Master
User avatar

Joined: Thu Mar 15, 2007 6:28 pm
Posts: 2765
Location: Redding, California
@beetree: didn't mean to offend, we're just having fun :mrgreen:


Top
 Profile  
 
PostPosted: Thu Jul 21, 2011 1:48 am 
Offline
Site Administrator
User avatar

Joined: Sun May 19, 2002 10:24 pm
Posts: 6883
I'm going to be digging around in there. I'll modify that line shortly.

_________________
Image


Top
 Profile  
 
PostPosted: Thu Jul 21, 2011 11:14 am 
Offline
Forum Commoner

Joined: Mon Jul 18, 2011 6:30 pm
Posts: 26
Location: Peninsula
Jonah Bron wrote:
@beetree: didn't mean to offend, we're just having fun :mrgreen:


Okay, cool. No problem. After I signed up I went around the forum and answered some questions to get a feel of the forum. I suppose that I stepped on some toes doing that. I'm happy to see that my answers were well received and proved helpful to those that actually posted well-intended questions at least :)

Talk to you trollers later! :P

/beetree


Top
 Profile  
 
PostPosted: Thu Jul 21, 2011 11:30 am 
Offline
Moderator
User avatar

Joined: Mon Nov 03, 2003 7:13 pm
Posts: 5975
Location: Odessa, Ukraine
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.


Top
 Profile  
 
PostPosted: Thu Jul 21, 2011 11:46 am 
Offline
DevNet Master
User avatar

Joined: Thu Mar 15, 2007 6:28 pm
Posts: 2765
Location: Redding, California
beetree wrote:
After I signed up I went around the forum and answered some questions to get a feel of the forum. I suppose that I stepped on some toes doing that.

I did notice that. Good on ya, that's encouraged. As far as I know, everyone's toes are just fine.


Top
 Profile  
 
PostPosted: Thu Jul 21, 2011 12:33 pm 
Offline
Forum Commoner

Joined: Mon Jul 18, 2011 6:30 pm
Posts: 26
Location: Peninsula
Weirdan wrote:
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.


This explains so much. Thanks :)

My apologies...


Top
 Profile  
 
PostPosted: Mon Jul 25, 2011 3:55 am 
Offline
Site Administrator
User avatar

Joined: Sun May 19, 2002 10:24 pm
Posts: 6883
This has been implemented.

_________________
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group