# Cute news

**URL:** <https://forum.kirupa.com/t/cute-news/185925>\
**Category:** Uncategorized\
**Created:** [April 17, 2006, 7:09pm UTC](https://forum.kirupa.com/t/cute-news/185925 "2006-04-17T19:09:59Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![ofi](https://avatars.discourse-cdn.com/v4/letter/o/df788c/32.png) [@ofi](https://forum.kirupa.com/u/ofi)\
**Post date:** [April 17, 2006, 7:09pm UTC](https://forum.kirupa.com/t/cute-news/185925/1 "2006-04-17T19:09:59Z")

</div>

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

\*\*

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

```

any idea why this is

---

<div class="post-metadata">

**Author:** ![hl1](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/hl1/32/849_2.png) [@hl1](https://forum.kirupa.com/u/hl1)\
**Post date:** [April 17, 2006, 7:12pm UTC](https://forum.kirupa.com/t/cute-news/185925/2 "2006-04-17T19:12:07Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ofi](https://avatars.discourse-cdn.com/v4/letter/o/df788c/32.png) [@ofi](https://forum.kirupa.com/u/ofi)\
**Post date:** [April 17, 2006, 7:14pm UTC](https://forum.kirupa.com/t/cute-news/185925/3 "2006-04-17T19:14:25Z")

</div>

Line 132 - 141

```auto
        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);

```

---

<div class="post-metadata">

**Author:** ![ofi](https://avatars.discourse-cdn.com/v4/letter/o/df788c/32.png) [@ofi](https://forum.kirupa.com/u/ofi)\
**Post date:** [April 17, 2006, 7:16pm UTC](https://forum.kirupa.com/t/cute-news/185925/4 "2006-04-17T19:16:46Z")

</div>

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&](http://undirskriftir.com/index.php?subaction=showcomments&id=1145193252&archive=&start_from=&ucat=3&)

---

<div class="post-metadata">

**Author:** ![hl1](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/hl1/32/849_2.png) [@hl1](https://forum.kirupa.com/u/hl1)\
**Post date:** [April 17, 2006, 7:26pm UTC](https://forum.kirupa.com/t/cute-news/185925/5 "2006-04-17T19:26:10Z")

</div>

```php
 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);

```

---

<div class="post-metadata">

**Author:** ![ofi](https://avatars.discourse-cdn.com/v4/letter/o/df788c/32.png) [@ofi](https://forum.kirupa.com/u/ofi)\
**Post date:** [April 17, 2006, 8:08pm UTC](https://forum.kirupa.com/t/cute-news/185925/6 "2006-04-17T20:08:28Z")

</div>

thx, working great

---

<div class="post-metadata">

**Author:** ![ofi](https://avatars.discourse-cdn.com/v4/letter/o/df788c/32.png) [@ofi](https://forum.kirupa.com/u/ofi)\
**Post date:** [April 18, 2006, 8:01pm UTC](https://forum.kirupa.com/t/cute-news/185925/7 "2006-04-18T20:01:38Z")

</div>

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

**Line 616**

```php
    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”

---

<div class="post-metadata">

**Author:** ![hl1](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/hl1/32/849_2.png) [@hl1](https://forum.kirupa.com/u/hl1)\
**Post date:** [April 18, 2006, 8:08pm UTC](https://forum.kirupa.com/t/cute-news/185925/8 "2006-04-18T20:08:02Z")

</div>

Look for the $template\_form.

---

<div class="post-metadata">

**Author:** ![ofi](https://avatars.discourse-cdn.com/v4/letter/o/df788c/32.png) [@ofi](https://forum.kirupa.com/u/ofi)\
**Post date:** [April 18, 2006, 8:24pm UTC](https://forum.kirupa.com/t/cute-news/185925/9 "2006-04-18T20:24:03Z")

</div>

Hi  
I found in this file this  
Line 592

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

```

Line 614

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

```

and in line 616

---

<div class="post-metadata">

**Author:** ![hl1](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/hl1/32/849_2.png) [@hl1](https://forum.kirupa.com/u/hl1)\
**Post date:** [April 18, 2006, 8:27pm UTC](https://forum.kirupa.com/t/cute-news/185925/10 "2006-04-18T20:27:13Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ofi](https://avatars.discourse-cdn.com/v4/letter/o/df788c/32.png) [@ofi](https://forum.kirupa.com/u/ofi)\
**Post date:** [April 18, 2006, 8:34pm UTC](https://forum.kirupa.com/t/cute-news/185925/11 "2006-04-18T20:34:04Z")

</div>

[http://www.koddinn.com/shows.inc.rar](http://www.koddinn.com/shows.inc.rar)

thank you

---

<div class="post-metadata">

**Author:** ![hl1](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/hl1/32/849_2.png) [@hl1](https://forum.kirupa.com/u/hl1)\
**Post date:** [April 18, 2006, 8:44pm UTC](https://forum.kirupa.com/t/cute-news/185925/12 "2006-04-18T20:44:30Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![ofi](https://avatars.discourse-cdn.com/v4/letter/o/df788c/32.png) [@ofi](https://forum.kirupa.com/u/ofi)\
**Post date:** [April 18, 2006, 8:52pm UTC](https://forum.kirupa.com/t/cute-news/185925/13 "2006-04-18T20:52:36Z")

</div>

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]

---

<div class="post-metadata">

**Author:** ![ofi](https://avatars.discourse-cdn.com/v4/letter/o/df788c/32.png) [@ofi](https://forum.kirupa.com/u/ofi)\
**Post date:** [April 18, 2006, 8:55pm UTC](https://forum.kirupa.com/t/cute-news/185925/14 "2006-04-18T20:55:52Z")

</div>

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