<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Module: Self-Delete Posts Option</title>
        <description> This module allows authors to &amp;quot;delete&amp;quot; their own posts, which are then hidden until a moderator fully deletes them or (if enabled) a cronjob fully deletes them after a set number of days.

By default, only thread-starting posts without any replies can be deleted.  The admin can allow replies and posts with replies to be deleted from the module&amp;#039;s settings page.

Template Customization:
In order to display the &amp;quot;Delete&amp;quot; link you must make the following template edit to your template&amp;#039;s read.tpl, read_thread.tpl, and read_hybrid.tpl files.  Wherever you want the link to appear, add these lines:
{IF MODERATOR false}
    {IF MESSAGES-&amp;gt;URL-&amp;gt;SELF_DELETE_POST}
        {MESSAGES-&amp;gt;URL-&amp;gt;SELF_DELETE_POST}
    {/IF}
{/IF}

Using a Cronjob to Fully Delete Posts:
If you would like to use a cronjob to fully delete posts a set number of days after they have been deleted you will need to complete two steps:

First, you must add a cronjob to call the Phorum &amp;quot;scheduled&amp;quot; hook from the Phorum script.php file.  I would recommend that this cronjob run every hour.  The module will handle any time-outs or errors which otherwise could cause the cronjob to run two instances of this module.  This is one example cronjob:
0 * * * * cd your/phorum/root &amp;amp;&amp;amp; /usr/bin/php ./script.php --scheduled

There should be no output from this script unless there is an error.  If possible I would also advise that you have the output from this script either logged or emailed.

Second, you must enable the cronjob option from this module&amp;#039;s settings page and then choose the number of days to wait after an author deletes their own post before fully deleting the post.

Todo:

- Add features as they are requested.</description>
        <link>https://www.phorum.org/support/read.php?62,143564,143564#msg-143564</link>
        <lastBuildDate>Wed, 22 Jul 2026 02:32:50 -0500</lastBuildDate>
        <generator>Phorum 6.0.4</generator>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,143564,146228#msg-146228</guid>
            <title>Re: Module: Self-Delete Posts Option</title>
            <link>https://www.phorum.org/support/read.php?62,143564,146228#msg-146228</link>
            <description><![CDATA[ Thank you, now everything is complete.<br />
<br />
masei1202]]></description>
            <dc:creator>masei1202</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Tue, 12 Oct 2010 06:05:40 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,143564,146227#msg-146227</guid>
            <title>Re: Module: Self-Delete Posts Option</title>
            <link>https://www.phorum.org/support/read.php?62,143564,146227#msg-146227</link>
            <description><![CDATA[ Check that you are using the exact same file name in mods/&lt;module&gt;/lang/&lt;language&gt;.php as the file in include/lang/&lt;language&gt;.php. Phorum matches the languages based on the filename of the translation PHP-file.<br />
<br />
If your main translation is include/lang/german.php, then the translation for this module must be in mods/self_delete_posts/lang/german.php]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Tue, 12 Oct 2010 05:43:47 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,143564,146226#msg-146226</guid>
            <title>Re: Module: Self-Delete Posts Option</title>
            <link>https://www.phorum.org/support/read.php?62,143564,146226#msg-146226</link>
            <description><![CDATA[ A very small question I would have. We use two language files in the Forum. (German_du and English). In the MOD self_delete_posts exists only one language file (english.php). I write a second to the MOD does not work. How do I put the MOD provides both languages?<br />
<br />
thanx]]></description>
            <dc:creator>masei1202</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Tue, 12 Oct 2010 05:41:12 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,143564,146225#msg-146225</guid>
            <title>Re: Module: Self-Delete Posts Option</title>
            <link>https://www.phorum.org/support/read.php?62,143564,146225#msg-146225</link>
            <description><![CDATA[ Yes, you can remove the link and picture. Great that you got it to work now.<br />
<br />
If you want to support our work, then feel free to <a href="http://www.phorum.org/donate/donate.php" target="_blank" >make a donation</a>.]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Tue, 12 Oct 2010 05:02:05 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,143564,146224#msg-146224</guid>
            <title>Re: Module: Self-Delete Posts Option</title>
            <link>https://www.phorum.org/support/read.php?62,143564,146224#msg-146224</link>
            <description><![CDATA[ YESSSSSSSS :) it work!<br />
<br />
have many thanks. <br />
how I can support your work? Donation?<br />
<br />
Greetings<br />
masei1202<br />
<br />
p.s. Can I remove the link (server) and the picture again?]]></description>
            <dc:creator>masei1202</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Tue, 12 Oct 2010 04:59:32 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,143564,146223#msg-146223</guid>
            <title>Re: Module: Self-Delete Posts Option</title>
            <link>https://www.phorum.org/support/read.php?62,143564,146223#msg-146223</link>
            <description><![CDATA[ Repeat of a previous comment: Also beware that you use the correct message variables. Within the read_threads.tpl file, you must use MESSAGE instead of MESSAGES, because you are viewing a single message there, not an array of messages.<br />
<br />
I think you missed out on this one. Based on your comments, I think that you are using MESSAGES not MESSAGE in your added code.]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Tue, 12 Oct 2010 04:41:21 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,143564,146222#msg-146222</guid>
            <title>Re: Module: Self-Delete Posts Option</title>
            <link>https://www.phorum.org/support/read.php?62,143564,146222#msg-146222</link>
            <description><![CDATA[ was my fault, an open TAG. Ok, I can write it anywhere. But it is not a link &quot;delete&quot;<br />
<br />
thanx]]></description>
            <dc:creator>masei1202</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Tue, 12 Oct 2010 04:15:52 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,143564,146221#msg-146221</guid>
            <title>Re: Module: Self-Delete Posts Option</title>
            <link>https://www.phorum.org/support/read.php?62,143564,146221#msg-146221</link>
            <description><![CDATA[ Can you provide a screen shot of what you mean with the breaking page? The code can be put anywhere you like it to be in the template, so there&#039;s no dedicated line number for that.]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Tue, 12 Oct 2010 03:34:53 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,143564,146220#msg-146220</guid>
            <title>Re: Module: Self-Delete Posts Option</title>
            <link>https://www.phorum.org/support/read.php?62,143564,146220#msg-146220</link>
            <description><![CDATA[ Hello,<br />
The correct file is read_threads.tpl  in /mods /treeview /templates /lightweigt<br />
Which line (number) must write the code?<br />
[code=&quot;php&quot;]<br />
{IF MODERATOR false}<br />
    {IF MESSAGES-&gt;URL-&gt;SELF_DELETE_POST}<br />
        {MESSAGES-&gt;URL-&gt;SELF_DELETE_POST}<br />
    {/IF}<br />
{/IF}<br />
[/code]<br />
I would like him to write line 62:<br />
[code=&quot;php&quot;]<br />
{IF MESSAGE-&gt;URL-&gt;REPORT}&amp;raquo; &lt;a class=&quot;icon&quot; href=&quot;{MESSAGE-&gt;URL-&gt;REPORT}&quot;&gt;{LANG-&gt;Report}&lt;/a&gt;{/IF}<br />
[/code]<br />
that does not work. This breaks the page.<br />
Can you help me again?<br />
<br />
Thanks a million]]></description>
            <dc:creator>masei1202</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Tue, 12 Oct 2010 03:32:41 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,143564,146207#msg-146207</guid>
            <title>Re: Module: Self-Delete Posts Option</title>
            <link>https://www.phorum.org/support/read.php?62,143564,146207#msg-146207</link>
            <description><![CDATA[ Well, start out with editing something unconditional. So just add &quot;WAAAAH!!!&quot; or something to the template that you think that you are viewing. If you are editing the correct template, then the &quot;WAAAAH!!!&quot; will show up in the browser. If you edit the wrong template, it will not.<br />
<br />
Also beware that you use the correct message variables. Within the read_threads.tpl file, you must use MESSAGE instead of MESSAGES, because you are viewing a single message there, not an array of messages.]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Mon, 11 Oct 2010 13:52:24 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,143564,146206#msg-146206</guid>
            <title>Re: Module: Self-Delete Posts Option</title>
            <link>https://www.phorum.org/support/read.php?62,143564,146206#msg-146206</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>The treeview mod provides its own set of templates for the read page, so you will have to edit the template files within that module&#039;s directory (mods/treeview/templates/emerald/*).</strong><br />
</div></blockquote>
This has no effect. I&#039;ve edited both files in that folder in turn.<br />
Too bad. I want to use this tool.<br />
<br />
thanx<br />
masei1202]]></description>
            <dc:creator>masei1202</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Mon, 11 Oct 2010 13:44:04 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,143564,146203#msg-146203</guid>
            <title>Re: Module: Self-Delete Posts Option</title>
            <link>https://www.phorum.org/support/read.php?62,143564,146203#msg-146203</link>
            <description><![CDATA[ The treeview mod provides its own set of templates for the read page, so you will have to edit the template files within that module&#039;s directory (mods/treeview/templates/emerald/*).<br />
<br />
Also note that directly editing an existing template is a bad idea, because you might accidentally overwrite existing template files on upgrade. It&#039;s better to copy an existing template like lightweight to a new directory and update the info.php in the new directory to give your template a different name. Then select that new template in the forum settings instead of lightweight.<br />
<br />
See also the installation docs on this site and those in the distribution (docs/creating_templates.txt).]]></description>
            <dc:creator>Maurice Makaay</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Mon, 11 Oct 2010 11:44:53 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,143564,146202#msg-146202</guid>
            <title>Re: Module: Self-Delete Posts Option</title>
            <link>https://www.phorum.org/support/read.php?62,143564,146202#msg-146202</link>
            <description><![CDATA[ Hi,<br />
we use template lightweight and threadview + mod treeview. Phorum 5.2.15a<br />
in which file I am doing the code:<br />
[code=&quot;php&quot;]<br />
{IF MODERATOR false}<br />
    {IF MESSAGES-&gt;URL-&gt;SELF_DELETE_POST}<br />
        {MESSAGES-&gt;URL-&gt;SELF_DELETE_POST}<br />
    {/IF}<br />
{/IF}<br />
[/code]<br />
I do it in the file: read.tpl, read_thread.tpl, and read_hybrid.tpl  from template  /phorum/templates/lightweight/   but the delete button does not appear. in the admin-panel =&gt; Modules =&gt;Self-Delete Posts Option is only set  &quot;Allow Authors to self-delete their own replies&quot;<br />
the Module is check &quot;on&quot;.<br />
<br />
what am I doing wrong?<br />
<br />
thanx masei1202]]></description>
            <dc:creator>masei1202</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Mon, 11 Oct 2010 11:39:21 -0500</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,143564,143575#msg-143575</guid>
            <title>Module: Self-Delete Posts Option v5.2.1.01 - Option to allow users to delete their own replies</title>
            <link>https://www.phorum.org/support/read.php?62,143564,143575#msg-143575</link>
            <description><![CDATA[ I have completed v5.2.1.01 of this module with the following change:<br />
<br />
- Enhancement: Added the option for users to delete their own replies to other messages.  Thanks go to Phorum user Robert Angle for pointing out the need for this feature.]]></description>
            <dc:creator>Joe Curia</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Sat, 13 Mar 2010 21:50:11 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,143564,143569#msg-143569</guid>
            <title>Re: Module: Self-Delete Post Option for Thread-Starting Authors</title>
            <link>https://www.phorum.org/support/read.php?62,143564,143569#msg-143569</link>
            <description><![CDATA[ I believe in giving admins all the power, so yes I will build in your feature request, and yes, if the admin chooses to allow post authors to delete their own messages to which replies have been made, those replies will also be deleted, but only if the admin allows it.  By default, only posts without replies can be deleted.]]></description>
            <dc:creator>Joe Curia</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Sat, 13 Mar 2010 08:06:10 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,143564,143568#msg-143568</guid>
            <title>Re: Module: Self-Delete Post Option for Thread-Starting Authors</title>
            <link>https://www.phorum.org/support/read.php?62,143564,143568#msg-143568</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>Joe Curia</strong><br />
If allowing an author to delete his reply to another post is something you would want, I will need to build that option into the module.</div></blockquote>
<br />
I think that would be useful. A topic/thread starter usually has premeditated the things he has decided to put up for discussion, but a reply can be posted without much thought. I have had users post an emotionally charged reply and then send me a PM begging for me to delete it before the other poster comes to the board and sees it.<br />
<br />
So the option to self-delete a reply before others have replied to their reply would be nice!<br />
<br />
<blockquote class="bbcode"><div><small>Quote<br /></small><strong></strong><br />
If so, it would follow the same rules as a thread-starter.  If the admin allows deleting a post to which others have replied, then even the authors of Replies #1 and #4 in your example would be allowed to delete their posts.</div></blockquote>
<br />
Does this mean that if he deletes his post, the replies get deleted too? Or just his post? I do not plan on enabling this if a user can delete a whole string of replies just because he was the topic starter.]]></description>
            <dc:creator>Robert Angle</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Sat, 13 Mar 2010 07:32:39 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,143564,143567#msg-143567</guid>
            <title>Re: Module: Self-Delete Post Option for Thread-Starting Authors</title>
            <link>https://www.phorum.org/support/read.php?62,143564,143567#msg-143567</link>
            <description><![CDATA[ Nope, at least not right now.  Only the <b>thread-starting</b> author can delete the thread.  If that is still confusing, replace &quot;thread&quot; with &quot;topic&quot; and that might help.  If allowing an author to delete his reply to another post is something you would want, I will need to build that option into the module.  If so, it would follow the same rules as a thread-starter.  If the admin allows deleting a post to which others have replied, then even the authors of Replies #1 and #4 in your example would be allowed to delete their posts.]]></description>
            <dc:creator>Joe Curia</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Sat, 13 Mar 2010 07:17:52 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,143564,143566#msg-143566</guid>
            <title>Re: Module: Self-Delete Post Option for Thread-Starting Authors</title>
            <link>https://www.phorum.org/support/read.php?62,143564,143566#msg-143566</link>
            <description><![CDATA[ Does this mean that a user can delete his reply to another persons topic, or that he can delete his topic that he started only?<br />
<br />
For example...<br />
<br />
<span style="color:#0000FF">Topic<br />
..... Reply #1<br />
..........Reply#2<br />
.....Reply#3<br />
.....Reply#4<br />
..........Reply#5</span><br />
<br />
Can the person who posted Reply #2,3, &amp; 5 delete their posts before someone replies to it?]]></description>
            <dc:creator>Robert Angle</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Sat, 13 Mar 2010 06:38:57 -0600</pubDate>
        </item>
        <item>
            <guid>https://www.phorum.org/support/read.php?62,143564,143564#msg-143564</guid>
            <title>Module: Self-Delete Posts Option</title>
            <link>https://www.phorum.org/support/read.php?62,143564,143564#msg-143564</link>
            <description><![CDATA[ This module allows authors to &quot;delete&quot; their own posts, which are then hidden until a moderator fully deletes them or (if enabled) a cronjob fully deletes them after a set number of days.<br />
<br />
By default, only thread-starting posts without any replies can be deleted.  The admin can allow replies and posts with replies to be deleted from the module&#039;s settings page.<br />
<br />
<b>Template Customization:</b><br />
In order to display the &quot;Delete&quot; link you must make the following template edit to your template&#039;s read.tpl, read_thread.tpl, and read_hybrid.tpl files.  Wherever you want the link to appear, add these lines:<pre class="bbcode">
{IF MODERATOR false}
    {IF MESSAGES-&gt;URL-&gt;SELF_DELETE_POST}
        {MESSAGES-&gt;URL-&gt;SELF_DELETE_POST}
    {/IF}
{/IF}</pre>
<br />
<b>Using a Cronjob to Fully Delete Posts:</b><br />
If you would like to use a cronjob to fully delete posts a set number of days after they have been deleted you will need to complete two steps:<br />
<br />
First, you must add a cronjob to call the Phorum &quot;scheduled&quot; hook from the Phorum script.php file.  I would recommend that this cronjob run every hour.  The module will handle any time-outs or errors which otherwise could cause the cronjob to run two instances of this module.  This is one example cronjob:<pre class="bbcode">
0 * * * * cd your/phorum/root &amp;&amp; /usr/bin/php ./script.php --scheduled</pre>
<br />
There should be no output from this script unless there is an error.  If possible I would also advise that you have the output from this script either logged or emailed.<br />
<br />
Second, you must enable the cronjob option from this module&#039;s settings page and then choose the number of days to wait after an author deletes their own post before fully deleting the post.<br />
<br />
<b>Todo:</b><br />
<br />
- Add features as they are requested.]]></description>
            <dc:creator>Joe Curia</dc:creator>
            <category>v5/v6 Modules/Add-Ons</category>
            <pubDate>Fri, 12 Mar 2010 21:14:06 -0600</pubDate>
        </item>
    </channel>
</rss>
