Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: SMFHacks.com Team on January 22, 2008, 11:19:07 PM

Title: Copy Topics
Post by: SMFHacks.com Team on January 22, 2008, 11:19:07 PM
Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=1074)

Copy Topics





Compatibility: SMF 1.1.x, SMF 2.0.x

Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=1074) | Comments (http://www.simplemachines.org/community/index.php?topic=218406.0) | Donate (https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=W43RKPPZ2KGYE)                          

Current Version: 1.5.1





Introduction
Adds the ability to copy a single or multiple topics.

Note: The copying functions contain some very memory intensive mysql queries, and there are a considerable number of them.
The more topics and/or the more posts in the topic, the more queries will be used.




Features
Adds Copy Topic permission for membergroups
Copy a single topic from the Topic Display
Copy a single or multiple topics from the Message Index
Copies the entire topic
Updates users postcount/post based membergroups accordingly
Updates all necessary stats
Copies Calendar/events tied to the topic
Copies Entire polls
Copies Attachments
less than 1MB in size only
Providing you haven't exceed any Maximum Attachments directory size
SMF 2.0 version works with 2.0 feature of multiple attachment folders




Installation
Any previous versions of this mod MUST be uninstalled BEFORE installing this version.

Simply install the package to install on the SMF Default Core Theme ONLY.

Manual edits will be required for ALL themes (other than SMF Default Core Theme) which have a custom MessageIndex.template.php and/or Display.template.php

If your theme has its own versions of the language files Modifications.english.php and/or Modifications.english-utf8.php, OR if your using a language other than those supported (listed above) by the mod then you will need to copy the language strings into each custom version of those files.

You will also need to copy the images into each Theme
Themes/{themename}/images/buttons/admin_copy.gif
Themes/{themename}/images/icons/quick_copy.gif


Useful Links
Manual Installation Of Mods (http://docs.simplemachines.org/index.php?topic=402)
How Do I Modify Files? (http://www.simplemachines.org/community/index.php?topic=24110.0)




Support
Please use the modification thread for support with this modification.
(Please don't ask me to do the edits for you)




Changelog

1.7
!Fixed text copy topics when using checkbox moderation


11/16/09
o Updated to support RC2

6/17/09 - v1.5.1
o Fixed some minor bugs on install.
o Fixed Hungarian Language.

6/12/09 - v1.5
o Updated compatibility for 1.1.9 and 2.0 RC1-1

5/15/08 - v1.4
o Checked works for SMF 1.1.5 and SMF 2.0 Beta 3.1
o Fixed Undefined $txt string Permission bug in 2.x version only (Thanks to Jelle Mees)
o Added Portuguese/Portuguese-utf8 language strings (Thanks to joomlamz)

3/21/08 - v1.3
o Fixed to make install for SMF 2.0 Beta 3 Public

3/15/08 - v1.2
o Removed/disabled copying of 'cached search entries' as causing duplicate key issues

3/2/08 - v1.1
o Converted mod to work for SMF 2.0 beta 2 (and above) (won't work for earlier 2.0 versions)
o 2.0 version takes account of SMF 2.0 multiple attachment folders
o Added German/German-utf8 language strings (Thanks to ltdeta)
o Added Turkish/Turkish-utf8 language strings (Thanks to CiOooo)
o Fixed: Copying multiple topics to copy in the exact same order
o Fixed: Removed LIMIT 1 from UPDATE clauses since sqlite doesn't support them

1/22/08 - v1.0
o Initial release.
Title: Re: Copy Topics
Post by: karlbenson on January 22, 2008, 11:24:45 PM
{post reserved: for notes and info later}
Title: Re: Copy Topics v1.0
Post by: Apllicmz on January 22, 2008, 11:44:08 PM
nice work
good
Title: Re: Copy Topics v1.0
Post by: edi67 on January 23, 2008, 04:25:51 AM
great mod Karl
Title: Re: Copy Topics v1.0
Post by: jossanaijr on January 23, 2008, 06:17:21 AM
Hi Karl,
great mod.  Thanks.
What I would like to have is an option to have a link in the copied topic of the original one.
I'm using this mod to create a board that I've been looking for:  Have a "best topic of the week".  So I installed this mod but did not give permission to copy but me.  Then I copy one topic (to this board) that I will delete every week replacing it by a new one.  But members cannot reply in this copied topic, only in the original.  So it is why I'm asking for this link.
Title: Re: Copy Topics v1.0
Post by: karlbenson on January 23, 2008, 06:49:11 AM
I considered having that option.

However for SEO reasons I decided not to include the functionality
Title: Re: Copy Topics v1.0
Post by: MinasC on January 23, 2008, 07:07:32 AM
great as always karl ! bravo !
Title: Re: Copy Topics v1.0
Post by: jossanaijr on January 23, 2008, 07:35:49 AM
Quote from: karlbenson on January 23, 2008, 06:49:11 AM
I considered having that option.

However for SEO reasons I decided not to include the functionality
Ok, thanks.
Title: Re: Copy Topics v1.0
Post by: CiOooo on January 23, 2008, 09:59:23 AM
hello :)
If u publish the turkish translation of this mod, here it is.. ;)
thnx 4 mod, tchau :D


$txt['copytopic_copyto'] = 'Kopyala';
$txt['quick_mod_copy'] = 'Seçileni Kopyala';
$txt['copytopic'] = 'Konuyu Kopyala';
$txt['copytopics'] = 'Konuları Kopyala';
$txt['cannot_copy'] = 'Bir konuyu kopyalamak için gereken izinlere sahip değilsiniz';
$txt['copytopic_noboards'] = 'Bu konunun kopyalananabileceği kategori bulunmamakta!';
$txt['copytopic_notallowed'] = 'Kategorilere konuları kopyalamaya yetkili değilsiniz,görüntüleyemezsiniz!';
$txt['permissionname_copy'] = 'Konuyu Kopyala';
$txt['permissionhelp_copy'] = 'Konuyu bir kategoriden diğerine kopyalar. Kullanıcılar, sadece görmelerine izin verilen kategorileri seçebilirler';
$txt['copytopic_negativeseo'] = 'Konular kopyalanırken SEO açısından olumsuz etkiler görülebilir yani arama motorları içeriğin tekrarlı yani iki suretli olduğunu tespit edebilirler.';
Title: Re: Copy Topics v1.0
Post by: erlend_sh on January 23, 2008, 10:10:28 AM
I recall asking for a mod like this earlier, so this is really great news!

Maybe I'll make a translation into Norwegian, German and Spanish for it when I get home.

Thanks for a great mod!
Title: Re: Copy Topics v1.0
Post by: Eliana Tamerin on January 23, 2008, 06:23:05 PM
Again, Karl, kudos for making an innovative and ingenious mod. I don't have a need for the functionality at the moment, but I do like the concept. Good job.
Title: Re: Copy Topics v1.0
Post by: karlbenson on January 23, 2008, 07:16:57 PM
Thanks Eliana.

P.S don't look at the code unless you want a headache. ;)

Something like 90% is made up of queries
Title: Re: Copy Topics v1.0
Post by: eleven0 on January 23, 2008, 07:20:17 PM
It's great to see this feature on SMF.  Thanks Karlbenson :)
Title: Re: Copy Topics v1.0
Post by: Eliana Tamerin on January 23, 2008, 07:34:26 PM
Now you made me look at the code. Wow, that's a headache. I don't think I've seen that many queries in a file before.
Title: Re: Copy Topics v1.0
Post by: kamili34 on January 25, 2008, 08:51:30 PM
Thanks for this
Title: Re: Copy Topics v1.0
Post by: forumguy on January 27, 2008, 05:02:21 PM
This is great, I asked for something like this earlier.  In my case, I would want the +1MB attachments to go with the copy.  Is there any way to make it an option to specify the size limit, or disable the 1MB limit?

Thanks!!!
Title: Re: Copy Topics v1.0
Post by: karlbenson on January 28, 2008, 05:32:18 AM
The limit is 1mb.  I would not even recommend copying 1mb files.  This is because your servers can't usually handle it.

In fact, based on some testing I've done since submiting the mod and another user has sent me.
I may need to reduce the amount.
Possibly making it less than 1mb TOTAL for attachments in all the topics your copying.

So if your copying 5xtopics at once, the max size attachments that could be copied is 1mb.
Title: Re: Copy Topics v1.0 -english-utf-8
Post by: ceewee on January 28, 2008, 07:13:56 AM
Have a strange thing, when testing install in package manager it's all ok but test failed on english-utf-8, which btw I don't have any .
It says
9.     Execute Modification     ./Themes/default/languages/Modifications.english-utf8.php     Test failed
So I don't have any UTF8 files!?
Other files I don't have it just skips like:
11.     Execute Modification     ./Themes/default/languages/Modifications.english_british-utf8.php     Skipping file

I have more mods, not of you btw, which has same or similar test failed on utf8:

referals mod, languagecompare and topicsfilter.


Should I just install and ignore that utf8?
Or place the utf8-files I need for your mods in forum?
==========================================
added: checked files in forum, although I don't have any utf8 languages I seem to have that Modifications.english-utf8.php,
will have to add that manually I assume.
Title: Re: Copy Topics v1.0
Post by: karlbenson on January 28, 2008, 07:30:32 AM
It maybe that another mod has created a BLANK modifications.english-utf8.php
Open Themes/default/languages/Modification.english-utf8.php
If its blank, then delete it.
Title: Re: Copy Topics v1.0
Post by: forumguy on January 28, 2008, 09:08:44 PM
Would it be possible to write the mod so that instead of actually copying the file, it just references the existing file?  There would be a problem if the file in the original post was deleted, but maybe there can be a check put in and it would preserve the file if there was a link to it... just a thought.
Title: Re: Copy Topics v1.0
Post by: ceewee on January 28, 2008, 02:00:47 PM
Quote from: karlbenson on January 28, 2008, 07:30:32 AM
It maybe that another mod has created a BLANK modifications.english-utf8.php
Open Themes/default/languages/Modification.english-utf8.php
If its blank, then delete it.

It isn't blank, has 2 lines in it, also there's the same file with a ~that has 1 line in it.

Possibly with already 83 mods, I've strechted my luck sofar beiing able to install thru
package manager, so have to do it thru the package parser for the rest i want to install.

Got lucky sofar.
Title: Re: Copy Topics v1.0
Post by: forumguy on January 28, 2008, 09:52:08 PM
Quote from: karlbenson on January 28, 2008, 05:32:18 AM
The limit is 1mb.  I would not even recommend copying 1mb files.  This is because your servers can't usually handle it.

In fact, based on some testing I've done since submiting the mod and another user has sent me.
I may need to reduce the amount.
Possibly making it less than 1mb TOTAL for attachments in all the topics your copying.

So if your copying 5xtopics at once, the max size attachments that could be copied is 1mb.

Could it be written to, instead of duplicate the attachment, simply reference the existing attachment?  Some sort of error logic would have to be written to prevent the deletion of the file by deleting the original thread, but other than that I don't see why this approach wouldn't work... Thoughts?

Cheers.
Title: Re: Copy Topics v1.0
Post by: karlbenson on January 29, 2008, 05:14:33 AM
@ceewee
I'll make it easy for you.
Open Themes/default/languages/Modifications.english.php
Copy everything into (and replace whatever is inside)
Themes/default/languages/Modifications.english-utf8.php

@forumguy 
I looked into that, however SMF's attachment system ties Attachments to messages.
It would be a huge undertaking to re-write Attachments for it.  Far too much work for the benefit.
When working on the mod I was going to leave out attachments completely due to potentially trying to copy large files.
After discussion with some smf'ers they convinced me to support 99% of attachments which are less than 1mb and would copy easily.

Ideally ForumGuy I think people who use alot of attachments need to lobby/request SMF improve the attachment system to allow attachments to be attached to different messages and such.

Overall I would say I don't plan to add much functionality to this mod.
Also because its 98% queries I'm going to have some fun trying to update this for 2.0 and the new querying method.
Title: Re: Copy Topics v1.0
Post by: forumguy on January 29, 2008, 02:01:05 PM
Okie dokie, thanks for listening to my thoughts and thanks for creating a MUCH NEEDED mod. :)
Title: Re: Copy Topics v1.0
Post by: ceewee on January 30, 2008, 08:58:53 AM
Quote from: karlbenson on January 28, 2008, 07:30:32 AM
It maybe that another mod has created a BLANK modifications.english-utf8.php
Open Themes/default/languages/Modification.english-utf8.php
If its blank, then delete it.
When checking it in package parser I found that it missed both <?php and ?>
That would cause it to : test failed.
Have several other mods with same error, will install them to see if that solves that problem.
Title: Re: Copy Topics v1.0
Post by: karlbenson on January 30, 2008, 09:14:25 AM
Your Modifications.english-utf8.php was probably created in error.

You will probably keep getting the error if smf can't find a ?> in the file.
Title: Re: Copy Topics v1.0
Post by: ceewee on January 30, 2008, 09:59:48 AM
Quote from: karlbenson on January 30, 2008, 09:14:25 AM
Your Modifications.english-utf8.php was probably created in error.

You will probably keep getting the error if smf can't find a ?> in the file.
Yes, corrected that and 5 mods with that utf8 error now install without problems, one mod..-german had same problem. Will keep that in mind..have now 92 mods, up to 100... :-)
THX
Title: Re: Copy Topics v1.0
Post by: karlbenson on January 30, 2008, 10:11:59 AM
Your like me then.

My forum has over 100 mods installed.
Title: Re: Copy Topics v1.0
Post by: ltdeta on February 07, 2008, 02:31:10 PM
German translation :)

$txt['copytopic_copyto'] = 'kopieren nach';
$txt['quick_mod_copy'] = 'kopiere markierte Themen nach';
$txt['copytopic'] = 'kopiere Thema';
$txt['copytopics'] = 'kopiere Themen';
$txt['cannot_copy'] = 'Du hast keine Berechtigung, die es dir erlaubt ein Thema zu kopieren';
$txt['copytopic_noboards'] = 'Es gibt kein Board in die du das Thema kopieren kannst!';
$txt['copytopic_notallowed'] = 'Du bist nicht berechtigt Themen in Boards zu kopieren, auf die du keinen Zugriff hast!';
$txt['permissionname_copy'] = 'kopiere Thema';
$txt['permissionhelp_copy'] = 'kopiert ein Thema von einem Board in ein anderes. Benutzer können nur Boards als Ziel auswählen, auf die sie Zugriff haben';
$txt['copytopic_negativeseo'] = 'Beachte, das kopierte Themen von Suchmaschinen, aufgrund negativen SEO (Search engine optimization) Effekte, als doppelter Inhalt gedeutet werden könnte.';

Title: Re: Copy Topics v1.0
Post by: forumguy on February 07, 2008, 02:37:27 PM
Quick question, is there any easy way to make the copy button (or hyperlinked text) show up in other themes?
Title: Re: Copy Topics v1.0
Post by: karlbenson on February 07, 2008, 03:12:47 PM
You need to manually edit the theme onto other themes.

Using an SMF Package Parser can help
http://www.adrevenueshare.com/parser
Title: Re: Copy Topics v1.0
Post by: forumguy on February 07, 2008, 03:16:25 PM
Ok, cool.  Thanks for the tip!
Title: 9. Execute Modification ./Themes/default/languages/Modifications.english-utf8.
Post by: lookang on February 10, 2008, 10:33:49 AM
 Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.
Installation Readme
COPY TOPICS v1.0
By Karl Benson
Link to Mod | Support Topic | Donate


Compatibility
For SMF 1.1.x Only

Introduction
Adds the ability to copy a single or multiple topics.

Note: The copying functions contain some very memory intensive mysql queries, and there are a considerable no. of them.
The more topics and/or the more posts in the topic, the more queries will be used.

Features
o Adds Copy Topic permission for membergroups
o Copy a single topic from the Topic Display
o Copy a single or multiple topics from the Message Index
o Copies the entire topic
- Updates users postcount/post based membergroups accordingly
- Updates all necessary stats
- Copies Calendar/events tied to the topic
- Copies Entire polls
- Copies Attachments
   > less than 1MB in size only
   > Providing you haven't exceed any Maximum Attachments directory size
o Supports Languages
- English/English-utf8
- English_British/English_British-utf8
I welcome translations for other languages. Please post the translated language strings in the Support Topic.

Installation
Simply install the package to install on the SMF Default Core Theme ONLY.

Manual edits will be required for ALL themes (other than SMF Default Core Theme) which have a custom MessageIndex.template.php and/or Display.template.php

If your theme has its own versions of the language files Modifications.english.php and/or Modifications.english-utf8.php, OR if your using a language other than those supported (listed above) by the mod then you will need to copy the language strings into each custom version of those files.

You will also need to copy the images into each Theme
Themes/{themename}/images/buttons/admin_copy.gif
Themes/{themename}/images/icons/quick_copy.gif

Useful Links
SMF Package Parser
Manual Installation Of Mods
How Do I Modify Files?

Donate
Has this modification helped you? Support the developer by Donating

Support
Please use the modification thread for support with this modification.
(Please don't ask me to do the edits for you)

Changelog
1.0 BETA - 22nd January 2008
o Initial release.

Install Actions
Installations actions for "Copy Topics":
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./index.php    Test successful
2.    Execute Modification    ./Sources/Subs-Boards.php    Test successful
3.    Execute Modification    ./Sources/Display.php    Test successful
4.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
5.    Execute Modification    ./Sources/MessageIndex.php    Test successful
6.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test successful
7.    Execute Modification    ./Themes/default/Display.template.php    Test successful
8.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
9.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Test failed
10.    Execute Modification    ./Themes/default/languages/Modifications.english_british.php    Skipping file
11.    Execute Modification    ./Themes/default/languages/Modifications.english_british-utf8.php    Skipping file
12.    Extract File    ./Sources/CopyTopic.php    
13.    Extract File    ./Themes/default/CopyTopic.template.php    
14.    Extract File    ./Themes/default/images/buttons/admin_copy.gif    
15.    Extract File    ./Themes/default/images/icons/quick_copy.gif

help!!
Title: Re: Copy Topics v1.0
Post by: karlbenson on February 10, 2008, 11:08:28 AM
Your issue with with Modifications.english-utf8.php

Open
./Themes/default/languages/Modifications.english-utf8.php

Copy ALL the strings FROM ./Themes/default/languages/Modifications.english.php into the utf8 file.


Title: Re: Copy Topics v1.0
Post by: lookang on February 11, 2008, 05:27:22 AM
this is my /public_html/forum/Themes/default/languages/Modifications.english-utf8.php


$txt['socialbookmarks'] = 'Social Bookmarks';
$txt['attachment'] = ' [ Attachment ] ';
$txt['attachment_nopermission'] = ' [ Attachment: You are not allowed to view attachments ] ';
$txt['attachment_invalid'] = ' [ Attachment Invalid Or Does Not Exist ] ';
$txt['attachment_disabled'] = ' [ Attachments Disabled ] ';
$txt['attachment_insert'] = 'Insert Attachment';

is this what you need to debug my error message? :D
Title: Re: Copy Topics v1.0
Post by: Eliana Tamerin on February 11, 2008, 08:34:58 AM
No, he wants you to open your Modifications.english.php and copy everything there into Modifications.english-utf8.php.
Title: Re: Copy Topics v1.0
Post by: lookang on February 12, 2008, 09:16:30 AM
COOL man!!! it works!!! thanks! :D
Title: Re: Copy Topics v1.0
Post by: dcorc on February 15, 2008, 11:05:17 PM
I'd just like to add a huge "thanks" to you, for coding this mod !


Dave
Title: Re: Copy Topics v1.0
Post by: karlbenson on March 01, 2008, 09:12:44 PM
1.1 - 2nd March 2008
o Converted mod to work for SMF 2.0 beta 2 (and above) (won't work for earlier 2.0 versions)
o 2.0 version takes account of SMF 2.0 multiple attachment folders
o Added German/German-utf8 language strings (Thanks to ltdeta)
o Added Turkish/Turkish-utf8 language strings (Thanks to CiOooo)
o Fixed: Copying multiple topics to copy in the exact same order
o Fixed: Removed LIMIT 1 from UPDATE clauses since sqlite doesn't support them
Title: Re: Copy Topics v1.1
Post by: c a g a t a y on March 11, 2008, 01:22:39 PM
First of all this is a great job for me
I installed this mod and it is good working

But;

Although I put images to the right folder I cant see icons ?



I am using SMF 1.1.2  and DEFAULT THEME

Any idea ?
Title: Re: Copy Topics v1.1
Post by: c a g a t a y on March 12, 2008, 03:44:33 AM
Is there anyone to answer my question?

regards
Title: Re: Copy Topics v1.1
Post by: karlbenson on March 12, 2008, 08:56:44 AM
Sorry I'm not ignoring you.
Just trying to fix something else first.

Check that both images exist at the following locations.
http://{domain and directory to smf}/Themes/default/images/buttons/admin_copy.gif
http://{domain and directory to smf}/Themes/default/images/icons/quick_copy.gif

It would appear they are missing, thats why its showing the alternative/title text instead.
Title: Re: Copy Topics v1.1
Post by: perplexed on March 15, 2008, 08:08:25 AM
hello Karl

I just installed your mod with no errors and for my first attempt I tried to copy two topics at once and  I got this error:

Duplicate entry '225-5337' for key 1
File: /home/perplexed/public_html/forum/Sources/CopyTopic.php
Line: 227


I was trying to copy two topics at once and I just noticed that it has actually copied one of the topics but when I got the error

Duplicate entry '225-5337' for key 1
File: /home/perplexed/public_html/forum/Sources/CopyTopic.php
Line: 227

it said beneath it to click back, like it hadnt done it, but it has copied one of them, so how do I fix the error and get it to copy more than one topic at once?

Also I just noticed that in the one topic it did copy, it didnt copy the attachments in the topic.  There were only two word docs attached at less than 30kb each

Then I tried to copy the second topic again (the one it didnt copy the first time) and I get the same error, different entry key and it didnt copy it at all  ???

Thanks


edited to add:

when I look at the latest posts, it stops and only displays 2 posts though there are 10 pages of posts.  So I ran forum maintenance and got all 10 pages of posts back, and the missing copied topic also appeared.  Looks like it was preventing the 10 pages of recent posts to be displayed.

Something isnt right :(
Title: Re: Copy Topics v1.1
Post by: karlbenson on March 15, 2008, 12:14:45 PM
@perplexed

I had similar errors on one of my test boards. But it was due to pre-existing errors in my database.

Via Maintenance
Click Find and repair any errors.
Then Recount all forum totals and statistics.
Then Click Find and repair any errors again.

Overall the mod has been heavily tested (to the point of copying 500,000 posts in one go with attachments on each).
Title: Re: Copy Topics v1.1
Post by: perplexed on March 15, 2008, 12:23:17 PM
yeah I did all this

Via Maintenance
Click Find and repair any errors.
Then Recount all forum totals and statistics.
Then Click Find and repair any errors again.

after the first error message, and it seemed to allow the copied topic to display, but not the second one.  Then I tried to copy the second topic again, and it only appeared after I ran the forum maintenance again.  So I am I going to have to run forum maintenance every time I copy a topic? 

It did say something about the database needing upgrading or something in the error message, but the database is up to date


It is also not copying the attachments

Title: Re: Copy Topics v1.1
Post by: karlbenson on March 15, 2008, 12:40:25 PM
No, you shouldn't have to do it more than once.

What mods do you have installed?
- Especially any that alter attachments.
Title: Re: Copy Topics v1.1
Post by: perplexed on March 15, 2008, 12:46:27 PM
I have about 50 mods installed and none that alter attachments
Title: Re: Copy Topics v1.1
Post by: karlbenson on March 15, 2008, 02:06:27 PM
Please can you copy and paste the list of mods installed.

Are you getting any other errors in your error logs.
Title: Re: Copy Topics v1.1
Post by: perplexed on March 15, 2008, 04:24:31 PM
sorry,here is the list, it's rather long:

    Mod Name     Version

   Auto Embed Video Clips    2.1.4    [ Uninstall ] [ List Files ] [ Delete ]
    Create Topic on Report to Moderator    0.2    [ Uninstall ] [ List Files ] [ Delete ]
    Welcome Topic Mod    1.1    [ Uninstall ] [ List Files ] [ Delete ]
    Member Awards    1.0.2    [ Uninstall ] [ List Files ] [ Delete ]
    SMF Arcade    2.0.12    [ Uninstall ] [ List Files ] [ Delete ]
    SmileyLimit    1.0    [ Uninstall ] [ List Files ] [ Delete ]
    Signature Settings Mod    1.1    [ Uninstall ] [ List Files ] [ Delete ]
    Karma Description Mod    2.3    [ Uninstall ] [ List Files ] [ Delete ]
    FlashChat Integration    1.0    [ Uninstall ] [ List Files ] [ Delete ]
    Personal Message Auto Responder    0.2    [ Uninstall ] [ List Files ] [ Delete ]
    View_Email_Permission    1.0    [ Uninstall ] [ List Files ] [ Delete ]
    Signature Area BBCode Buttons    1.5    [ Uninstall ] [ List Files ] [ Delete ]
    Anti-Bot Registration Puzzles    1.1    [ Uninstall ] [ List Files ] [ Delete ]
    Referrals Mod    1.4    [ Apply Mod ] [ List Files ] [ Delete ]
    Ultimate Shoutbox    1.40    [ Uninstall ] [ List Files ] [ Delete ]
    Monthly Statistics on Profile    1.0    [ Uninstall ] [ List Files ] [ Delete ]
    Ad Managment    2.3    [ Uninstall ] [ List Files ] [ Delete ]
    Karma On Memberlist    1.0    [ Uninstall ] [ List Files ] [ Delete ]
    Global Announcements    1.0    [ Uninstall ] [ List Files ] [ Delete ]
    MCLegendII    1.1    [ Uninstall ] [ List Files ] [ Delete ]
    Custom Profile Field Mod    3.17    [ Uninstall ] [ List Files ] [ Delete ]
    Buy Me A Beer    1.4    [ Uninstall ] [ List Files ] [ Delete ]
    Reason For Editing Mod    1.14    [ Uninstall ] [ List Files ] [ Delete ]
    Color And BgColor BBCode Bar    3.3    [ Uninstall ] [ List Files ] [ Delete ]
    Zodiac_Starsigns    1.2    [ Uninstall ] [ List Files ] [ Delete ]
    Profile Comments    1.3.6    [ Uninstall ] [ List Files ] [ Delete ]
    Spoiler Tag    0.3.2    [ Uninstall ] [ List Files ] [ Delete ]
    Custom BBCode    2.00    [ Uninstall ] [ List Files ] [ Delete ]
    EmailFlash    2.0    [ Uninstall ] [ List Files ] [ Delete ]
    Sticky First Post (extends sticky topic)    1.3.2    [ Uninstall ] [ List Files ] [ Delete ]
    Users Online Today Mod    1.4.0    [ Uninstall ] [ List Files ] [ Delete ]
    SMF 1.1.4 Search "brd" Bug Fix (1.0.1)    1.0.1    [ Uninstall ] [ List Files ] [ Delete ]
    Save PM as HTML    1.0.6    [ Uninstall ] [ List Files ] [ Delete ]
    Googlebot & Spiders Mod    2.0.3    [ Uninstall ] [ List Files ] [ Delete ]
    LogModAccountEdits    1.9    [ Uninstall ] [ List Files ] [ Delete ]
    Country Flags    1.0.1    [ Uninstall ] [ List Files ] [ Delete ]
    Show Multiple Badges (Aka Stars)    1.0    [ Uninstall ] [ List Files ] [ Delete ]
    Copy Topics    1.1    [ Uninstall ] [ List Files ] [ Delete ]
    VisualWarning    1.41    [ Uninstall ] [ List Files ] [ Delete ]
    SMFShop    3.0    [ Uninstall ] [ List Files ] [ Delete ]
    Reg Bar    1.0.1    [ Uninstall ] [ List Files ] [ Delete ]
    User Control Panel By Alan S    2.0    [ Uninstall ] [ List Files ] [ Delete ]
    Ultimate Profile    0.8    [ Uninstall ] [ List Files ] [ Delete ]
    Enhanced Quick Reply Box 2.0.2    2.0.2    [ Uninstall ] [ List Files ] [ Delete ]
    Temporary fix    0.5    [ List Files ] [ Delete ]
    Topic Ratings    1.03    [ Uninstall ] [ List Files ] [ Delete ]
    TinyPortal    0.983    [ Uninstall ] [ List Files ] [ Delete ]
    Topic Member Post Count    1.1.5          [ Uninstall ] [ List Files ] [ Delete ]
    Group on Registration    1.1.1          [ Uninstall ] [ List Files ] [ Delete ]
    Are You Human? Anti-Bot Registration Check    [ Uninstall ] [ List Files ] [ Delete ]


no other errors in the log, just this one twice, one for each time I tried to copy a topic:

Database Error: Duplicate entry '225-5337' for key 1
File: /home/perplexed/public_html/forum/Sources/CopyTopic.php
Line: 227

Database Error: Duplicate entry '28-5347' for key 1
File: /home/perplexed/public_html/forum/Sources/CopyTopic.php
Line: 227
Title: Re: Copy Topics v1.1
Post by: karlbenson on March 15, 2008, 04:32:38 PM
ok, this is a bug I think.

Open Sources/CopyTopics.php

Lines 214-230
FIND & REMOVE
// --- Log_Search_Results ---
// Include this new topic in existing search results
// The Columns for the table with our new msg id and topic id instead
$insert = "ID_SEARCH, ID_TOPIC, ID_MSG, relevance, num_matches";
$select = "r.ID_SEARCH, '$topic_id', m.ID_MSG, r.relevance, r.num_matches";

// Query to Copy EVERY matching row
db_query("
INSERT INTO {$db_prefix}log_search_results (". $insert .")
SELECT ". $select ."
FROM {$db_prefix}log_search_results as r
LEFT JOIN {$db_prefix}messages as m ON (r.ID_MSG = m.ID_MSG_MODIFIED)
WHERE m.ID_TOPIC = ".$topic_id."
", __FILE__, __LINE__);

// Tidy up
unset($insert,$select);


Then do the maintenance Links again.

Then try to copy topics again.
Title: Re: Copy Topics v1.1
Post by: perplexed on March 15, 2008, 05:01:53 PM
:D, ok did all that and tested it again and this time no error AND it also kept the attachment, no errors in the log either

thanks Karl!

Very cool
Title: Re: Copy Topics v1.1
Post by: karlbenson on March 15, 2008, 05:03:30 PM
I will release v1.2 in a moment which removes this part.
I don't know why its causing an error, but it isn't needed anyway.

All it does is add this topic into existing cached searches for matching keywords.
Title: Re: Copy Topics v1.1
Post by: perplexed on March 15, 2008, 05:15:51 PM
hmmm how odd.  do I need to upgrade then or just keep the one I have now it's been amended?
Title: Re: Copy Topics v1.1
Post by: karlbenson on March 15, 2008, 05:24:44 PM
Nah, you'll be fine. No need to upgrade.
I'm just going to comment the code out for now anyway.

Just packaging it up actually.  Will be posted in a few...

Title: Re: Copy Topics v1.2
Post by: karlbenson on March 15, 2008, 05:28:12 PM
1.2 - 15th March 2008
o Removed/disabled copying of 'cached search entries' as causing duplicate key issues
Title: Re: Copy Topics v1.2
Post by: karlbenson on March 20, 2008, 08:43:36 PM
Only a minor tweak was required to get the 2.0 Beta 2 version to work on Beta 3.

1.3 - 21st March 2008
o Fixed to make install for SMF 2.0 Beta 3 Public

Enjoy!
Title: Re: Copy Topics v1.3
Post by: Apllicmz on March 20, 2008, 10:16:55 PM
Yes thank you
Nice Mod Work Fine
Trans. Portuguese.php suporte 114,2.0 Beta

<file name="$languagedir/Modifications.portuguese.php" >
<!--// Adds the language strings used by this modification //-->
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
$txt['copytopic_copyto'] = 'Copiar para';
$txt['quick_mod_copy'] = 'Copiar selecionados para';
$txt['copytopic'] = 'Copia Topico';
$txt['copytopics'] = 'Copia Topicos';
$txt['cannot_copy'] = 'Você não tem as permissões para permitir que você copiar um tópico';
$txt['copytopic_noboards'] = 'Não há quadro para copiar a este tópico!';
$txt['copytopic_notallowed'] = 'Você não tem permissão para copiar tópicos do quadro não é possível visualizar!';
$txt['permissionname_copy'] = 'Copia Topico';
$txt['permissionhelp_copy'] = 'Copiar um tópico de um quadro para a outra. Os usuários podem selecionar apenas alvo quadro que estão autorizados a aceder.';
$txt['copytopic_negativeseo'] = 'Estar ciente de que existe talvez um efeito negativo SEO, copiando tópicos como ela pode obter detectado pelo Search Engines como duplicada conteúdo.';
]]></add>
</operation>
</file>

<file name="$languagedir/Modifications.portuguese-utf8.php" error="skip">
<!--// Adds the language strings used by this modification //-->
<operation>
<search position="after"><![CDATA[?>]]></search>
<add><![CDATA[
$txt['copytopic_copyto'] = 'Copiar para';
$txt['quick_mod_copy'] = 'Copiar selecionados para';
$txt['copytopic'] = 'Copia Topico';
$txt['copytopics'] = 'Copia Topicos';
$txt['cannot_copy'] = 'Você não tem as permissões para permitir que você copiar um tópico';
$txt['copytopic_noboards'] = 'Não há quadro para copiar a este tópico!';
$txt['copytopic_notallowed'] = 'Você não tem permissão para copiar tópicos do quadro não é possível visualizar!';
$txt['permissionname_copy'] = 'Copia Topico';
$txt['permissionhelp_copy'] = 'Copiar um tópico de um quadro para a outra. Os usuários podem selecionar apenas alvo quadro que estão autorizados a aceder.';
$txt['copytopic_negativeseo'] = 'Estar ciente de que existe talvez um efeito negativo SEO, copiando tópicos como ela pode obter detectado pelo Search Engines como duplicada conteúdo.';
]]></add>
</operation>
</file>

</modification>
Title: Re: Copy Topics v1.3
Post by: SAMm on March 21, 2008, 08:20:16 AM
hi man
nice mod

but, can you say me only how can i put te X to delete de topic like you have in the first screenshot?

this X only see the admins ¿?
thx!!
Title: Re: Copy Topics v1.3
Post by: karlbenson on March 21, 2008, 11:07:51 AM
You need to enable Quick Moderation.

profile > Look And Layout >

Enable Quick Moderation.  Select Icons or Checkboxes.
Title: Re: Copy Topics v1.3
Post by: SAMm on March 21, 2008, 03:09:45 PM
thanks karl!
i dont see that line :P what a n00b question xD
Title: Re: Copy Topics v1.3
Post by: Basie on March 21, 2008, 07:54:42 PM
Quote from: karlbenson on March 21, 2008, 11:07:51 AM
You need to enable Quick Moderation.

profile > Look And Layout >

Enable Quick Moderation.  Select Icons or Checkboxes.

Looks as though you can't use the check boxes to copy a topic to the same forum though.
Title: Re: Copy Topics v1.3
Post by: karlbenson on March 21, 2008, 07:56:05 PM
Unfortunately not.
(unless you've got no other forums)

Its because it hijacks the move topic dropdown box for which you can't move to the same forum.
Title: Re: Copy Topics v1.3
Post by: Eliana Tamerin on March 21, 2008, 08:57:57 PM
Just copy it to another forum then move it back. Probably the easiest solution.
Title: Re: Copy Topics v1.3
Post by: Basie on March 21, 2008, 09:00:34 PM
I know, I was just pointing it out in case it was something the mod author had overlooked.
Title: Re: Copy Topics v1.3
Post by: perplexed on March 24, 2008, 12:01:50 PM
if it was in the same forum ( assume you mean board) then why would it need to be copied?
Title: Re: Copy Topics v1.0
Post by: ltdeta on April 22, 2008, 01:48:45 PM
Quote from: ltdeta on February 07, 2008, 02:31:10 PM
German translation :)

$txt['copytopic_copyto'] = 'kopieren nach';
$txt['quick_mod_copy'] = 'kopiere markierte Themen nach';
$txt['copytopic'] = 'kopiere Thema';
$txt['copytopics'] = 'kopiere Themen';
$txt['cannot_copy'] = 'Du hast keine Berechtigung, die es dir erlaubt ein Thema zu kopieren';
$txt['copytopic_noboards'] = 'Es gibt kein Board in die du das Thema kopieren kannst!';
$txt['copytopic_notallowed'] = 'Du bist nicht berechtigt Themen in Boards zu kopieren, auf die du keinen Zugriff hast!';
$txt['permissionname_copy'] = 'kopiere Thema';
$txt['permissionhelp_copy'] = 'kopiert ein Thema von einem Board in ein anderes. Benutzer können nur Boards als Ziel auswählen, auf die sie Zugriff haben';
$txt['copytopic_negativeseo'] = 'Beachte, das kopierte Themen von Suchmaschinen, aufgrund negativen SEO (Search engine optimization) Effekte, als doppelter Inhalt gedeutet werden könnte.';

small mistake

change
$txt['permissionname_copy'] = 'kopiere Thema';

to
$txt['permissionname_copy'] = 'Themen kopieren';
Title: Re: Copy Topics v1.3
Post by: Marcus Forsberg on April 27, 2008, 08:58:34 AM
Swedsih translation

$txt['copytopic_copyto'] = 'Kopiera till';
$txt['quick_mod_copy'] = 'Kopiera markerade till';
$txt['copytopic'] = 'Kopiera ämne';
$txt['copytopics'] = 'Kopiera ämnen';
$txt['cannot_copy'] = 'Du har inte rätt att tillåta dig själv att kopiera ämnen';
$txt['copytopic_noboards'] = 'Det finns inga tavlor att kopiera dessa ämnen till!';
$txt['copytopic_notallowed'] = 'Du kan inte kopiera ämnen till tavlor du inte har rätt att visa!';
$txt['permissionname_copy'] = 'Kopiera ämne';
$txt['permissionhelp_copy'] = 'Kopiera ett ämne från en tavla till en annan. Använare kan bara välja att kopiera till tavlor de har rätt att se.';
$txt['copytopic_negativeseo'] = 'Notera att det kan uppstå en negativ SEO effekt när man kopierar ämnen då Sökmoterer kan uppfatta det som duplicerat innehåll.';
Title: Re: Copy Topics v1.3
Post by: christicehurst on May 07, 2008, 06:29:48 AM
Big Error at the top of my site page

$txt['copytopic_copyto'] = 'Copy to'; $txt['quick_mod_copy'] = 'Copy selected to'; $txt['copytopic'] = 'Copy Topic'; $txt['copytopics'] = 'Copy Topics'; $txt['cannot_copy'] = 'You do not have the permissions to allow you to copy a topic'; $txt['copytopic_noboards'] = 'There are no boards to copy this topic to!'; $txt['copytopic_notallowed'] = 'You are not allowed to copy topics to boards you cannot view!'; $txt['permissionname_copy'] = 'Copy Topic'; $txt['permissionhelp_copy'] = 'Copy a topic from one board to the other. Users can only select target boards they are allowed to access.'; $txt['copytopic_negativeseo'] = 'Be aware that there maybe a negative SEO effect by copying topics as it may get detected by Search Engines as duplicated content.';

Need this fixed pretty soon.
Title: Re: Copy Topics v1.3
Post by: Eliana Tamerin on May 07, 2008, 08:06:06 AM
Open your Modifications.english.php file. Find that line, and move it above the ?> tag. Save and upload.
Title: Re: Copy Topics v1.3
Post by: Jelle Mees on May 13, 2008, 08:43:04 PM
Someone told me that an error on my website is releated to this modification.

Can you please read this thread and confirm that this is the case:
http://www.simplemachines.org/community/index.php?topic=239274.0
Title: Re: Copy Topics v1.3
Post by: karlbenson on May 13, 2008, 08:58:16 PM
It does look like to me.
Although I'm not sure why I need $txt strings for those as I don't use them :(

I'll look into it.
It could be a 2.x thing?

Edit: Ok, I think its a bug with my permissions.

Edit Sources/ManagePermissions.php
FIND
'copy' => array(true, 'topic', 'moderate', 'moderate'),
REPLACE
'copy' => array(false, 'topic', 'moderate'),
Title: Re: Copy Topics v1.3
Post by: Jelle Mees on May 13, 2008, 09:22:58 PM
karlbenson, I did what you asked me to do.

I still have these errors on the permissions page:

QuoteNotice: Undefined index: permissionname_copy_own in /mounted-storage/home95c/sub006/sc26341-IINL/www/FlemishArmySite/Trackmania/Sources/ManagePermissions.php on line 1642

Notice: Undefined index: permissionname_copy_any in /mounted-storage/home95c/sub006/sc26341-IINL/www/FlemishArmySite/Trackmania/Sources/ManagePermissions.php on line 1646

And this is what I see know when I click on uninstall:

Quote*     1.     Execute Modification     ./index.php     Test successful
      1.    Replace    ./index.php    Test successful
*    2.    Execute Modification    ./Sources/MessageIndex.php    Test successful
      1.    Replace    ./Sources/MessageIndex.php    Test successful
      2.    Replace    ./Sources/MessageIndex.php    Test successful
      3.    Replace    ./Sources/MessageIndex.php    Test successful
*    3.    Execute Modification    ./Sources/Display.php    Test successful
      1.    Replace    ./Sources/Display.php    Test successful
*    4.    Execute Modification    ./Sources/ManagePermissions.php    Test failed
      1.    Replace    ./Sources/ManagePermissions.php    Test successful
      2.    Replace    ./Sources/ManagePermissions.php    Test failed
*    5.    Execute Modification    ./Themes/default/MessageIndex.template.php    Test successful
      1.    Replace    ./Themes/default/MessageIndex.template.php    Test successful
      2.    Replace    ./Themes/default/MessageIndex.template.php    Test successful
      3.    Replace    ./Themes/default/MessageIndex.template.php    Test successful
      4.    Replace    ./Themes/default/MessageIndex.template.php    Test successful
*    6.    Execute Modification    ./Themes/default/Display.template.php    Test successful
      1.    Replace    ./Themes/default/Display.template.php    Test successful
*    7.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
      1.    Replace    ./Themes/default/languages/Modifications.english.php    Test successful
*    8.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Test failed
      1.    Replace    ./Themes/default/languages/Modifications.english-utf8.php    Test failed
   9.    Execute Modification    ./Themes/default/languages/Modifications.english_british.php    Skipping file
   10.    Execute Modification    ./Themes/default/languages/Modifications.english_british-utf8.php    Skipping file
   11.    Execute Modification    ./Themes/default/languages/Modifications.german.php    Skipping file
   12.    Execute Modification    ./Themes/default/languages/Modifications.german-utf8.php    Skipping file
   13.    Execute Modification    ./Themes/default/languages/Modifications.turkish.php    Skipping file
   14.    Execute Modification    ./Themes/default/languages/Modifications.turkish-utf8.php    Skipping file
   15.    Delete File    ./Sources/CopyTopic.php    
   16.    Delete File    ./Themes/default/CopyTopic.template.php    
   17.    Delete File    ./Themes/default/images/buttons/admin_copy.gif    
   18.    Delete File    ./Themes/default/images/icons/quick_copy.gif    

The following errors on the uninstall page are now fixed:

QuoteNotice: Undefined index: failed in /mounted-storage/home95c/sub006/sc26341-IINL/www/FlemishArmySite/Trackmania/Sources/Packages.php on line 485

Notice: Undefined index: position in /mounted-storage/home95c/sub006/sc26341-IINL/www/FlemishArmySite/Trackmania/Sources/Packages.php on line 486

Notice: Undefined index: failed in /mounted-storage/home95c/sub006/sc26341-IINL/www/FlemishArmySite/Trackmania/Sources/Packages.php on line 490
Title: Re: Copy Topics v1.3
Post by: karlbenson on May 13, 2008, 09:26:43 PM
The bottom three are smf 2.x errors.  Not related to my mod - but mods generally.
That should be fixed for 2.x.

As for the actual error.
Try clearing out your SMF Cache
Admin > Forum Maintenance >
Empty Cache.

if its still not fixed. I'll have to setup a test install and debug it properly. Although at 2.30am in the morning, that would probably have to wait until tomorrow.
Title: Re: Copy Topics v1.3
Post by: rsw686 on May 13, 2008, 09:27:40 PM
If you set the first value of the array to true then it has split permissions for own and any. You need two additional text strings ending with _own and _any. Also when checking permissions you need to append _any and _own.

For example when I modified the tagging mod to use the split permissions I had

$txt['permissionname_tags_add'] = 'Add tags to topics';
$txt['permissionhelp_tags_add'] = 'Users are allowed to add tags to topics';
$txt['permissionname_tags_add_own'] = 'Own topic';
$txt['permissionname_tags_add_any'] = 'Any topic';

allowedTo('tags_add_any') || ($row['id_member'] == $user_info['id'] && allowedTo('tags_add_own')

Otherwise if it is set to false you don't need those last two text strings and checking permissions would just be

allowedTo('tags_add')
Title: Re: Copy Topics v1.3
Post by: Jelle Mees on May 13, 2008, 09:32:38 PM
Quote from: rsw686 on May 13, 2008, 09:27:40 PM
If you set the first value of the array to true then it has split permissions for own and any. You need two additional text strings ending with _own and _any. Also when checking permissions you need to append _any and _own.

For example when I modified the tagging mod to use the split permissions I had

$txt['permissionname_tags_add'] = 'Add tags to topics';
$txt['permissionhelp_tags_add'] = 'Users are allowed to add tags to topics';
$txt['permissionname_tags_add_own'] = 'Own topic';
$txt['permissionname_tags_add_any'] = 'Any topic';

allowedTo('tags_add_any') || ($row['id_member'] == $user_info['id'] && allowedTo('tags_add_own')

Otherwise if it is set to false you don't need those last two text strings and checking permissions would just be

allowedTo('tags_add')

I don't understand what I should do.

Quote from: karlbenson on May 13, 2008, 09:26:43 PM
The bottom three are smf 2.x errors.  Not related to my mod - but mods generally.
That should be fixed for 2.x.

As for the actual error.
Try clearing out your SMF Cache
Admin > Forum Maintenance >
Empty Cache.

if its still not fixed. I'll have to setup a test install and debug it properly. Although at 2.30am in the morning, that would probably have to wait until tomorrow.

This I understand but the empty file cache didn't fix anything.

And like I sad before, the bottom 3 errors were no longer visible after I made the change you suggested to me. You already fixed those :)
Title: Re: Copy Topics v1.3
Post by: karlbenson on May 13, 2008, 09:33:36 PM
Jelle Mees,
Making the change manually will prevent the mod installing automatically. Thats why when you made that change, that piece failed.
RSW686 comment/explanation was directed towards me to fix, rather than you.
If you've made the change like I suggested. Then go and empty your SMF Cache as I directed


Indeed rsw686.
Just spotted that.  My mod wasn't meant to have split permissions. The above change should have fixed that.
Although that page maybe cached, hence my suggestion to reset it.

I'll have to take a look tomorrow and provide a patch/fix.
Title: Re: Copy Topics v1.3
Post by: rsw686 on May 13, 2008, 09:34:12 PM
Quote from: Jelle Mees on May 13, 2008, 09:32:38 PM
I don't understand what I should do.

He already stated what to change a few posts up. Here's the direct link

http://www.simplemachines.org/community/index.php?topic=218406.msg1542732#msg1542732
Title: Re: Copy Topics v1.3
Post by: karlbenson on May 13, 2008, 09:35:07 PM
Indeed, but you might also need to empty the smf cache. I'm not sure if some of it is cached in 2.x.
Title: Re: Copy Topics v1.3
Post by: Jelle Mees on May 13, 2008, 09:39:07 PM
Quote from: rsw686 on May 13, 2008, 09:34:12 PM
Quote from: Jelle Mees on May 13, 2008, 09:32:38 PM
I don't understand what I should do.

He already stated what to change a few posts up. Here's the direct link

http://www.simplemachines.org/community/index.php?topic=218406.msg1542732#msg1542732

And I already stated that I did what karlbenson told me to do and that that edit fixed the 3 errors I had at the top of the uninstall page of the Copy Topics mod.
I also already stated that I did empty the SMF cache but that this didn't fix the errors on the permission page.

I am more then happy to give karlbenson my admin login so that he can have a quick look for himself.
Title: Re: Copy Topics v1.3
Post by: karlbenson on May 13, 2008, 09:41:09 PM
As I stated, those 3 other errors are a bug in SMF 2.0 3.1.  It isn't related to this mod.

I'll have to look at this tomorrow as its heading for 2.45am and I'm really tired.

Since its not in a public area, it shouldn't be any issue for you. Its just an unset variable.
I'll PM you tomorrow when I've fixed it and uploaded v1.4
Title: Re: Copy Topics v1.3
Post by: Jelle Mees on May 13, 2008, 09:44:52 PM
Quote from: karlbenson on May 13, 2008, 09:41:09 PM
As I stated, those 3 other errors are a bug in SMF 2.0 3.1.  It isn't related to this mod.

I'll have to look at this tomorrow. Since its not in a public area, it shouldn't be any issue for you.

Hey, I am only trying to fix some errors. It's true that these errors don't show up in a public area but I don't want to keep installing stuff on my forum knowing that the forum isn't working properly at the moment. Remember, I thaught I was helping, the guy who helped me fix my website told me to submit a SMF bugreport because he thaught that it was a SMF 2 bug.
Title: Re: Copy Topics v1.3
Post by: karlbenson on May 13, 2008, 09:46:39 PM
I appreciate all bug reports.

I often re-iterate things for clarity if I don't believe I've been clear enough or I don't believe I've been understood.
(and writing things at this time of the morning causes strange results)
Title: Re: Copy Topics v1.3
Post by: Jelle Mees on May 13, 2008, 09:51:30 PM
Well, I'll do anything to get this fixed, eaven though my forum is working just fine now. It's only for the better that SMF and all the mods are bugfree. :)
Title: Re: Copy Topics v1.3
Post by: karlbenson on May 13, 2008, 09:55:12 PM
I've responded to your pm.

I'll speak to you tomorrow.

Bedtime for me :P
Title: Re: Copy Topics v1.4
Post by: karlbenson on May 14, 2008, 09:07:39 PM
1.4 - 15th May 2008
o Checked works for SMF 1.1.5 and SMF 2.0 Beta 3.1
o Fixed Undefined $txt string Permission bug in 2.x version only (Thanks to Jelle Mees)
o Added Portuguese/Portuguese-utf8 language strings (Thanks to joomlamz)

Uninstall/reinstall to use v1.4

Alternatively you can make the bug fix manually.

Edit Sources/ManagePermissions.php
FIND
'copy' => array(true, 'topic', 'moderate', 'moderate'),
REPLACE
'copy' => array(false, 'topic', 'moderate'),

You may need to empty SMF Cache after making the fix.
Title: Re: Copy Topics v1.4
Post by: Pspuser007 on June 11, 2008, 08:53:59 AM
Hello karlbenson!

I have installed this mod to my 1.1.5 smf forum.
I am using TP 0.9.8 and using the mystic jade theme.

I used the package manager to install the mod and installed it succesfully.
But the icons of "copy" don't show up in mystic jade.So i thought to upload the 2 .gif files at the images folder of Mystic Jade.When i did that and refreshed the page i saw that not only the admin_copy.gif was not showing up but also the move icon had disappeared and at there place had left the text "Move Topic" and "Copy Topic".

What can i do?
Title: Re: Copy Topics v1.4
Post by: karlbenson on June 11, 2008, 11:40:11 AM
Did you do the edits to Mystic Jade?
Title: Re: Copy Topics v1.4
Post by: Eliana Tamerin on June 11, 2008, 02:05:05 PM
MysticJade only has an index.template.php file.
Title: Re: Copy Topics v1.4
Post by: Pspuser007 on June 11, 2008, 03:47:56 PM
Quote from: Eliana Tamerin on June 11, 2008, 02:05:05 PM
MysticJade only has an index.template.php file.
Yes indeed^^^...
So what can i do??
Title: Re: Copy Topics v1.4
Post by: karlbenson on June 11, 2008, 06:41:59 PM
Can you link me to a topic where this is happening?
And if you could provide me with a test account via pm with permissions to copy + move, I'll take a look.
Title: Re: Copy Topics v1.4
Post by: Pspuser007 on June 11, 2008, 06:52:11 PM
Ok i fixed it!!:)
Title: Re: Copy Topics v1.4
Post by: jossanaijr on June 26, 2008, 01:45:52 PM
One thing I would like to have in this mod is the option to include a custom text field in the bottom and the option to include the original link and to lock the copy automatically.
In this way copied topics could have something like:

This is a copied lock topic.
Comment this topic in the original : link

Title: Re: Copy Topics v1.4
Post by: karlbenson on June 26, 2008, 05:59:38 PM
There was a reason why it wasn't included.
Having duplicated topics is likely to result in negative seo.
Therefore I felt it important NOT to directly link from one to the other to lessen the impact.

And if I'm honest, I don't really intend to add any further functionality to the mod other than keep it working for smf versions. (until such time as someone takes it over from me)
Title: Re: Copy Topics v1.4
Post by: jossanaijr on June 26, 2008, 06:03:52 PM
OK, Karl,
thanks.
Title: Re: Copy Topics v1.4
Post by: ltdeta on July 16, 2008, 04:25:31 AM
copying a topic will produce 2 topics with status "new" (the new and old one)

is it possible only make the new topic marked as "new"?
Title: Re: Copy Topics v1.4
Post by: karlbenson on July 17, 2008, 08:29:13 PM
There isn't at the moment.

Although to be perfectly honest. Both being marked 'new/updated' would probably be intended functionality.
Title: Re: Copy Topics v1.4
Post by: allymcbeal on July 23, 2008, 03:12:20 PM
Hi, I used this mod but now it give me this error

Duplicate entry '0-23' for key 2
File: /var/www/vhost/allymcbeal.it/home/html/smf1/Sources/CopyTopic.php
Line: 150

What happen? :)
Title: Re: Copy Topics v1.4
Post by: karlbenson on July 23, 2008, 06:28:09 PM
Hey.  The error has occured because it appears theres an error in one of your tables.

goto admin > forum mainenance.

Click Fix forum errors
Once thats finished
Click Recalculate forum stats.

IIRC that should fix it and you should be able to copy topics from then on.
Title: Re: Copy Topics v1.4
Post by: allymcbeal on July 24, 2008, 03:39:06 AM
Thank you, now it works! :)
Title: Re: Copy Topics v1.4
Post by: karlbenson on July 24, 2008, 05:03:21 AM
:)

Thx for letting me know.
Title: Re: Copy Topics v1.4
Post by: digit on July 24, 2008, 06:00:48 AM
Installed without errors...  but when trying to copy a topic, I am getting....

Unknown column 'b.ID_BOARD' in 'where clause'
File: /users/Sources/CopyTopic.php
Line: 624

Note: It appears that your database may require an upgrade. Your forum's files are currently at version SMF 1.1.5, while your database is at version 1.1 RC2. The above error might possibly go away if you execute the latest version of upgrade.php.

Do I NEED to upgrade the database?

EDIT:  upon further testing, It doesn't happen when I click on the text "Copy Topic" at the bottom of the thread. (WOOHOO!!!) 

It happened when I checked the check box on the quick mod button on the message index page, then selected the pull down menu "Copy Topic".
Title: Re: Copy Topics v1.4
Post by: karlbenson on July 24, 2008, 09:13:13 AM
digit, what version of smf are you using?
Title: Re: Copy Topics v1.4
Post by: digit on July 24, 2008, 10:36:54 AM
1.1.5
Title: Re: Copy Topics v1.4
Post by: karlbenson on July 24, 2008, 12:44:03 PM
thx.
I think I see it.

When I get a moment, I'll try to post a fixed version.
Title: Re: Copy Topics v1.4
Post by: Adish - (F.L.A.M.E.R) on July 26, 2008, 07:27:05 PM
How to copy one topic to multiple boards by just doing the steps once..??? possible...?? Please let me know...

Thanks.
Title: Re: Copy Topics v1.4
Post by: Eliana Tamerin on July 27, 2008, 12:40:37 AM
That is not currently a feature. You would have to repeat the steps to copy to multiple boards.
Title: Re: Copy Topics v1.4
Post by: Adish - (F.L.A.M.E.R) on July 27, 2008, 05:04:41 AM
Alright, Thanks for the information.
Title: Re: Copy Topics v1.4
Post by: PAPABEAR on August 02, 2008, 01:25:32 PM
I installed this and it is working. What edit do I need to do for it to work in my custom theme? I tried the package parser link in the beginning of this thread to no avail. I am using v1.1.5. I assume I have to edit my display.template.php. Can you please tell me what edits I need to do?
Title: Re: Copy Topics v1.4
Post by: karlbenson on August 02, 2008, 01:27:49 PM
Manual Instructions.
http://custom.simplemachines.org/mods/index.php?action=parse;mod=1074;attach=55952;smf_version=1.1.5
Title: Re: Copy Topics v1.4
Post by: squad on August 26, 2008, 01:41:24 PM
Hi there, I would love this modification but I am getting the following when I am trying to install via the Package Manager. I have to say that I have no idea how to Manually Install, I'm a bit of a dummy when it comes to this, I would need heaps of easy baby steps and I know no one here has the time, so I am not asking for that.

I am using SMF 1.1.5 Babylon Theme - this is what happens when I try and install:

'Error in Package Installation

At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.'

I certainly didn't continue :) Any help would be greatly appreciated :)

Title: Re: Copy Topics v1.4
Post by: karlbenson on August 26, 2008, 05:23:14 PM
The only solution would be to manually install.

The edits you will have to perform are available via the mod-site.
http://custom.simplemachines.org/mods/index.php?action=parse;mod=1074;attach=55952;smf_version=1.1.5
Title: Re: Copy Topics v1.4
Post by: squad on August 26, 2008, 09:59:14 PM
Thanks karlbenson, I will have a look tonight :)
Title: Re: Copy Topics v1.4
Post by: InternetMafia on October 09, 2008, 07:02:08 PM
Any plans to make this compatible with 1.1.6
Title: Re: Copy Topics v1.4
Post by: karlbenson on October 09, 2008, 10:59:54 PM
this should work on any 1.1.x version
Title: Re: Copy Topics v1.4
Post by: Deepsnows on October 20, 2008, 02:55:32 AM
Thai Languages translate :)

$txt['copytopic_copyto'] = 'คัดลอกหัวข้อ';
$txt['quick_mod_copy'] = 'คัดลอกไปยัง';
$txt['copytopic'] = 'คัดลอกหัวข้อ';
$txt['copytopics'] = 'คัดลอกหัวข้อ';
$txt['cannot_copy'] = 'คุณไม่ได้รับอนุญาตให้คัดลอกหัวข้อ';
$txt['copytopic_noboards'] = 'ไม่พบบอร์ดที่จะคัดลอกหัวข้อไป!';
$txt['copytopic_notallowed'] = 'คุณไม่ได้รับอนุญาตให้คัดลอกหัวข้อไปยังบอร์ดนี้!';
$txt['permissionname_copy'] = 'คัดลอกหัวข้อ';
$txt['permissionhelp_copy'] = 'คัดลอกหัวข้อจากบอร์ดหนึ่งไปยังอีกบอร์ดหนึ่ง. สมาชิกสามารถคัดลอกหัวข้อไปยังบอร์ดที่ได้รับอนุญาตเท่านั้น.';
$txt['copytopic_negativeseo'] = 'การคัดลอกหัวข้อจะมีผลทาง SEO โดยเมื่อถูกพบโดย Search Engines จะถูกมองว่าเป็น Duplicated Content.';


This good mod
Thanks
Title: Re: Copy Topics v1.4
Post by: digit on October 26, 2008, 01:58:22 AM
Quote from: karlbenson on July 24, 2008, 12:44:03 PM
thx.
I think I see it.

When I get a moment, I'll try to post a fixed version.

Karl did you decide this problem... http://www.simplemachines.org/community/index.php?topic=218406.msg1627666#msg1627666

Unknown column 'b.ID_BOARD' in 'where clause'
File: /users/Sources/CopyTopic.php
Line: 624

...was only on my end, and if so, any idea ho I can fix it?  Thanks in advance.
Title: Re: Copy Topics v1.4
Post by: LinuxFanatic on December 18, 2008, 06:06:53 PM
Currently I'm using SMF 1.1.7 and this modification works well - good work!
Title: Re: Copy Topics v1.4
Post by: karlbenson on December 18, 2008, 06:19:20 PM
Lines 621 to 624
Sources/CopyTopics.php

FIND
FROM {$db_prefix}boards
WHERE ID_BOARD = $_REQUEST[move_to]
AND $user_info[query_see_board]

REPLACE
FROM {$db_prefix}boards as b
WHERE b.ID_BOARD = $_REQUEST[move_to]
AND $user_info[query_see_board]
Title: Re: Copy Topics v1.4
Post by: LinuxFanatic on December 18, 2008, 07:04:02 PM
I noticed that only administrators can copy topic  :o

Does someone know, how to solve/change this so that moderators can also make use of this feature ?


Hehe I solve this issue in the ACP for user and group permissions  :D

Sorry  :P :D
Title: Re: Copy Topics v1.4
Post by: allymcbeal on February 23, 2009, 07:32:05 PM
Hi, I have changed theme and now I can't see the write "copy topic" I think because my new template use the image like button.
The first is the image with default theme and English language (whit Italian language I can't see the copy choice)
The secondo is the new theme and Italian language (also whit englis language I can't see the copy choice).

How can I do to fix it?
Title: Re: Copy Topics v1.4
Post by: d-mon on February 28, 2009, 03:46:31 AM
Hi!

Here is the Hungarian language modification:


<file name="$languagedir/Modifications.hungarian.php">
<!--// Adds the language strings used by this modification //-->
<operation>
<search position="end" />
<add><![CDATA[
$txt['copytopic_copyto'] = 'Másolás ide';
$txt['quick_mod_copy'] = 'Kiválasztott másolása ide';
$txt['copytopic'] = 'Téma másolása';
$txt['copytopics'] = 'Témák másolása';
$txt['cannot_copy'] = 'Nem engedélyezett számodra a témák másolása';
$txt['copytopic_noboards'] = 'Nincs kijelölt cél a másoláshoz!';
$txt['copytopic_notallowed'] = 'Nincs engedélyed a kijelölt cél eléréséhez!';
$txt['permissionname_copy'] = 'Téma másolása';
$txt['permissionhelp_copy'] = 'Egy téma másolása egy másik helyre. A felhasználónak rendelkeznie kell engedéllyel a kijelölt célhoz, hogy másolni tudja a témát.';
$txt['copytopic_negativeseo'] = 'Legyél óvatos, hisz a másolás nem várt hibákat eredményezhet, pl. kereséskor duplán jelenik meg a találat..';
]]></add>
</operation>
</file>



...and Hungarian-utf8 modification:


<file name="$languagedir/Modifications.hungarian-utf8.php">
<!--// Adds the language strings used by this modification //-->
<operation>
<search position="end" />
<add><![CDATA[
$txt['copytopic_copyto'] = 'Másolás ide';
$txt['quick_mod_copy'] = 'Kiválasztott másolása ide';
$txt['copytopic'] = 'Téma másolása';
$txt['copytopics'] = 'Témák másolása';
$txt['cannot_copy'] = 'Nem engedélyezett számodra a témák másolása';
$txt['copytopic_noboards'] = 'Nincs kijelölt cél a másoláshoz!';
$txt['copytopic_notallowed'] = 'Nincs engedélyed a kijelölt cél eléréséhez!';
$txt['permissionname_copy'] = 'Téma másolása';
$txt['permissionhelp_copy'] = 'Egy téma másolása egy másik helyre. A felhasználónak rendelkeznie kell engedéllyel a kijelölt célhoz, hogy másolni tudja a témát.';
$txt['copytopic_negativeseo'] = 'Legyél óvatos, hisz a másolás nem várt hibákat eredményezhet, pl. kereséskor duplán jelenik meg a találat..';
]]></add>
</operation>
</file>
Title: Re: Copy Topics v1.4
Post by: d-mon on February 28, 2009, 04:08:05 AM
Quote from: allymcbeal on February 23, 2009, 07:32:05 PM
Hi, I have changed theme and now I can't see the write "copy topic" I think because my new template use the image like button.
The first is the image with default theme and English language (whit Italian language I can't see the copy choice)
The secondo is the new theme and Italian language (also whit englis language I can't see the copy choice).

How can I do to fix it?

Hi!

Your problem is, when you selected the Italian language, then te mod isn't italian lang. If you like italian lang, then you make that.
Unzip the copytopic mod.
Open with text editor the "install-1.1.x.xml" file, when you have 1.1.x SMF forum, or "install-2.x.xml" file when you have 2.x Forum.
Search the "  <file name="$languagedir/Modifications.english.php" >  "
and  exchange it for this:
"  <file name="$languagedir/Modifications.italian.php" >  "
or
"  <file name="$languagedir/Modifications.italian-utf8.php" >  "
when you using italian UTF-8 lang.


now translate under it the 'Copy to', 'Copy selected to', 'Copy Topic', etc. onto Italian.

When you have done, make zip, and uninstall the old mod, and install the new mod.
Title: Re: Copy Topics v1.4
Post by: floydpink on March 19, 2009, 03:04:04 AM
Installed in 1.1.8 and worked perfectly. Thanks very much.

Button image attached for anyone using buttons in their forum.
Title: Re: Copy Topics v1.4
Post by: squad on April 20, 2009, 12:20:53 PM
It' s only taken several months, but I have finally been
able  to instal this on 1.1.8 without any problems.

Only thing I have noticed is it doesn't update the post
count or other stats.

Happy to live with that, unless someone knows a easy,
idiot proof way of adjusting this :)

I have read all this thread, and have done the Forum
Maintenance that has been mentioned.
Title: Re: Copy Topics v1.4
Post by: allymcbeal on April 29, 2009, 05:19:28 PM
Quote from: d-mon on February 28, 2009, 04:08:05 AM
Quote from: allymcbeal on February 23, 2009, 07:32:05 PM
Hi, I have changed theme and now I can't see the write "copy topic" I think because my new template use the image like button.
The first is the image with default theme and English language (whit Italian language I can't see the copy choice)
The secondo is the new theme and Italian language (also whit englis language I can't see the copy choice).

How can I do to fix it?

Hi!

Your problem is, when you selected the Italian language, then te mod isn't italian lang. If you like italian lang, then you make that.
Unzip the copytopic mod.
Open with text editor the "install-1.1.x.xml" file, when you have 1.1.x SMF forum, or "install-2.x.xml" file when you have 2.x Forum.
Search the "  <file name="$languagedir/Modifications.english.php" >  "
and  exchange it for this:
"  <file name="$languagedir/Modifications.italian.php" >  "
or
"  <file name="$languagedir/Modifications.italian-utf8.php" >  "
when you using italian UTF-8 lang.


now translate under it the 'Copy to', 'Copy selected to', 'Copy Topic', etc. onto Italian.

When you have done, make zip, and uninstall the old mod, and install the new mod.

I have did it but it doen't works, because I can't see the button, also if I change language, and set English, there is always the problem, only if I set a default theme then I can see the option.

Title: Re: Copy Topics v1.4
Post by: JBlaze on June 12, 2009, 04:31:59 PM
New Update

6/12/09 - v1.5
o Updated compatibility for 1.1.9 and 2.0 RC1-1
Title: Re: Copy Topics v1.5
Post by: imno007 on June 13, 2009, 11:14:13 PM
I thought this was suppose to work with the core theme without editing. Not with my new install of 2.0 RC1-1 it doesn't....
Title: Re: Copy Topics v1.5
Post by: JBlaze on June 14, 2009, 01:14:34 PM
Quote from: imno007 on June 13, 2009, 11:14:13 PM
I thought this was suppose to work with the core theme without editing. Not with my new install of 2.0 RC1-1 it doesn't....

Are you getting any errors? Sometimes, mods can conflict with one another, thus preventing some mods from installing.

You may have to make manual edits to install this mod.
Title: Re: Copy Topics v1.5
Post by: imno007 on June 17, 2009, 05:02:57 PM
Quote from: JBlaze on June 14, 2009, 01:14:34 PM
Quote from: imno007 on June 13, 2009, 11:14:13 PM
I thought this was suppose to work with the core theme without editing. Not with my new install of 2.0 RC1-1 it doesn't....

Are you getting any errors? Sometimes, mods can conflict with one another, thus preventing some mods from installing.

You may have to make manual edits to install this mod.

Hi, thank for responding. Yes, a few of the tests failed for 'MessageIndex.template.php': Execute Modification, Add After, and Replace.

Also, it's saying Hungarian files can't be found, but they're not needed, right?

So I'm assuming that I have to edit 'MessageIndex.template.php'...
Title: Re: Copy Topics v1.5.1
Post by: JBlaze on June 17, 2009, 05:34:53 PM
Quote from: imno007 on June 17, 2009, 05:02:57 PM
Quote from: JBlaze on June 14, 2009, 01:14:34 PM
Quote from: imno007 on June 13, 2009, 11:14:13 PM
I thought this was suppose to work with the core theme without editing. Not with my new install of 2.0 RC1-1 it doesn't....

Are you getting any errors? Sometimes, mods can conflict with one another, thus preventing some mods from installing.

You may have to make manual edits to install this mod.

Hi, thank for responding. Yes, a few of the tests failed for 'MessageIndex.template.php': Execute Modification, Add After, and Replace.

Also, it's saying Hungarian files can't be found, but they're not needed, right?

So I'm assuming that I have to edit 'MessageIndex.template.php'...


Try the new update. There were a frew botched files on install because the package didnt pack up quite right.
Title: Re: Copy Topics v1.5.1
Post by: imno007 on June 19, 2009, 10:40:10 PM
I just tried it, JBlaze, and I'm getting the exact same errors. :(
Title: Re: Copy Topics v1.5.1
Post by: linette97 on June 21, 2009, 03:07:25 PM
Works great! Thanks!! needed something like this!!
Title: Re: Copy Topics v1.5.1
Post by: squad on June 21, 2009, 04:27:54 PM

I am using it very successfully, just wish it increased the post count as well  :o

Still it saves heaps of time, :)

Thank you.
Title: Re: Copy Topics v1.5.1
Post by: JBlaze on June 21, 2009, 04:29:54 PM
Quote from: imno007 on June 19, 2009, 10:40:10 PM
I just tried it, JBlaze, and I'm getting the exact same errors. :(

When you say "exact same errors", do you mean that you are getting the error on install still? If so, go to the mods page, parse the manual install instructions and make the manual edits. It just means that some other mod is interfering with the find/replace of the install.


Quote from: linette97 on June 21, 2009, 03:07:25 PM
Works great! Thanks!! needed something like this!!

Glad to help :)

Quote from: squad on June 21, 2009, 04:27:54 PM

I am using it very successfully, just wish it increased the post count as well  :o

Still it saves heaps of time, :)

Thank you.

No problem :)
Title: Re: Copy Topics v1.5.1
Post by: imno007 on June 25, 2009, 03:33:48 PM
Hi, yes, by the same errors, I meant the same errors I listed a couple a few posts up - error messages on install for:

5.     Execute Modification     ./Themes/default/MessageIndex.template.php     Test failed
3.     Add After     ./Themes/default/MessageIndex.template.php
4.     Replace     ./Themes/default/MessageIndex.template.php     Test failed

I had looked at the manual instructions. After looking at my core theme's 'MessageIndex.template.php' and not finding the first two or three code lines it says to look for, I gave up. And the default theme I use doesn't even have a 'MessageIndex.template.php'

Think I'll just try again next next version. :)
Title: Re: Copy Topics v1.4
Post by: Scratching my Head on July 14, 2009, 10:15:20 PM
Quote from: allymcbeal on April 29, 2009, 05:19:28 PM
I have did it but it doen't works, because I can't see the button

I use this exact same theme. No luck.
Couldn't say why.

Title: Re: Copy Topics v1.5.1
Post by: Green Death on September 23, 2009, 04:10:18 PM
There seems to be two tab characters amiss in the mod that are causing the problem.

I have attached the mod (changed for the two tabs) that works on my version of 2.0.

Hope this helps.
Title: Re: Copy Topics v1.5.1
Post by: Kimmie on September 27, 2009, 12:42:58 AM
is there any way to change this so that when you copy a thread it changes the new one to show being started from the person that copied it?
Title: Re: Copy Topics v1.5.1
Post by: Green Death on September 27, 2009, 02:21:17 AM
http://custom.simplemachines.org/mods/index.php?mod=1554

You could use that.
Title: Re: Copy Topics v1.5.1
Post by: Kimmie on September 27, 2009, 10:24:52 AM
Quote from: Green Death on September 27, 2009, 02:21:17 AM
http://custom.simplemachines.org/mods/index.php?mod=1554

You could use that.

Well I would prefer that mod however, that mod isn't compatible with 2.0.
Title: Re: Copy Topics v1.4
Post by: digit on September 27, 2009, 10:37:58 AM
Quote from: karlbenson on December 18, 2008, 06:19:20 PM
Lines 621 to 624
Sources/CopyTopics.php

FIND
FROM {$db_prefix}boards
WHERE ID_BOARD = $_REQUEST[move_to]
AND $user_info[query_see_board]

REPLACE
FROM {$db_prefix}boards as b
WHERE b.ID_BOARD = $_REQUEST[move_to]
AND $user_info[query_see_board]



I am not sure how I missed this post - that worked - Thanks Karll!
Title: Re: Copy Topics v1.5.1
Post by: smldmr on November 16, 2009, 04:21:35 PM
is a RC2-mod coming soon?
Title: Re: Copy Topics v1.6 (2.0 RC2 Compatible!)
Post by: JBlaze on November 16, 2009, 10:54:19 PM
Updated for RC2 compatibility!
Title: Re: Copy Topics v1.6 (2.0 RC2 Compatible!)
Post by: Sakae on February 11, 2010, 07:25:34 PM
I installed this mod, and when I tried to copy some topics to a new board I recently created, it didn't show anything.

Then I create a new topic on this target board, then the topic copied showed up.

Is it a bug?
Title: Re: Copy Topics v1.6 - Updated for SMF 2.0 RC3!
Post by: vbgamer45 on March 08, 2010, 08:48:25 PM
Updated for SMF 2.0 RC3!
Title: Re: Copy Topics v1.6 - Updated for SMF 2.0 RC3!
Post by: Siirist on April 02, 2010, 05:39:15 PM
Quote from: vbgamer45 on March 08, 2010, 08:48:25 PM
Updated for SMF 2.0 RC3!

Hello,

Yeah about that. Installed this 2 days ago without a problem.
Now want to un-install all mods (including this one) and themes due to problems on forum. :-[

Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently.

3.     Execute Modification     ./Sources/Display.php                 Test failed
1.     Replace                         ./Sources/Display.php                 Test failed

Solution?

Thanks in advance.

Be Well,
Cloud 8)
Title: Re: Copy Topics v1.6 - Updated for SMF 2.0 RC3!
Post by: vbgamer45 on April 02, 2010, 06:01:30 PM
You have to uninstall mods in reverse order that you have them installed.
Title: Re: Copy Topics v1.6 - Updated for SMF 2.0 RC3!
Post by: Siirist on April 02, 2010, 06:13:35 PM
Quote from: vbgamer45 on April 02, 2010, 06:01:30 PM
You have to uninstall mods in reverse order that you have them installed.

Okay, I can agree with that.  :)

I did not keep track of what order they were installed 2 days ago.  :-[
I have a back up from before I even started.  :)

Should I scrub out the forum (delete the folder) then completely install the SMF 2.0RC3?   ???

Then install a couple Themes that are upgraded for SMF 2.0RC3.  ;)

Then begin adding mods (while keeping track of the order the are installed)?

Sincerely, O:)
Cloud 8)
Title: Re: Copy Topics v1.6 - Updated for SMF 2.0 RC3!
Post by: vbgamer45 on April 02, 2010, 06:19:33 PM
Yes I would just install RC3 upgrade that would be the best bet
Title: Re: Copy Topics v1.6 - Updated for SMF 2.0 RC3!
Post by: Siirist on April 02, 2010, 06:27:52 PM
Quote from: vbgamer45 on April 02, 2010, 06:19:33 PM
Yes I would just install RC3 upgrade that would be the best bet

Just to be clear,

I should delete the forum folder on my host, and do a FRESH install?
(if I do this I will not post requests on how to un-install other mods)

OR

is it like MS Windows ie,

Simply run the RC3 UPGRADE again OVER the current data in the forum folder

I await your wisdom ( couse I have no idea  :P , never have had to use my weekly back ups)

Sincerely,
Cloud
Title: Re: Copy Topics v1.6 - Updated for SMF 2.0 RC3!
Post by: vbgamer45 on April 02, 2010, 06:39:32 PM
Just upload the upgrade files to root directory of your forum then run upgrade.php
Title: Re: Copy Topics v1.6 - Updated for SMF 2.0 RC3!
Post by: Siirist on April 02, 2010, 07:08:10 PM
Quote from: vbgamer45 on April 02, 2010, 06:39:32 PM
Just upload the upgrade files to root directory of your forum then run upgrade.php

Okie dokie. Will do ;D

Thanks. and I really mean it too.  :D

Be Well,
Cloud 8)


Thank you, my problem is SOLVED = by upgrading again,
all mods were removed (that is what I wanted to have happen)  :D
Title: Re: Copy Topics v1.6 - Updated for SMF 2.0 RC3!
Post by: Arantor on April 02, 2010, 08:05:36 PM
Just as a random note, you can use the "Sortable Packages (And Installed Time)" mod to show you what order you installed mods in.
Title: Re: Copy Topics v1.6 - Updated for SMF 2.0 RC3!
Post by: Siirist on April 02, 2010, 08:09:05 PM
Quote from: Arantor on April 02, 2010, 08:05:36 PM
Just as a random note, you can use the "Sortable Packages (And Installed Time)" mod to show you what order you installed mods in.

Arantor,

Thanks for mentioning this, but how?

Cloud 8)
Title: Re: Copy Topics v1.6 - Updated for SMF 2.0 RC3!
Post by: Arantor on April 02, 2010, 08:11:52 PM
You install the mod and it tells you when you installed all the other mods ;)

Sortable Packages (and Installed Time) (http://custom.simplemachines.org/mods/index.php?mod=2323)
Title: Re: Copy Topics v1.6 - Updated for SMF 2.0 RC3!
Post by: Siirist on April 02, 2010, 08:15:02 PM
Quote from: Arantor on April 02, 2010, 08:11:52 PM
You install the mod and it tells you when you installed all the other mods ;)

Sortable Packages (and Installed Time) (http://custom.simplemachines.org/mods/index.php?mod=2323)

HOW TOTALLY COOL!!!

THANKS FOR THE LINK!!!!

So this will be my first mod.

After I delete the all the themes (except for Core and Curve).

Thanks again.

Cloud 8)
Title: Re: Copy Topics v1.6 - Updated for SMF 2.0 RC3!
Post by: Arantor on April 02, 2010, 08:28:47 PM
:)

I'm glad I wrote that mod now ;) (It finally irked me enough to go in and figure out how to display it, before I handed the mod over)
Title: Re: Copy Topics v1.6 - Updated for SMF 2.0 RC3!
Post by: Siirist on April 02, 2010, 08:31:25 PM
Quote from: Arantor on April 02, 2010, 08:28:47 PM
:)

I'm glad I wrote that mod now ;) (It finally irked me enough to go in and figure out how to display it, before I handed the mod over)

*nods, can't even imagine writing down what mods were installed when*
Title: Re: Copy Topics v1.6 - Updated for SMF 2.0 RC3!
Post by: iPhoneDestek on September 25, 2010, 05:36:29 PM
NEW Translation by MOD Translator SirtLanVadisi in german and german-utf8 languages






<file name="$themedir/languages/Modifications.german.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Copy Topics MOD Translation by SirtLanVadisi.NeT
$txt['copytopic_copyto'] = 'Kopiere auf';
$txt['quick_mod_copy'] = 'Ausgewählte Themen kopieren auf';
$txt['copytopic'] = 'Thema kopieren';
$txt['copytopics'] = 'Themen kopieren';
$txt['cannot_copy'] = 'Sie haben nicht die Berechtigung, die es Ihnen erlaubt ein Thema zu kopieren';
$txt['copytopic_noboards'] = 'Es gibt kein Board in dem Sie das Thema kopieren können!';
$txt['copytopic_notallowed'] = 'Sie sind nicht Berechtigt, Themen im Boards zu kopieren, auf die Sie keinen Zugriff haben!';
$txt['permissionname_copy'] = 'Thema kopieren';
$txt['permissionhelp_copy'] = 'Kopiert man ein Thema von einem Board in ein anderem. Benutzer können nur Boards als Ziel auswählen, auf dem Sie Zugriff haben';
$txt['copytopic_negativeseo'] = 'Beachte, kopierte Themen werden von Suchmaschinen, aufgrund ein  negativen SEO (Search Engine Optimization) Effekte, als doppelter Inhalt gedeutet.';
// END Copy Topics MOD Translation by SirtLanVadisi.NeT
]]></add>
</operation>
</file>
<file name="$themedir/languages/Modifications.german-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
// Copy Topics MOD Translation by SirtLanVadisi.NeT
$txt['copytopic_copyto'] = 'Kopiere auf';
$txt['quick_mod_copy'] = 'Ausgewählte Themen kopieren auf';
$txt['copytopic'] = 'Thema kopieren';
$txt['copytopics'] = 'Themen kopieren';
$txt['cannot_copy'] = 'Sie haben nicht die Berechtigung, die es Ihnen erlaubt ein Thema zu kopieren';
$txt['copytopic_noboards'] = 'Es gibt kein Board in dem Sie das Thema kopieren können!';
$txt['copytopic_notallowed'] = 'Sie sind nicht Berechtigt, Themen im Boards zu kopieren, auf die Sie keinen Zugriff haben!';
$txt['permissionname_copy'] = 'Thema kopieren';
$txt['permissionhelp_copy'] = 'Kopiert man ein Thema von einem Board in ein anderem. Benutzer können nur Boards als Ziel auswählen, auf dem Sie Zugriff haben';
$txt['copytopic_negativeseo'] = 'Beachte, kopierte Themen werden von Suchmaschinen, aufgrund ein  negativen SEO (Search Engine Optimization) Effekte, als doppelter Inhalt gedeutet.';
// END Copy Topics MOD Translation by SirtLanVadisi.NeT
]]></add>
</operation>
</file>

Title: Re: Copy Topics v1.6 - Updated for SMF 2.0 RC3!
Post by: Ihmeliö on November 05, 2010, 09:12:47 AM
Would really love to have this on RC4 - any chance?
Title: Re: Copy Topics v1.6 - Updated for SMF 2.0 RC3!
Post by: Laza on December 04, 2010, 01:11:37 PM
Can you please update this mod for SMF 2.0 RC4  :)
Title: Re: Copy Topics v1.6 - Updated for SMF 2.0 RC3!
Post by: jkdove on February 08, 2011, 07:37:19 AM
Any chance of an update for RC-4?  This is one of the most useful mods in the history of mods.   Will definitely donate if I know this is still a live mod.
Title: Re: Copy Topics v1.6 - Updated for SMF 2.0 RC3!
Post by: City Builder on February 12, 2011, 04:33:51 AM
Yes, any chance this could be updated to RC4 please.  It's exactly what I need (I think).  I want to copy topics from one category in my forum to another so that the topic resides in two places.  Unless there is some sort of alias topic mod that would just place a link in one category linking to the real thread topic.
Title: Re: Copy Topics v1.6 - Updated for SMF 2.0 RC5!
Post by: vbgamer45 on February 12, 2011, 10:24:05 AM
Updated for SMF 2.0 RC4 and SMF 2.0 RC5
Title: Re: Copy Topics v1.6 - Updated for SMF 2.0 RC5!
Post by: City Builder on February 12, 2011, 11:20:57 AM
A question to you though.

It seems that the copied topic breaks image attachments.  They don't show up but for the missing image icon in the browser (I.E. the red X).  Is there a way of fixing this so that the images appear in both copies?
Title: Re: Copy Topics v1.6 - Updated for SMF 2.0 RC5!
Post by: vbgamer45 on February 12, 2011, 11:22:06 AM
I don't know I did not develop the mod originally would need to look at the code.
Title: Re: Copy Topics v1.6 - Updated for SMF 2.0 RC5!
Post by: City Builder on February 12, 2011, 11:45:16 AM
Ok, don't bother.  I thought it might only alias a topic from one category into another but I see that it physically makes a copy of it, thus having two topics identical until people start to post in them, which would just make everything really confusing.

Still, it will be useful for when I want to just copy our sites rules thread into all the other categories, so not wasted.

Thanks,
Title: Re: Copy Topics v1.6 - Updated for SMF 2.0 RC5!
Post by: manis99 on February 15, 2011, 03:46:56 AM
If u add rename topic option while copying then it will be great and also there wouldn't be much to concern abt seo.
Title: Re: Copy Topics v1.6 - Updated for SMF 2.0 RC5!
Post by: Arantor on February 15, 2011, 03:48:22 AM
If you're copying a topic, you're implicitly duplicating content - that alone hurts SEO.
Title: Re: Copy Topics v1.6 - Updated for SMF 2.0 RC5!
Post by: comedorsamus on February 27, 2011, 02:27:49 PM
Quote from: Arantor on February 15, 2011, 03:48:22 AM
If you're copying a topic, you're implicitly duplicating content - that alone hurts SEO.
Not if you are copying to a hidden board... right?  :-X
Title: Re: Copy Topics v1.6 - Updated for SMF 2.0 RC5!
Post by: Arantor on February 27, 2011, 05:07:04 PM
Not if it's to a hidden board, naturally. But how often does that happen in practice?
Title: Re: Copy Topics v1.6 - Updated for SMF 2.0 RC5!
Post by: Lady Night Owl on June 23, 2011, 07:09:10 AM
What is the ETA for the update to 2.0?
Title: Re: Copy Topics v1.6 - Updated for SMF 2.0!
Post by: vbgamer45 on June 23, 2011, 08:00:47 PM
Quote from: Lady Night Owl on June 23, 2011, 07:09:10 AM
What is the ETA for the update to 2.0?
Updated for 2.0 final
Title: Re: Copy Topics v1.6 - Updated for SMF 2.0!
Post by: Lady Night Owl on June 24, 2011, 10:11:08 PM
Quote from: vbgamer45 on June 23, 2011, 08:00:47 PM
Quote from: Lady Night Owl on June 23, 2011, 07:09:10 AM
What is the ETA for the update to 2.0?
Updated for 2.0 final

You're awesome, thank you :)

Just an FYI though, I'm getting what appears to be a minor error in the log:

Quote8: Undefined variable: Copy selected to
Apply Filter: Only show the errors from this file
File: /Themes/default/MessageIndex.template.php (main sub template - eval?)
Line: 332
Title: Re: Copy Topics v1.6 - Updated for SMF 2.0!
Post by: Shambles on October 05, 2011, 01:27:27 PM
Quote from: Lady Night Owl on June 24, 2011, 10:11:08 PM

Just an FYI though, I'm getting what appears to be a minor error in the log:

Quote8: Undefined variable: Copy selected to
Apply Filter: Only show the errors from this file
File: /Themes/default/MessageIndex.template.php (main sub template - eval?)
Line: 332

There's a small typo in the package.

Locate RC2\installrc4.xml within the package and change

$$txt['quick_mod_copy']
to
$txt['quick_mod_copy']

Or edit MessageIndex.template.php, locate the above string then edit out the superfluous "$" sign.
Title: Re: Copy Topics v1.6 - Updated for SMF 2.0!
Post by: Marco64Th on December 13, 2011, 01:49:18 AM
Did anyone fix the attachments not coming over to the copied topic? (v2.0.1)
Title: Re: Copy Topics v1.6 - Updated for SMF 2.0!
Post by: vbgamer45 on December 13, 2011, 12:45:04 PM
No updates were made not aware of that problem.
Title: Re: Copy Topics v1.6 - Updated for SMF 2.0!
Post by: Eclipse16V on December 29, 2011, 12:49:49 AM
Thanks for this Mod.
Runs nice on 2.0.2
Title: Re: Copy Topics v1.6 - Updated for SMF 2.0!
Post by: scimmiotto on June 27, 2012, 01:55:22 AM
how to use it? the are no screens
Title: Re: Copy Topics v1.6 - Updated for SMF 2.0!
Post by: Shambles on June 27, 2012, 03:38:34 AM
Quote from: scimmiotto on June 27, 2012, 01:55:22 AM
how to use it? the are no screens
"Copy Topic" button should appear at the bottom of the page of each topic (between "Move Topic" and "Remove Topic" on my forum).
Title: Re: Copy Topics v1.6 - Updated for SMF 2.0!
Post by: Bugo on August 30, 2012, 02:53:33 AM
Double $:
$$txt['quick_mod_copy']
Title: Re: Copy Topics v1.6 - Updated for SMF 2.0!
Post by: Shambles on August 30, 2012, 03:33:13 PM
Quote from: Bugo on August 30, 2012, 02:53:33 AM
Double $:
$$txt['quick_mod_copy']

::)

http://www.simplemachines.org/community/index.php?topic=218406.msg3177665#msg3177665

Do try to keep up  :P
Title: Re: Copy Topics v1.6 - Updated for SMF 2.0!
Post by: sabino on August 30, 2012, 08:33:11 PM
Hi!

Im new here, so Hello! :)

I just found a way to fix Copy Topics at SMF 2.0.2

Don't know if I am allowed to do that, but since the mod creator didnt show up...
Download the attached CopyTopic.php and replace at Source folder of your smf install.

This was not the correct way of fixing, but for me was the easiest one. Hope it helps someone.
Title: Re: Copy Topics v1.6 - Updated for SMF 2.0!
Post by: geogeo.gr on September 06, 2012, 03:03:05 PM
Greek translation

<file name="$languagedir/Modifications.greek.php">
<!--// Adds the language strings used by this modification //-->
<operation>
<search position="end" />
<add><![CDATA[
$txt['copytopic_copyto'] = 'Αντιγραφή σε';
$txt['quick_mod_copy'] = 'Αντιγραφή επιλεγμένων σε';
$txt['copytopic'] = 'Αντιγραφή θέματος';
$txt['copytopics'] = 'Αντιγραφή θεμάτων';
$txt['cannot_copy'] = 'Δεν έχετε τα δικαιώματα να μπορείτε να αντιγράψετε ένα θέμα';
$txt['copytopic_noboards'] = 'Δεν υπάρχουν πίνακες για να αντιγράψετε αυτό το θέμα!';
$txt['copytopic_notallowed'] = 'Δεν επιτρέπεται να αντιγράψετε θέματα σε πίνακες που δεν μπορείτε να προβάλετε!';
$txt['permissionname_copy'] = 'Αντιγραφή θέματος';
$txt['permissionhelp_copy'] = 'Αντιγραφή ενός θέματος από ένα πίνακα σε άλλο. Οι χρήστες μπορούν να επιλέξουν ως προορισμό, μόνο πίνακες που έχουν τη δυνατότητα πρόσβασης.';
$txt['copytopic_negativeseo'] = 'Γνωρίζετε ότι υπάρχει ίσως ένα αρνητικό αποτέλεσμα SEO αντιγράφοντας τα θέματα, όπως το να ερμηνευθεί από τις μηχανές αναζήτησης ως διπλότυπο περιεχόμενο.';
]]></add>
</operation>
</file>

<file name="$languagedir/Modifications.greek-utf8.php" error="skip">
<!--// Adds the language strings used by this modification //-->
<operation>
<search position="end" />
<add><![CDATA[
$txt['copytopic_copyto'] = 'Αντιγραφή σε';
$txt['quick_mod_copy'] = 'Αντιγραφή επιλεγμένων σε';
$txt['copytopic'] = 'Αντιγραφή θέματος';
$txt['copytopics'] = 'Αντιγραφή θεμάτων';
$txt['cannot_copy'] = 'Δεν έχετε τα δικαιώματα να μπορείτε να αντιγράψετε ένα θέμα';
$txt['copytopic_noboards'] = 'Δεν υπάρχουν πίνακες για να αντιγράψετε αυτό το θέμα!';
$txt['copytopic_notallowed'] = 'Δεν επιτρέπεται να αντιγράψετε θέματα σε πίνακες που δεν μπορείτε να προβάλετε!';
$txt['permissionname_copy'] = 'Αντιγραφή θέματος';
$txt['permissionhelp_copy'] = 'Αντιγραφή ενός θέματος από ένα πίνακα σε άλλο. Οι χρήστες μπορούν να επιλέξουν ως προορισμό, μόνο πίνακες που έχουν τη δυνατότητα πρόσβασης.';
$txt['copytopic_negativeseo'] = 'Γνωρίζετε ότι υπάρχει ίσως ένα αρνητικό αποτέλεσμα SEO αντιγράφοντας τα θέματα, όπως το να ερμηνευθεί από τις μηχανές αναζήτησης ως διπλότυπο περιεχόμενο.';
]]></add>
</operation>
</file>
Title: Re: Copy Topics v1.6 - Updated for SMF 2.0!
Post by: vbgamer45 on September 06, 2012, 03:09:00 PM
Thanks for the translation!
Title: Re: Copy Topics v1.6 - Updated for SMF 2.0!
Post by: gullsinn on May 16, 2013, 08:32:27 AM
i installed this on my SMF 2.0.3
this is a fresh installation no other hack mods etc installed

it shows a link to copy post on each post but it do not shows anything to copy multiple topics

also is it posible if i want to copy posts into a text file instead of another board ?

Title: Re: Copy Topics v1.6 - Updated for SMF 2.0!
Post by: Virgo4 on March 19, 2014, 06:13:15 PM
Hello everyone,

I really love this mod and it helps me out alot for what I need it for.  Only downfall that I have to copy to a different board but that's minor.

A few things:

1) There is no image when using the quick mod icons.  I am using the Curve Multi color theme as my default theme and yes I have read through all the previous posts and made sure that the 2 images were in that themes image files, but still does not work. 

2) When using the quick mod icons inside the boards, when you click on it, nothing happens and it takes me to my board index.  Subsequently the topic wasn't copied.

3) Same thing happens as #2 when inside a topic thread and you click the "Copy Topic" button at the very bottom of the thread.  When clicked it will take me to my board index and nothing is copied.

4) For the quick moderation inside the boards, in the dropdown the words "copy to" or whatever it should say is not there and is blank, but the blank spot is the copy function.  See below pics:

Is there a way to make the words show up in the dropdown and the image to show up if using the quick mod icons instead of checkboxes?  What/where do I need to update or alter the codes to make all the above work properly?


Thanks in advance for your help.
Title: Re: Copy Topics
Post by: aegersz on September 05, 2016, 03:49:51 AM
like Virgo4, i also have in the dropdown the words "copy to" or whatever it should say is not there and is blank, but the blank spot is the copy function.

the function works, though.

is there a fix for this please ?
Title: Re: Copy Topics
Post by: SMFHacks.com Team on September 05, 2016, 12:40:49 PM
Update
1.7
!Fixed text copy topics when using checkbox moderation
Title: Re: Copy Topics
Post by: aegersz on September 05, 2016, 12:46:41 PM
do we need to uninstall the old version first ?

EDIT:, i did anyway and the button is now visible !

thank you.
Title: Re: Copy Topics
Post by: vbgamer45 on September 05, 2016, 01:00:37 PM
Yes glad to help.
Title: Re: Copy Topics
Post by: badon on October 14, 2016, 10:18:39 PM
Will this mod permit duplicating individual posts, instead of a whole topic?

I do a lot of organizing of information on my forum, so when a user makes a post that contains unrelated information, I want to be able to make another copy of their post, so each one can be split, merged, moved, etc in a way that makes sense. For example, if a user makes a post replying to a mention of red apples, and then also replies to a mention of red firetrucks, I want to be able to duplicate his post so I can organize one of them under "apples", and the other one under "firetrucks".
Title: Re: Copy Topics
Post by: vbgamer45 on October 14, 2016, 10:32:40 PM
I don't believe so
Title: Re: Copy Topics
Post by: badon on October 31, 2016, 01:07:43 AM
Very useful mod, thank you!

I need to organize posts and topics as well as possible, but the culture on most forums discourages multiple posts in favor of packing everything into one post, even if the post contains completely unrelated material that should go in different topics. With this mod, I can "split" a single post by first splitting it into its own topic, copying it with this mod, manually editing each post to contain only one topic, and then merge the old "split" post into the old topic, and then I can put the new post with the new topic wherever it needs to go.

All that works perfectly, thanks!

Maybe eventually you can make this mod able to copy a single post (and split it probably), and that would simplify my process, but it works as it is. See also:

Re: How Does One Copy a Post/Thread? (http://www.simplemachines.org/community/index.php?topic=377889.msg2612988#msg2612988)
Title: Re: Copy Topics
Post by: badon on October 31, 2016, 01:26:50 AM
It looks like spoke too soon. SMF seems to be sorting by message number instead of posting date. I thought it was sorting by posting date FIRST, then if they're the same, then sort by message number SECOND. In fact, it ONLY sorts by message number. So, duplicating a post to put it in another topic does not work because the sequential order will be wrong. It will actually appear as a new message in the topic, with an old date. Is there any way to fix this, perhaps by somehow gaining control over the message numbers, or maybe by arbitrarily assigning new message numbers to a new topic to prevent conflicts and ordering problems?

Also, using the copy feature on the topic view gives a severely mangled list of subforums (boards) to duplicate it to. I wasn't able to use that feature due to the mangled list, but it seems to work correctly from the topic list view.
Title: Re: Copy Topics
Post by: RFD on October 10, 2018, 05:57:54 PM
this is an old mod that i could really use, but we're running the curve theme, not the core.  bummer. 
Title: Re: Copy Topics
Post by: vbgamer45 on October 10, 2018, 06:11:29 PM
Should still work on SMF 2.0.x what error do you get
Title: Re: Copy Topics
Post by: RFD on October 10, 2018, 06:27:15 PM
running 2.0.15, just install test failures ... plus, i'm using the curve theme and have lots of mods already installed.
Title: Re: Copy Topics
Post by: vbgamer45 on October 10, 2018, 07:18:21 PM
If you are using the curve theme you can ignore the install errors on the core theme doesn't impact you at all
Title: Re: Copy Topics
Post by: RFD on October 10, 2018, 07:42:55 PM
ok, great - i'll test it out!  thank you!!!
Title: Re: Copy Topics
Post by: RFD on October 19, 2018, 06:35:06 PM
the mod installs ok, i can see the "copy topics" button at the bottom of a thread i'd like copy to another board, but when clicked on it takes me back to the forum main page with the board listing ... ?
Title: Re: Copy Topics
Post by: vbgamer45 on October 19, 2018, 06:38:59 PM
I would upload the mod to https://www.smfhacks.com/smf-package-parser.html and make sure all the edits have been applied to your SMF files.
Title: Re: Copy Topics
Post by: RFD on October 19, 2018, 06:43:59 PM
Quote from: vbgamer45 on October 19, 2018, 06:38:59 PM
I would upload the mod to https://www.smfhacks.com/smf-package-parser.html and make sure all the edits have been applied to your SMF files.

not a clue what i'm doing with the parser and this is the results ...

Title: Re: Copy Topics
Post by: vbgamer45 on October 19, 2018, 07:00:17 PM
Just posted a new update as a bug fix for that issue.

Try installing that version.
Title: Re: Copy Topics
Post by: RFD on October 19, 2018, 07:07:56 PM
uninstalled 1.7, deleted 1.7, installed 1.7.1 - same error occurs.
Title: Re: Copy Topics
Post by: vbgamer45 on October 19, 2018, 07:46:29 PM
what is your smf versions
Title: Re: Copy Topics
Post by: RFD on October 19, 2018, 10:08:53 PM
2.0.15
Title: Re: Copy Topics
Post by: vbgamer45 on October 19, 2018, 11:15:42 PM
I tested on my test site with the latest version and seems to install and function ok.

Recheck you have all the edits done with the package parser page.
Title: Re: Copy Topics
Post by: RFD on October 20, 2018, 07:32:14 AM
ok, that fixed it.  thanx.

well, sorta.  only thing is that at the 'copy to' page the list of 'to' boards is not in any sorted order ....
Title: Re: Copy Topics
Post by: jsx on August 13, 2021, 09:13:56 AM
@vbgamer45

I installed this mod. I copied the topic to another board and unfortunately the posts in the Recent posts menu block from TinyPortal have disappeared. These posts are also not displayed in the AJAX Recent Topics mod. I returned this topic to the previous board. How can I fix the display of these posts in these places?
Title: Re: Copy Topics
Post by: jsx on August 14, 2021, 04:25:50 AM
The only solution I found was to load a copy of the database.
Title: Re: Copy Topics
Post by: RFD on April 25, 2022, 07:35:27 PM
SMF 2.0.15 - Still can't get this mod to work.  Right now it's not installed, not even on my server, but the "Copy Topic" button still shows on all topics ... 



These are the currently installed packages ...



This is the result for attempting to install in the Default theme ...



I really need this mod to work, please help!


Title: Re: Copy Topics
Post by: Steve on April 26, 2022, 06:57:03 AM
https://wiki.simplemachines.org/smf/Error_in_mod_installation


Side note: I haven't checked your previous posts but is there a reason to stay on 2.0.15? You're 4 versions behind in the 2.0.x series and open to many security risks.
Title: Re: Copy Topics
Post by: RFD on April 26, 2022, 09:12:42 AM
Quote from: Steve on April 26, 2022, 06:57:03 AMhttps://wiki.simplemachines.org/smf/Error_in_mod_installation


Side note: I haven't checked your previous posts but is there a reason to stay on 2.0.15? You're 4 versions behind in the 2.0.x series and open to many security risks.

Scared of yet again screwing up a mega huge and active forum with a 20 year history.  I've had too many problems with package AND release interactions in the past and no expertise or valued time in solving most of them.  I know SMF is "free" but without a good support system "free" just ain't worth it.  I need to find some paid support to get my forum squared away, mostly with essential mods that probably should have been included with the native SMF.  Either that or I'll need to migrate to paid commercial forum software, which in itself won't be a fun project.  It's like being between a rock and a hard place.

Title: Re: Copy Topics
Post by: Doug Heffernan on April 26, 2022, 09:31:31 AM
Quote from: RFD on April 25, 2022, 07:35:27 PMI really need this mod to work, please help!

If you click at the icon next to the file name it will tell you where it fails. You can apply the changes manually. Or you can parse the mod and it will list the manual changes as well.

Quote from: RFD on April 26, 2022, 09:12:42 AMScared of yet again screwing up a mega huge and active forum with a 20 year history. 

You do not need to be scared at all. All you have to do is make a backup of the database and the files that you edit manually,  and you will have nothing to worry about.

Quote from: RFD on April 26, 2022, 09:12:42 AMI need to find some paid support to get my forum squared away, mostly with essential mods that probably should have been included with the native SMF. 

You can post about wanting paid help at the Help Wanted (not for support).

https://www.simplemachines.org/community/index.php?board=50.0

And last, but certainly not least, this:

Quote from: Steve on April 26, 2022, 06:57:03 AMSide note: I haven't checked your previous posts but is there a reason to stay on 2.0.15? You're 4 versions behind in the 2.0.x series and open to many security risks.