I'm working to revive an old CMS and the current way of deleting posts in a forum thread is to select them via checkbox and then click delete. I'd like to avoid the numerous amounts of click and just have the user click "delete" on a single post and have that post be deleted.
It uses Smarty templating so this function is a bit convoluted.
<input type="checkbox" name="delcomm[]" value="{$posts[p].id}" style="width: auto; height: auto" /> <span style="font-size: 12px;">{t k="tpl_comments_delmark"}</span>
{t k="tpl_comments_delmark"}
simply displays text that says "delete", dont worry about that. It passes $posts[p].id to the form and then deletes. I thought of simply making a link using $posts[p] but it doesnt seem to work:
<a href="{link url="forum/moderate/`{$posts[p].id}`/delete_replies"}">Delete</a>
For reference, once the user click "delete" in the normal checkbox way, the user is redirected to a confirmation page and in the url, you see /forum/moderate/[postnumber]/delete_replies (without []'s)
Any help?