ofi
April 17, 2006, 7:09pm
1
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
hl1
April 17, 2006, 7:12pm
2
Show line 134.
edit:/
Wait wait… that second set of perentheces is supposed to be brackets.
ofi
April 17, 2006, 7:14pm
3
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);
ofi
April 17, 2006, 7:16pm
4
hl1
April 17, 2006, 7:26pm
5
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);
ofi
April 18, 2006, 8:01pm
7
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”
hl1
April 18, 2006, 8:08pm
8
Look for the $template_form.
ofi
April 18, 2006, 8:24pm
9
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
hl1
April 18, 2006, 8:27pm
10
There’s nothing before that? Send me the file… it’s probably in an include.
ofi
April 18, 2006, 8:34pm
11
hl1
April 18, 2006, 8:44pm
12
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?
ofi
April 18, 2006, 8:52pm
13
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]
ofi
April 18, 2006, 8:55pm
14
There is no errors showing up, i am just not sure “how” to connect the new feilds together