Cute news

Hi
i am using cutenews, when i try to edit user comment, i get this error

Parse error: parse error, unexpected ‘;’ in /var/www/localhost/htdocs/undirskrif/news/inc/editcomments.mdu on line **135

**

line 135
if($idnumber == "" and !$deletecomment)( $idnumber = "Idnumber"; )

any idea why this is

Show line 134.
edit:/
Wait wait… that second set of perentheces is supposed to be brackets.

Line 132 - 141

        if(!$poster and !$deletecomment){ echo"<br /><br><br />The poster can not be blank !!!"; exit(); }
    if($mail == "" and !$deletecomment){ $mail = "none"; }
    if($poster == "" and !$deletecomment){ $poster = "Anonymous"; }
    if($idnumber == "" and !$deletecomment)( $idnumber = "Idnumber"; )
    if($home == "" and !$deletecomment)( $home = "Home"; )
    if($place == "" and !$deletcomment)( $palce = "place"; )
    if($comment == "" and !$deletecomment){ die("comment can not be blank"); }

    $comment = str_replace("
","<br />",$comment);
    $comment = str_replace("|","I",$comment);

sorry, I forgot to tell, that i am trying to add in more feilds, see link
http://undirskriftir.com/index.php?subaction=showcomments&id=1145193252&archive=&start_from=&ucat=3&

 if(!$poster and !$deletecomment){ echo"<br /><br><br />The poster can not be blank !!!"; exit(); }
    if($mail == "" and !$deletecomment){ $mail = "none"; }
    if($poster == "" and !$deletecomment){ $poster = "Anonymous"; }
    if($idnumber == "" and !$deletecomment){ $idnumber = "Idnumber";}    if($home == "" and !$deletecomment){ $home = "Home"; }
    if($place == "" and !$deletcomment){ $place = "place"; }
    if($comment == "" and !$deletecomment){ die("comment can not be blank"); }

    $comment = str_replace("
","<br />",$comment);
    $comment = str_replace("|","I",$comment);

thx, working great

Still working on this, i am wondering about [U]show.inc.php in line 616[/U] does that line close it

Line 616

    echo"<form  $CN_remember_form  method=\"post\" name=\"comment\" id=\"comment\" action=\"\">".$template_form."<div><input type=\"hidden\" name=\"subaction\" value=\"addcomment\" /><input type=\"hidden\" name=\"ucat\" value=\"$ucat\" /><input type=\"hidden\" name=\"show\" value=\"$show\" />$user_post_query</div></form>
                    
 $CN_remember_include";

now i have add in more feilds, how do i add the “new feilds” in this line, if its right line to add in.

“sorry my English”

Look for the $template_form.

Hi
I found in this file this
Line 592

$template_form = str_replace("{config_http_script_dir}", "$config_http_script_dir", $template_form);

Line 614

$template_form = str_replace("{smilies}", $smilies_form, $template_form);

and in line 616

There’s nothing before that? Send me the file… it’s probably in an include.

http://www.koddinn.com/shows.inc.rar

thank you

Isn’t there a folder of templates in cutenews? There should be something like comment_form in there. I haven’t used cutenews in a while, so I may be wrong.

edit:/ In fact! Aren’t templates editable from the admin panel?

yes it is editable from the admin panel, foder called skins, there is included [U]compact.skin.php
defaullt.skin.php
simple.skin.php

[/U]

There is no errors showing up, i am just not sure “how” to connect the new feilds together