PDA

View Full Version : [RELEASE] 'Save Copy' Move Hack


16 Jun 2000, 16:24
Ok, it's the really simple, crappy version - sue me! :)

Not tested too much (only twice), but seemed to work relatively well.

postings.php, find:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



ABOVE it add:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



find:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



REPLACE with:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



find:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



REPLACE with:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



-----
Close that.

Now, in your move template, add this somewhere:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



----
That's it, you should be done.
Maybe not efficient, but it works :)

BTW, sorry there's no note on the page - I don't feel like adding a whole column to the database for that :D

[Edited by Ed Sullivan on 06-17-2000 at 11:01 PM]

16 Jun 2000, 16:40
Thank you :)


I will try it shortly.

17 Jun 2000, 06:54
Ed, now how about the extended hack version, whereby the icon changes to "moved.gif" and the link of that thread in fact is linked to the new position of the thread? :)

17 Jun 2000, 07:00
I get a parse error on this line:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------

17 Jun 2000, 14:59
Doh! Sorry, copied the wrong code. That line should read:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



bira - I haven't studied the tables, but unfortunately, I'm a littled limited in what I can do without adding a field. Maybe, but it's low on my to do list :D

17 Jun 2000, 15:03
Ok, fixed the aforementioned mistake in my original code and added another search and replace (if (!$savecopy) {). Not a HUGE deal if you don't add it, but you're counters will be off then :D

17 Jun 2000, 17:48
Thanks! Works like a champ now.

17 Jun 2000, 18:30
Yes it does, thank you again :)

03 Aug 2000, 22:54
woah... hard to follow a bit... thought i'd bring it back up a bit :)

03 Aug 2000, 23:23
hmmm.. it didn't work ? no thread was saved in the original forum ?

okay i have hacks installed? could that be the problem ?

i have the location/interest hack, search result hack and avatar hack

03 Aug 2000, 23:25
Well, not, really as this hack touches the post/thread/forum tables and all the hacks you have installed don't go there.

03 Aug 2000, 23:31
I'll try this a little later and get back to you eva.

03 Aug 2000, 23:33
thanks guys... for now i reverted back to my original posting.php file and commented out the entry in move template for now

04 Aug 2000, 03:19
looks like I'm not gonna be able to try it out till tomorrow, and when I do I'll *probably* take a crack at the damned PM hack too eva, so I'll tell you how that goes

04 Aug 2000, 13:55
Well..

It moves the files and copies it now but I still would like for the old file that is copied to now act as a link to the new location so that when someone goes to click on this now closed topic it takes them to the area it got moved to.

Thanks,
Parker

04 Aug 2000, 15:00
huh... :( doesn't do that for me, it just moves the thread like it originally did...

well i have finally set up my test forum so can test it a bit more

09 Aug 2000, 00:30
Now that I have a working board, is there anyway you can get this working?? Pretty please???? :D :D :D

14 Aug 2000, 09:55
Ed:

Just want to revisit this. Any ideas on how to make the old topic, that is now closed, a link to the new topic are that it got moved to? Or if this isn't possible how about a message that gets put in the old topic that says something like "This topic as been moved. Click here to go to the new area it has been moved to" or similar.

Parker

14 Aug 2000, 11:27
yeah... i nearly forgot about this must need feature... will the next release have this ?

18 Aug 2000, 03:58
What is the progress on this one? Did anyone hear if John is going to be including this in the next version or the script or what?

Speaking of John I haven't seen anything from him in several weeks. I know he was gone but when does he get back?

Parker

18 Aug 2000, 04:08
probably the same time as the next release :)

18 Aug 2000, 15:40
Ed:

Is there anyway you can take the code that you've written above and when it closes the thread it changes the link to the now closed thread to be the same as the saved copy?

Parker

18 Aug 2000, 16:48
Again just use what we were talking about for leaving a note when closing a thread, just change the message to indicate the address of our new thread...

19 Aug 2000, 19:44
I hope there are two options£º
1.save a copy of this message (but closed) in its original forum
2.save a copy this message (keep topic open) in its original forum after moving

I think the second option is useful when an user move a thread to an archive forum.

How to hack the code?

Thanks in advance.

24 Aug 2000, 13:40
where is the demo ?

24 Aug 2000, 15:55
well i never got this to work at all.... all it did was move the thread like it did normally :(

01 Sep 2000, 05:23
any updates ? I tried again to do this but it doesn't work at all ? can someone check my postings.php file ?

[Edited by eva2000 on 09-01-2000 at 02:22 AM]

21 Sep 2000, 06:38
A good thing also, but I think kind of hard, is to move the thread to the new location and leave the original one open. And at the same time post any reply to BOTH of the threads.

Do you think its possible?

19 Nov 2000, 22:35
Will this work with 1.1.4?

wanted to know before i installed it :)

20 Nov 2000, 13:55
Should

20 Nov 2000, 15:02
It does work ... But it would be very nice if we could combine it with the PM hack so that it will automaticly send a PM to the starter of the thread informing him/her about this:
"Your thread sent on X date has been moved from X forum to X forum"

Thanks

Evoir
08 Apr 2001, 01:33
I am trying to get this to work on VB 1.16

I can't find one of the lines...I am wondering if it changed.

the line is:



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



The closet thing I could find in postings.php is this:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



would that be the code I replace? And if it is, It hasn't worked for me. What happens is when I click on any of the admin options in showthread, I get an error that says: "Document contained no data"