"Post As" hack
|
|
By Mystic , Section Code [] Posted on Fri Dec 08, 2000 at 12:00:00 PM PST
|
|
To make the scoop UI more usefriendly, I suggest that the "Post as" drop-down not be displayed at all if Anonymous post is not allowed on a scoop system. If this is allowed (as it is now), it looks a bit ridiculous because you have a dropdown box, but nothing to choose from.
|
The hack that I have coded looks as follows. In the Post.pm file (inside Comments dir), look at lines from 129 . It looks something like:
$form .= qq|
<TR>
<TD align="right">%%norm_font%%Post as:%%norm_font_end%%</TD>
<TD>%%norm_font%%<SELECT SIZE=1 NAME="uid">
<OPTION VALUE="$S->{UID}">$self|;
if ($S->{UID} > 0 && $S->have_perm('comment_post', 'Anonymous')) {
my $select = '';
if ($uid == -1) {
$select = 'SELECTED';
}
$form .= qq|
<OPTION VALUE="-1"$select>$anon|;
}
$form .= qq|
</SELECT>|;
I suggest that it be changed to (the commented codes are ones that are no longer used, added lines are shown in strong):
if($S->{UID} > 0 && $S->have_perm('comment_post','Anonymous')) {
$form .= qq|
<TR>
<TD align="right">%%norm_font%%Post as:%%norm_font_end%%</TD>
<TD>%%norm_font%%<SELECT SIZE=1 NAME="uid">
<OPTION VALUE="$S->{UID}">$self|;
#if ($S->{UID} > 0 && $S->have_perm('comment_post', 'Anonymous')) {
my $select = '';
if ($uid == -1) {
$select = 'SELECTED';
}
$form .= qq|
<OPTION VALUE="-1"$select>$anon|;
#}
$form .= qq|
</SELECT>|;
}
else {
$form .=qq|
<TR>
<TD>%%norm_font%%|;
}
|
|
Story Views
|
23 Scoop users have viewed this story.
|
|