I`m no coder.. is there a cleaner way than this?

viewtopic.php

FIND:

$post_actions[] = '<li class="postreport"><a href="misc.php?report='.$cur_post['id'].'">'.$lang_topic['Report'].'</a>';

REPLACE WITH:

$post_actions[] = '';

FIND:

$post_actions[] = '<li class="postreport"><a href="misc.php?report='.$cur_post['id'].'">'.$lang_topic['Report'].'</a>'.$lang_topic['Link separator'].'</li><li class="postdelete"><a href="delete.php?id='.$cur_post['id'].'">'.$lang_topic['Delete'].'</a>'.$lang_topic['Link separator'].'</li><li class="postedit"><a href="edit.php?id='.$cur_post['id'].'">'.$lang_topic['Edit'].'</a>'.$lang_topic['Link separator'].'</li><li class="postquote"><a href="post.php?tid='.$id.'&qid='.$cur_post['id'].'">'.$lang_topic['Quote'].'</a>';

REPLACE WITH:

$post_actions[] = '<li class="postdelete"><a href="delete.php?id='.$cur_post['id'].'">'.$lang_topic['Delete'].'</a>'.$lang_topic['Link separator'].'</li><li class="postedit"><a href="edit.php?id='.$cur_post['id'].'">'.$lang_topic['Edit'].'</a>'.$lang_topic['Link separator'].'</li><li class="postquote"><a href="post.php?tid='.$id.'&qid='.$cur_post['id'].'">'.$lang_topic['Quote'].'</a>';

FIND:

<div class="postfootright"><?php echo (count($post_actions)) ? '<ul>'.implode($lang_topic['Link separator'].'</li>', $post_actions).'</li></ul></div>'."\n" : '<div> </div></div>'."\n" ?>

REPLACE WITH:

<div class="postfootright"><?php echo (count($post_actions)) ? '<ul>'.implode($post_actions).'</li></ul></div>'."\n" : '<div> </div></div>'."\n" ?>

TIA

Ah, false alarm. I thought if that was checked it would remove the line alltogether. Thinking about it I prefer that it`s just not updated instead of removed altogether. Sorry bout that.

Fix confirmed and second one came to me.. silent edit isn`t silent.

Good job.

Ah ok 1.2 it is then, do you know of a theme that resembles 1.3 by any chance?

One of the options is "Add a quick post form at the foot of topics." Un-check it click save changes, it`s checked again and not disabled. Can`t remember what the second one was will have a look.

Thanks!

EDIT
can`t remember the other one, will get back to you if it comes to me.

EDIT2
That was it.. Silent edit isn`t silent.

Hello!

First can I just say, where has PunBB been all my life? :blush: Seriously, compliant, small, fast, bloat free.. everything I`ve seen thus far is all good.

Just one gripe, which version to go for? 1.2 is good but 1.3 looks a lot better.

I have both installed in wamp and 1.3 does have a few options in the acp that when disabled actually stay enabled, but it`s not crashing and blowing up my box or anything...

So is 1.3 strictly for a dev box or is it safe to throw on a live server and use it as my main forum?

Thanks in advance and keep up the good work on this gem smile