Move Old Topics

Started by live627, October 24, 2006, 05:28:02 PM

Previous topic - Next topic

TrueSatan

Quote from: Con on May 06, 2007, 10:33:50 AM
I just installed this, but it's not showing up in the Forum Maintenance, could it be because of custom themes?
Try it in the default theme and if it works there you'll have to investigate installation into a custom theme. This mod should be able to work in any theme judging from a cursory look at the code but you should always test in the default theme to see if a new mod works them move on to trying to get it to work in custom themes.

Con

Quote from: TrueSatan on May 06, 2007, 10:43:58 AM
Try it in the default theme and if it works there you'll have to investigate installation into a custom theme. This mod should be able to work in any theme judging from a cursory look at the code but you should always test in the default theme to see if a new mod works them move on to trying to get it to work in custom themes.
Tried in the default one too, still isn't shown, but it is displayed as installed in the package menu...

SleePy

Are you sure it installed?
Do you see the MoveTopic.php in Sources has been modified? has the Admin.template.php in your custom theme (or default theme if none) has been modified when you installed the mod?
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

Con

Movetopic.php has not been modified, but admin template has, strange as it does say the mod has been installed.

SleePy

uninstall the mod. If it says it will uninstall unsuccessfully (with errors). Then that means it didn't fully install for some reason. Proceed with it anyways and try to install again.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

Con

It suddently worked after I uninstalled some other mods.
ones about display things like group badges and location/age, nothing that seemed to be bugging this one.. ohwell.

NGame.nl

I can see the MOD, but if I would like to move the topics, it says complete but they aren't moved.

SleePy

Any errors occurred in the SMF error log?
Are you moving topics to the same board you are moving from?
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

NGame.nl

if(is_array($_POST['tobard']))
fatal_error($txt[106].' ERROR ID: MoveOldPosts-2');


Undefined index: tobard

SleePy

That line is incorrect, The post variable is slightly wrong.

Uninstall the mod. Download a new one and install it again and see if this helps.

That line should of been like this:
if(is_array($_POST['toboard']))
fatal_error($txt[106].' ERROR ID: MoveOldPosts-2');
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

Jye

I have SMF 1.1.4.  This Mod is meant to be compatible with it right?  After I installed it on the default theme, I get the following text show at the very top of each page.  How can this be fixed?

//Move Old Posts $txt['move_maintain_old'] = 'Move Old Posts'; $txt['move_maintain_old_since_days1'] = 'Move all topics not posted in for'; $txt['move_maintain_old_since_days2'] = 'days, which are:'; $txt['move_maintain_old_remove'] = 'Move Old'; $txt['move_Destboard'] = 'Destination Board:'; $txt['move_maintain_old_confirm'] = 'Are you really sure you want to MOVE old posts now?';

SleePy

Open Modifcations.english.php in Themes/default/languages.
Find ?>

And move this to the very bottom leaving no spaces or returns after it.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

Jye

Quote from: SleePy on October 10, 2007, 04:46:38 PM
Open Modifcations.english.php in Themes/default/languages.
Find ?>

And move this to the very bottom leaving no spaces or returns after it.
Ah yes, makes sense.  Thank you SleePy it worked!

SleePy

No thank you, I thought this would be a good idea for a doc in the docs site so I kicked the idea to the doc team :)
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

cor met snor

This mod works fine, but how can I make it work in Dutch (Dilber Theme - English oké but not in Dutch)

for example

English                           Dutch

Move Old Post -              Verplaats oude berichten
Destination Board -         Bestemmings Board
Move Old -                       Verplaats Oud

New Category -               Nieuwe Categorie
General Category -          Algemene Categorie

It generaly works in Dutch but without the mentioned Messages

I hope You can help me or give me a hint how to fix this




SleePy

If you look at Modifications.english.php
There should be the text strings related to the mod.
Just copy those to Modifications.dutch.php (or Modifications.dutch-utf8.php if you are using utf8) and then change them to the dutch version.
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

cor met snor

Okay thanks, it was easy that way, even a dummy as me could fix it.

Maybe it should be even a greater admin tool, if we could move selected posts from boards to an new to create destination board.



Hoochie Coochie Man

Great mod, thank you SleePy

But I think there is a bug.
You must change here (admin.template.php)
$txt['maintain_old_since_days2']
to
$txt['move_maintain_old_since_days2']
;)

and here is modification.turkish.php
//Move Old Posts by Hoochie Coochie Man
$txt['move_maintain_old'] = 'Eski Konuları Taşı';
$txt['move_maintain_old_since_days1'] = 'Mesaj gönderilmemiş';
$txt['move_maintain_old_since_days2'] = ' günü geçen konuları taşı, bunlar:';
$txt['move_maintain_old_remove'] = 'Taşı';
$txt['move_Destboard'] = 'Taşınacağı Bölüm:';
$txt['move_maintain_old_confirm'] = 'Eski Konuları Taşımak İstediğinizden Emin misin?';

İnadına SMF 1.1.X

SleePy

Thanks for the report. I fixed it in my sources. I won't update the main file at the moment though.

Is that turkish-utf8 or just turkish?
Jeremy D ~ Site Team / SMF Developer ~ GitHub Profile ~ Join us on IRC @ Libera.chat/#smf ~ Support the SMF Support team!

Hoochie Coochie Man

İnadına SMF 1.1.X

Advertisement: