View Full Version : Forum Duplication Tool
Andreas
16 Jun 2005, 14:54
This is a port of my 3.0.X Hack which can be found here (http://www.vbulletin.org/forum/showthread.php?t=75124)
Description
This addon allows you to easily copy/clone/duplicate a forum (and all of its sub-forums).
Content (eg. Threads/Posts) will not be affected.
Usage instructions
Upload the files from the ZIP to the appropriate directories, a new entry in AdminCP Nav will appear automatically.
Warning!
This is fast-written Alpha-Code!
Although I did a few tests and it seems to work just fine I won't give any warranties - use it AS-IS at your own risk.
I strongly advice you NOT to use this in a production environment.
History
1.00 Initial Version for vBulletin 3.5.0 Beta 1
1.01 Updated for Beta 3: The Link now appears in Navgroup Forums & Moderators instead of creating another Navgroup.
Please only click Install if you actually have installed/are using this Hack, and click Uninstall when you don't use it any longer!
Chris M
16 Jun 2005, 15:58
Does creating a new php file count as a code modification hack or a plugin hack? :confused:
Nice idea anyway :)
Satan
Andreas
16 Jun 2005, 16:04
No Source Code Edits necessary => classifies as Plug-In, as you only have to upload the files :)
Chris M
16 Jun 2005, 16:23
Cool - My run of "plugin only" mods will continue then :p
Satan
Andreas
16 Jun 2005, 16:26
Well, this is my definition and not necessarily the official one ;)
Hmm ... gonna check this out.
Marco van Herwaarden
16 Jun 2005, 16:57
A plugin would require the use of a hook. If no source modification are needed, and no hook is used. It is not a plugin in my personal view.
C.Birch
16 Jun 2005, 19:29
A plugin would require the use of a hook. If no source modification are needed, and no hook is used. It is not a plugin in my personal view.
but your still basicy 'pluging' the hack in to vb has your making no edits so i feel its better classed has a plug in.
thats the view that was taken with my bb-messenger hack for vb3 it was let to be added here when vb3 was still in beta has it made no code or database errors it just 'plugged' in
Andreas
27 Jun 2005, 15:20
Update for Beta 3
The link now appears in Navgroup Forums & Moderators, instead of creating another Navgroup.
To update: Delete cpnav_duplicator.xml and upload cpnav_duplicator_b3.xml
Nice one!!!
/me clicks install!
Noonster
03 Oct 2005, 21:37
Have uploaded all the files however nothing shows in the AdminCP ??
Andreas
03 Oct 2005, 21:40
That's because this was written for Beta 3 and not the final ;)
Edit the cpnav XML and change product="vBulletin" to product="vbulletin"
thanks ill be using this :)
Ramsesx
08 Nov 2005, 02:48
Works fine and saves me a lot of work, thank you Andreas.
What could you use this for? It looks interesting. ;)
Andreas
08 Nov 2005, 03:33
You could use it to clone (with different titles) one forum/category X times.
If that makes sense is up to you to decide ;)
Nope, doesn't ring a bell with me. ;)
Could you give me an example of what kind of forum you would copy? I'm curiuous now. ;)
Andreas
08 Nov 2005, 04:36
For Example when vBulletin 4.0 is released we could copy the vBulletin 3.5 Cateogory structure ;)
Ok, I can understand that. That would save a lot of time setting up categories. This might come in handy then. ;)
RetroDreams
15 Nov 2005, 03:23
Worked great for me... althought it ran up my CPU big time. But such is life as it saved me hours.
Just for a reference on how I used this... I am creating a college sports forum and needed a separate forum for each Division I school. Well, there are 300+ of them so you can do the math.
Worked great for me... althought it ran up my CPU big time. But such is life as it saved me hours.
Just for a reference on how I used this... I am creating a college sports forum and needed a separate forum for each Division I school. Well, there are 300+ of them so you can do the math.
Is this working on 3.5.1 vB?
Thanks!
I was so surprised to see this mod/hack/add-in!
Thank you Andreas!
Anyone know if this will work in vB 3.5.2 as is?
Cancorp
31 Dec 2005, 20:04
This was invaluable for me for 3.0.X and I was thrilled to find it for 3.5!
Installed and worked like a charm.
As to what you could use it for, I run vBull in a corporate environment and we have a top level froum for each employee with 8 sub forums for each. The sub forum catagories are identical for each employee.
Before this, I had to create the damn things manually for each employee. It would take me well over an hour to do (with the descriptions and permissions etc...). Now it takes me closer to 10 minutes per employee.
Thanks again for making this invaluable hack (to me anyways) :D
I have been using this for quite awhile with great success.
This last time I used it, I noticed that it does not properly handle the 'title_clean' field of the forum table. It simply clones the cleaned title from the original forum rather than cleaning the newtitle entered in the text field. The problem is that in several locations all of the new forums cloned were displayed as "Generic Forum" (the title I use for the forum I clone new forums from)
I "fixed" this by opening up the edit window for each forum and simply hitting the save button (without making any changes) which caused the title_clean value to change into what it was supposed to be. Having used it to clone close to 300 forums this last time around, it was still a HUGE timesaver.
Andreas
16 Jan 2006, 17:21
Right, as this was ported from 3.0 (which did not have title_clean and description_clean), it simply does not take care of that.
Gonna have to update this ...
Right, as this was ported from 3.0 (which did not have title_clean and description_clean), it simply does not take care of that.
Gonna have to update this ...
Don't forget.... :nervous:
Right, as this was ported from 3.0 (which did not have title_clean and description_clean), it simply does not take care of that.
Gonna have to update this ...
Just wanted to clarify that I wasn't "complaining" by any means. the fact that this hack is still working so well after so long without any further attention is a testament to how well written your hacks are.
Just wanted to bump it up and let you know that is was starting to show its age ;-)
Thanks again for all the hacks that you release around here for us, vBulletin wouldn't be the same without people like you.
Andreas
18 Mar 2006, 15:02
title_clean should be correct now.
Does anyone know if this hack requires many changes to work in 3.5.4?
Andreas
18 Mar 2006, 16:37
Not one at all.
title_clean should be correct now.
Thanks Andreas
EasyTarget
16 May 2006, 23:00
installed
futuredood
03 Jul 2006, 10:52
wow thanks andreas i just installed this.. great, it will save me lots of time lol.
terrybenge
19 Aug 2006, 07:47
Works a dream - very cool
Ramsesx
13 Sep 2006, 02:32
Anybody tried on vb 3.6? Thanks
Edit, yes it does.
Wow I have been waiting for this! :D Thanks.
marcossalazar
05 Mar 2007, 21:40
Does anyone know if this is supported on vB 3.6.x? Please say it is so :)
gamma912
12 Mar 2007, 16:46
Anybody tried on vb 3.6? Thanks
Edit, yes it does.
Seems it does!
thx for this mod... work very nice with 3.6.8....:up:
For french people, i attached the translated files... ;)
works everything! PERFECT ;)
i use 3.6.8vbulletin
gibt es da noch ne deutsche Sprachausgabe bzw. wie erstelle ich so eine Sprachdatei ;) ?
gibt es ein hack womit ich Beiträge kopieren kann?.... z.B. eine Readme bevor man in dem Forum einen Beitrag erstellt... = nicht nur ordner sondern auch Beiträge kopieren
als ich eben 40mal das gleiche kopieren wollte kam leider folgende fehlermeldung:
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 44 bytes) in /var/www/web7/html/portal/includes/adminfunctions.php on line 3102
:) woran liegts?
Andreas
17 Dec 2007, 05:05
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 44 bytes) in /var/www/web7/html/portal/includes/adminfunctions.php on line 3102
:) woran liegts?
Daran dass dein Speicher nicht ausreicht ;)
=> memory_limit erhöhen
English
This is caused by PHP running out of memory.
If you are copying a lot of forums, you will need a lot of ram - also at frontend runtime due to forumcache and usergroupcache increase.
Discussions
11 Feb 2008, 18:50
This seems to be working just fine in 3.7.0 Beta 4. I duplicated 1 forum into 30 extra forums without encountering an error.
marcossalazar
14 Mar 2008, 16:16
For those of you that have used this, are your new forums showing up in the advance search under "Search in Forum(s)?"
Thanks
Reeve of shinra
14 Mar 2008, 17:41
I assume this wouldn't duplicate a usergroup and the permissions it has for that forum will it?
marcossalazar
14 Mar 2008, 17:52
I assume this wouldn't duplicate a usergroup and the permissions it has for that forum will it?
I have used it before and I believe it does. The problem I got was that none of the forums showed up in the advance search section that shows all the child forums
nothing4me
15 May 2008, 10:35
Works perfectly on VBulletin 3.7.0! :)
danielc2384
27 Aug 2008, 14:57
any way to bring the actual threads in the forum as a duplicate over too?
timgreen
31 Oct 2008, 20:03
Hi Andreas
This tool is working really well on 3.7.3 patch level 1 but I have loads and loads of duplicate forums to make. My customer insists on making them all even though most will stay empty for a long time.
I am adding about 20 forums at a time in an alphabetical list of top level forums. Each one has 40 + identical sub-forums!
Can I stop the updating forums process, add all the ones I need and then let it run through them all rather than letting it update after each batch?
Thanks
Tim
seangworld
15 Dec 2008, 07:10
thanks for your post, tim. it made me decide to download/install.
i have a situation tho, maybe someone here can advise me...
during the last 24 hours (not consistant, i took breaks and slept) i already created all the categories which are continents, countries, states.... but i only set up the full tree for my home state (hawaii). what's under 'hawaii' is what i wanted to copy to all the other forums. so, how the heck am i supposed to do that??? the categories are already there.
vBulletin® v3.6.12, Copyright ©2000-2010, Jelsoft Enterprises Ltd.