Gossamer Forum
Home : Products : Gossamer Forum : Development, Plugins and Globals :

Admin remove user deleted post

Quote Reply
Admin remove user deleted post
I noticed that the Delete, Reply, etc was not available when a user deletes a post.

To allow admin to remove the user deleted post from the thread do the following in include_post_display.html


Find:

Code:
<%if post_root_id%>
<br>
Post:
<a href="gforum.cgi?do=post_detach_select;redo=<%this_do%>;so=<%so%>;sb=<%sb%>;post_id=<%post_id%>;<%hidden_query%>">Detach & Move</a>
<%endif%>


and replace it with:

Code:
<br>
Post:
<a href="gforum.cgi?do=post_delete_confirm;post=<%post_id%>">Delete</a>
<%if post_root_id%>
- <a href="gforum.cgi?do=post_detach_select;redo=<%this_do%>;so=<%so%>;sb=<%sb%>;post_id=<%post_id%>;<%hidden_query%>">Detach & Move</a>
<%endif%>


This then adds a Delete link before Detach & Move

Last edited by:

MJB: Jun 4, 2006, 10:45 AM
Subject Author Views Date
Post Admin remove user deleted post MJB 1427 Jun 4, 2006, 10:44 AM