Description: This modification allows you to delete individual posts without leaving behind the "DELETED BY" placeholder, which is normally left behind if you delete a post which has replies. What it does is assign any replies to the deleted post to the Main (first) post in a thread. When deleting a post, you have a checkbox option to "remove all traces" and reassign any of the replies.
Info/Instructions: NOTE: This may not make as much sense in threaded view... but if you MUST remove a post without the "deleted by tag" (for example doing some board clean up) it's a way to do it without having to delete the replies first. Since it's an option when you delete a post, it could easily be a feature of Threads, as many people ask how to avoid the placeholder.
Version 2.0 - Simply an instruction update for UBB.threads version 6.4.
Disclaimer: Please backup every file that you intend to modify. If the modification modifies the database, it's a good idea to backup your database before doing so.
Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.
is this backwards compatible with 6.3? cause 6.3 has no editpost.tmpl it does have a editpost_nopoll.tmpl and a editpost_withpoll.tmpl with these values?
I'd like for the moderators to be able to do this also. Is this line in modifypost php the only one that would have to be changed? If so, how exactly should it be typed?
if (($user['U_Status'] == "Administrator") && ($Number != $Main)){
The table wrapper code is new with 6.4.1 cause it needs to be before the template calls as this was a bug reported in 6.4 but that should not cause any problem.
Here is how the new instructions should look
### ### Open modifypost.php ###
# # Find this: #
// -------------------- // Send them their page $html -> send_header($ubbt_lang['PEDIT_DELETE'],$Cat,0,$user); list($tbopen,$tbclose) = $html -> table_wrapper(); if (!$debug) { include("$thispath/templates/$tempstyle/modifypost_delete.tmpl"); } $html -> send_footer(); exit(); }
# # Change to this: #
// -------------------- // Send them their page $html -> send_header($ubbt_lang['PEDIT_DELETE'],$Cat,0,$user); //----- Remove all traces by JoshPet if (($user['U_Status'] == "Administrator") && ($Number != $Main)){ $reassignbox = "<br /><input type="checkbox" checked="checked" name="reassign" value="reassign" border="0"> Remove all traces of this post? (This reassigns any replies to this post to the first post in the thread.)<br />"; } else { $reassignbox = ""; } // ----- end of remove all traces list($tbopen,$tbclose) = $html -> table_wrapper(); if (!$debug) { include("$thispath/templates/$tempstyle/modifypost_delete.tmpl"); } $html -> send_footer(); exit(); }
Does it matter that when I click on the attachment link, "Romeove Traces 1.0" comes up, even though the thread is for version 2.0? I installed 1.0 and nothing happened.
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.