Jordo i'm still getting the same error .......
/usr/local/plesk/apache/vhosts/home.com/cgi-bin/ubb_poll_lib.cgi: syntax error at /usr/local/plesk/apache/vhosts/home.com/cgi-bin/ubb_poll_lib.cgi line 172, near "$permission ~"
syntax error at /usr/local/plesk/apache/vhosts/home.com/cgi-bin/ubb_poll_lib.cgi line 226, near "}"
i checked the ubb_poll_lib.cgi
and this is the section thats causing the problem
sub do_vote {
my(@choice,$new_total,$comment_num);
my $type = param('type');
my $vote = param('vote');
my $comment = param('comment');
my $username = param('username');
my $forum = param('forum');
my $thread = param('thread');
#get forum details
my @this_forum = &GetForumRecord($forum);
# determine exact path & check permission if necessary
my $permission = $this_forum[6];
my $exact_path = "Forum$forum";
##line 172## if ($permission ~= m/private/) { $exact_path .= "/private-$this_forum[7]";
}
&RequireVars("$vars_config{NonCGIPath}/$exact_path/$thread.poll");
unless ($vote) {
&StandardHTML("$vars_wordlets_polls{ipolls_option_error}");
}
if ($username eq "") {
&StandardHTML(qq!$vars_wordlets_err{not_logged_in}
$vars_wordlets{login_now}!);
}
my @voters = split(/||/, $poll_data{voters});
foreach my $voter (@voters) {
if ($voter eq $username) {
&StandardHTML("$vars_wordlets_polls{ipolls_already_voted_error}");
}
} # end foreach
$poll_data{voters} .= "$username||";
foreach my $key (keys %poll_data) {
if ($key =~ /choice_/) {
@choice = split (/||/, $poll_data{$key});
if ($vote eq $choice[0]) {
$new_total = $choice[1] + 1;
$poll_data{$key} = "$choice[0]||$new_total";
}
}
}
if ($comment) {
$poll_data{comment_total} = $poll_data{comment_total} + 1;
$comment_num = "comment_$poll_data{comment_total}";
$poll_data{$comment_num} = "$username||$vote||$comment";
}
$poll_data{total_votes} = $poll_data{total_votes} + 1;
&WriteHashToFile("$vars_config{NonCGIPath}/$exact_path/$thread.poll", "poll_data", %poll_data);
# take viewer back to topic
my $forum = param('forum');
my $topic = param('thread');
# grab topic
my @this_topic = &OpenTopic($topic, $forum);
# grab topic stat line
my @stat_line = split(/||/, $this_topic[0]);
do "$vars_config{NonCGIPath}/styles/vars_style_$template_match{transition}.cgi";
&set_page_elements;
&Transition("$vars_config{CGIURL}/ultimatebb.cgi?ubb=get_topic&f=$forum&t=$topic", "$vars_wordlets_polls{ipolls_thanks_voting}", "$stat_line[4]");
} ## end do_vote sub #######line 226######
i hope this can help to identify the problem
cheers