1 (edited by fpouget 2008-02-16 12:43)

Topic: Move Post 1.3 + Merge Topics

My first mod Upgraded

Hope the new features will be helpfull :
- Select several post and move them in one step (thanks to 505)
- Merge several topics in one step.

This 1.3 version in not related to PunBB 1.3 Is only for the 1.2.* smile

##
##
##        Mod title:  MovePost Mod
##
##      Mod version:  1.3
##   Works on PunBB:  1.2.16 (should work with all 1.2.*)
##     Release date:  2008-02-16
##           Author:  Frédéric Pouget (fpouget at georezo dot net)
##
##      Description:  This mod will allow to move post between topics
##                    posted in PunBB 1.2.16
##
##   Affected files:  footer.php
##                    moderate.php
##                    viewtopic.php
##                    include/functions.php
##                    lang/[language]/common.php
##                    lang/[language]/topic.php
##
##       Affects DB:  No
##
##         Language:  Dutch, English, French, Italian, Polish, Swedish
##
##            Notes:  Description:
##                    This mod allow to move to an other topic in any forum, a 
##                    post, or a selection, or all the posts belong to the 
##                    original topic. It allow too to create a new topic where 
##                    the post(s) will be moved. Is possible to move a post in a
##                    new topic giving only the topic_id.
##                    This mod allow too merging several topics.
##                    
##                    1.3 News features:
##                    - Select several post and move them in one step (tx 505)
##                    - Merge several topics in one step.
##                    
##                    1.3 Bug fixed:
##                    - Update forum table.
##                    
##                    Files upgraded since 1.2:
##                    footer.php
##                    moderate.php
##                    include/functions.php
##                    lang/[language]/common.php
##                    
##                    Use:
##                    1 To move a Post just follow the link "Move" on the bottom
##                    of each post and follow the instructions. 
##                    
##                    2 To move several Posts follow the link on the bottom of 
##                    Topic's page "Move multiple posts" and follow the
##                    instructions.
##                    
##                    3 To merge several topics, on forum's page go to 'Moderate
##                    forum', select the topics and press the button 'merge'. All the 
##                    messages should be send on the oldest selected topics.
##
##       DISCLAIMER:  Please note that "mods" are not officially supported by
##                    PunBB. Installation of this modification is done at your
##                    own risk. Backup your forum database and any and all
##                    applicable files before proceeding.
##
##

Download : punres or here
demo : here

Re: Move Post 1.3 + Merge Topics

A demo is available here : http://georezo.net/demo/

To use the mod you need to connect as demo / demo

I'm expecting some feed back  ! wink

3

Re: Move Post 1.3 + Merge Topics

I like it!
one request: with your mod you can move a post, but can you also add a function to make the post the start of a new thread?

Re: Move Post 1.3 + Merge Topics

Thanks !

The next features should be:
- extend and sort the topic's list
- move post in other forum
- move all post in one topic to an other (in one step)
- create a new thread

If you have any others suggestions, they are welcome !!!

Re: Move Post 1.3 + Merge Topics

A new released !

included :

- extend and sort the topic's list
- move post in other forum
- move all post in one topic to an other (in one step)
- create a new thread

Enjoy and report wink !

6 (edited by minis 2006-03-03 10:44)

Re: Move Post 1.3 + Merge Topics

how to move ONE post to other topic? and how to move several post at once to other topic?

Re: Move Post 1.3 + Merge Topics

check on the demo http://georezo.net/demo/
log as demo/demo

Go to a message, click on "move" on your choosen message, and read the instructions ..

8

Re: Move Post 1.3 + Merge Topics

This function doesn't work :

Choose the reception topic
Choose eventually another forum and select the destination topic.

9 (edited by fpouget 2006-03-03 12:50)

Re: Move Post 1.3 + Merge Topics

???
Work perfectly with Firefox, but not with IE ...

Is it why ?

10

Re: Move Post 1.3 + Merge Topics

NO, it doesn't work with IE and with Firefox. Version 1.0 works fine, but this function in 1.1 doesn't work even on your demo site...

Re: Move Post 1.3 + Merge Topics

I've just tried on the demo site and i don't have ant pb ... may be your configuration ?

12

Re: Move Post 1.3 + Merge Topics

I tried on other PC, the same problem ;/

Re: Move Post 1.3 + Merge Topics

Can you describe precisly what's wrong ? if you can show some screens copy ...

14

Re: Move Post 1.3 + Merge Topics

I choose topic and press submit. AND NO ACTION ;/

I did some modification to your mod, i connected ver 1.0 and 1.1 Here is a screenshot. Now works fine. Thank for goog mod wink

http://img221.imageshack.us/img221/7919/dfgdfg8bn.th.jpg

15 (edited by fpouget 2006-03-03 14:40)

Re: Move Post 1.3 + Merge Topics

If it you are happy like that , i'm happy too wink
If ever you undestand why the problem was pleaset let me know !

Edit: Can you tell me which 'submit' button did you click on ?

Edit 2: for the connection, be sure to use the modify function.php from the 1.1 ! There was a bug in the 1.0 ...

16 (edited by minis 2006-03-03 17:20)

Re: Move Post 1.3 + Merge Topics

point 1. Marked buttons doesn't work at all.
http://img225.imageshack.us/img225/6324/ert7xg.th.jpg
point 2. YES, i use function.php from 1.1 smile

I tried to mark Move All Post , but it also doesnt work, just moves one most in my edited version, in yours - again no action at all ...

Re: Move Post 1.3 + Merge Topics

I did change something in the demo http://georezo.net/demo/

Can you try if is better ? I don't believe it but ...

18

Re: Move Post 1.3 + Merge Topics

No changes for me ...

Re: Move Post 1.3 + Merge Topics

Help !
I need help to solve thie issue ....

20 (edited by HJH 2006-03-04 13:03)

Re: Move Post 1.3 + Merge Topics

I've ran in to a couple of things with your mod:

The "move to a different topic" function seems to work. But the "move topic to a different forum" doesn't. Or maybe it does.. but not the way it should! I tried to move a topic, pressed "submit" and seemingly nothing happened. But somehow it did copy another topic form another forum to that location! When I tried to undo this by moving it back I got this error:
"Notice: Undefined index: new_fid in /inet/coupe-fiat.nl/forum/movepost.php on line 49"

Also: you hardcoded "Retour" as "Back" in movepost.php
Maybe this should be in the language file?


And finally, here's the dutch translation:

<?php



// Language definitions used in the mod "Move Post" 1.1



$lang_movepost = array(



'Mod move post'            =>    '[Move Post 1.1] - Verplaats een bericht',

'Intro'                    =>    'Met deze mod kunt u een of meer bericht verplaatsen naar een ander forum. U kunt ook een nieuw onderwerp starten en daar de berichten naar toe verplaatsen.',



'Introduction'                =>    'Uitleg',

'Create topic'                =>    'Maak een nieuw onderwerp aan',

'Move post'                =>    'Kies het onderwerp om naar te verplaatsen',



'Original topic'            =>    'Originele onderwerp:',

'Original forum'            =>    'Originele forum:',

'Move all posts'            =>    'Verplaats alle berichten uit dit onderwerp',



'Explain move all posts'        =>    'Het originele onderwerp wordt weggehaald.',

'Explain create topic'        =>    'Om een nieuw onderwerp te maken, selecteert u de knop en geeft u een onderwerp op.',

'Explain move post'            =>    'Kies nu een ander forum en selecteer het doel-onderwerp.',



'Select'                    =>    'Kies',

'Last'                    =>    'Laatste',

'Poster'                    =>    'Geplaatst door',



'Bad topic'                =>    'Verkeerde keuze',

'Bad new topic'            =>    'De onderwerpregel mag niet leeg zijn',



'Mark move redirect'        =>    'Het bericht is verplaatst naar het gekozen onderwerp. Redirecting …'



);

Re: Move Post 1.3 + Merge Topics

Thanks for these feedbacks
1 - The dutch translation will be include on the next release (Translation by HJH ?)
2 - I forget to put 'Go back' in the language, will be done for the next release
3 - It seems, in few cases, than the submit button "freeze" the mod : I really don't know why, and worst I never reproduce it !!! So it's extremly difficult to debug...

I just did some changes on the demo version : http://georezo.net/demo/
Can you try if is better ?

Thanks again !

Re: Move Post 1.3 + Merge Topics

The dutch lang file still has some errors tongue

Re: Move Post 1.3 + Merge Topics

I don't speak a world of Dutch ! So please be agree each other and give me a official version wink

24

Re: Move Post 1.3 + Merge Topics

Right,

I got the error out. (see the last post; I edited it)
Elbekko, did I miss something, or is it ok now?

Re: Move Post 1.3 + Merge Topics

I got the error out. (see the last post; I edited it)

Means  ok  ????