smellyrat / drydock

Automatically exported from code.google.com/p/drydock
0 stars 0 forks source link

Post deletion by user #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Post deletion by user (i.e. steal code from Wakaba to make this work) - I
think Thorn had the beginnings of this but I think I took it out because it
didnt work

Original issue reported on code.google.com by TaQS...@gmail.com on 22 Sep 2008 at 5:22

GoogleCodeExporter commented 9 years ago

Original comment by TaQS...@gmail.com on 22 Sep 2008 at 5:23

GoogleCodeExporter commented 9 years ago
The required database layout changes have been made.

Other changes required:
* Modification to ThornPostDBI to add the delpostuser function
* Template work to add the checkboxes and form needed for deletion
* Write misc.php to which the form would submit (also to be used for post 
reporting)
* Template/Javascript work to generate the passwords and store in a cookie
* Modify putpost/putthread functions to include the password

Original comment by all.sta...@gmail.com on 9 Dec 2008 at 7:47

GoogleCodeExporter commented 9 years ago

Original comment by all.sta...@gmail.com on 15 Dec 2008 at 4:45

GoogleCodeExporter commented 9 years ago
Some template modifications have already been made.  Remaining work required:
* Modification to ThornToolsDBI to add the delpostuser function
* Fill in misc.php skeleton
* Modify putpost/putthread functions to include the password

Original comment by all.sta...@gmail.com on 15 Dec 2008 at 4:59

GoogleCodeExporter commented 9 years ago
I ended up putting it in ThornModDBI instead but I think it's all basically 
there as
of revision 92!

Original comment by all.sta...@gmail.com on 16 Dec 2008 at 1:37

GoogleCodeExporter commented 9 years ago
I get a window that says $title No valid posts to delete closing in 5 seconds.

UH OH

Original comment by TaQS...@gmail.com on 15 Apr 2009 at 10:37

GoogleCodeExporter commented 9 years ago
Okay, I'm not sure about this.  I've been testing it with and without passwords 
on
test.kchan and I've gotten mixed results.  First, deletion without pass never 
works
(does it hash ips in lieu of an entered password?), and post deletion with pass 
(1234
was my test) only works if DDDEBUG is set to 1 and I add a die() in misc.php.  
So
there's something going on.  I do get smarty debug data from popup.tpl somehow 
as well:
{$text}     "0 posts deleted."
{$timeout}  "5"
{$title}    "Post deletion form"

It's being called, at least, apparently.

Original comment by TaQS...@gmail.com on 25 Aug 2009 at 10:46

GoogleCodeExporter commented 9 years ago

Okay I think this works now.

Original comment by TaQS...@gmail.com on 26 Aug 2009 at 8:06