Previous Thread
Next Thread
Print Thread
Rate Thread
#260102 10/07/2003 12:29 AM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Mod Name / Version: Remove Traces 2.0

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.

Working Under: UBB.Threads 6.4

Mod Status: Beta

Any pre-requisites: None

Author(s): JoshPet

Date: 10/06/03

Credits: coy7 for commissioning it.

Files Altered: modifypost.php, deletepost.php, modifypost_delete.tmpl, editpost.tmpl

New Files: none

Database Altered: none

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.


Attachments
96478-RemoveTraces2.0.txt (0 Bytes, 137 downloads)

Sponsored Links
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3


Excellent Josh, this one is mucho needed


- Allen wavey
- What Drives You?
Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
WooHoo! This one is indeed mucho needed. I have it up and running smoothly on my copy of 6.4br1!

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
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?

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Yes, I think the template was editpost_nopoll.tmpl

I don't think there are any other changes.... but these instructions worked on 6.3.

Sponsored Links
Joined: Jul 2001
Posts: 1,157
Likes: 82
coffee and code
coffee and code
Joined: Jul 2001
Posts: 1,157
Likes: 82
works just fine in 6.2 as well...

like josh stated, instead of using 'editpost.tmpl', modify both 'editpost_nopoll.tmpl' and 'editpost_poll.tmpl'.

got it running just fine on my 6.2.3 setup - thanks JP!


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com
Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
Hmm did it to nopoll should do it to poll also?

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Yes, you could.

Joined: Jan 2003
Posts: 141
Journeyman
Journeyman
Offline
Joined: Jan 2003
Posts: 141
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)){

Joined: Sep 2003
Posts: 488
Code Monkey
Code Monkey
Joined: Sep 2003
Posts: 488
Like this...

if (($user['U_Status'] == "Administrator") || ($user['U_Status'] == "Moderator") && ($Number != $Main)){

Sponsored Links
Joined: Jan 2003
Posts: 141
Journeyman
Journeyman
Offline
Joined: Jan 2003
Posts: 141
Thanks Twisty, worked like a charm.

Joined: Sep 2003
Posts: 488
Code Monkey
Code Monkey
Joined: Sep 2003
Posts: 488
Your welcome

Joined: Jan 2003
Posts: 263
Member
Member
Joined: Jan 2003
Posts: 263
Somehow it's not working for my 6.4.1 version.
There's a small difference in modifypost.php:
[]list($tbopen,$tbclose) = $html -> table_wrapper();
[/]

This piece of code is new, but I don't know if that's the cause.

Last edited by Pasqualist; 01/11/2004 7:37 AM.
Joined: Apr 2001
Posts: 3,266
Member
Member
Offline
Joined: Apr 2001
Posts: 3,266
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();
}

Joined: Dec 2002
Posts: 67
Power User
Power User
Joined: Dec 2002
Posts: 67
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.

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
yeah it's the same instructions.. he never updated the version number only the instructions themself.

Joined: Mar 2003
Posts: 159
Member
Member
Joined: Mar 2003
Posts: 159
Would this work for 6.5 ?

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
yes


Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
AllenAyres
AllenAyres
Texas
Posts: 21,079
Joined: March 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)