PDA

View Full Version : Forum Duplication Tool


Andreas
06-15-2005, 10:00 PM
This is a port of my 3.0.X Hack which can be found here (https://vborg.vbsupport.ru/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
06-16-2005, 02:58 PM
Does creating a new php file count as a code modification hack or a plugin hack? :confused:

Nice idea anyway :)

Satan

Andreas
06-16-2005, 03:04 PM
No Source Code Edits necessary => classifies as Plug-In, as you only have to upload the files :)

Chris M
06-16-2005, 03:23 PM
Cool - My run of "plugin only" mods will continue then :p

Satan

Andreas
06-16-2005, 03:26 PM
Well, this is my definition and not necessarily the official one ;)
Hmm ... gonna check this out.

Marco van Herwaarden
06-16-2005, 03:57 PM
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
06-16-2005, 06:29 PM
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
06-27-2005, 02:20 PM
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

Cyricx
09-27-2005, 08:43 PM
Nice one!!!

/me clicks install!

Noonster
10-03-2005, 08:37 PM
Have uploaded all the files however nothing shows in the AdminCP ??

Andreas
10-03-2005, 08:40 PM
That's because this was written for Beta 3 and not the final ;)
Edit the cpnav XML and change product="vBulletin" to product="vbulletin"

Quozt
10-03-2005, 08:57 PM
thanks ill be using this :)

Ramsesx
11-08-2005, 01:48 AM
Works fine and saves me a lot of work, thank you Andreas.

Boofo
11-08-2005, 01:51 AM
What could you use this for? It looks interesting. ;)

Andreas
11-08-2005, 02:33 AM
You could use it to clone (with different titles) one forum/category X times.
If that makes sense is up to you to decide ;)

Boofo
11-08-2005, 03:14 AM
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
11-08-2005, 03:36 AM
For Example when vBulletin 4.0 is released we could copy the vBulletin 3.5 Cateogory structure ;)

Boofo
11-08-2005, 05:26 AM
Ok, I can understand that. That would save a lot of time setting up categories. This might come in handy then. ;)

RetroDreams
11-15-2005, 02:23 AM
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.

gldtn
11-18-2005, 09:26 AM
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!

rnmcd
12-26-2005, 01:49 PM
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
12-31-2005, 07:04 PM
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

WAR
01-13-2006, 11:47 AM
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
01-16-2006, 04:21 PM
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 ...

rnmcd
01-23-2006, 12:24 AM
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:

WAR
01-25-2006, 02:46 PM
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
03-18-2006, 02:02 PM
title_clean should be correct now.

rnmcd
03-18-2006, 02:11 PM
Does anyone know if this hack requires many changes to work in 3.5.4?

Andreas
03-18-2006, 03:37 PM
Not one at all.

WAR
03-28-2006, 02:57 PM
title_clean should be correct now.

Thanks Andreas

EasyTarget
05-16-2006, 10:00 PM
installed

futuredood
07-03-2006, 09:52 AM
wow thanks andreas i just installed this.. great, it will save me lots of time lol.

terrybenge
08-19-2006, 06:47 AM
Works a dream - very cool

Ramsesx
09-13-2006, 01:32 AM
Anybody tried on vb 3.6? Thanks
Edit, yes it does.

Snake
09-18-2006, 11:46 AM
Wow I have been waiting for this! :D Thanks.

marcossalazar
03-05-2007, 08:40 PM
Does anyone know if this is supported on vB 3.6.x? Please say it is so :)

gamma912
03-12-2007, 03:46 PM
Anybody tried on vb 3.6? Thanks
Edit, yes it does.

Seems it does!

leroub
11-01-2007, 12:09 PM
thx for this mod... work very nice with 3.6.8....:up:

For french people, i attached the translated files... ;)

taeb
12-15-2007, 11:12 PM
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
12-17-2007, 04:05 AM
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
02-11-2008, 05:50 PM
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
03-14-2008, 03:16 PM
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
03-14-2008, 04:41 PM
I assume this wouldn't duplicate a usergroup and the permissions it has for that forum will it?

marcossalazar
03-14-2008, 04:52 PM
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
05-15-2008, 09:35 AM
Works perfectly on VBulletin 3.7.0! :)

danielc2384
08-27-2008, 01:57 PM
any way to bring the actual threads in the forum as a duplicate over too?

timgreen
10-31-2008, 07:03 PM
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
12-15-2008, 06:10 AM
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.

musayhi
06-22-2010, 08:46 PM
This little product save me a huge time.

Thank you very much:D

you can look to the result, - if you know arabic of course- at www.saoura.net

MegaBlue
02-02-2013, 10:35 PM
Does that exist for the VB4?

zhono
11-26-2013, 04:22 AM
Just tested this with vb 4.2.0. Seems to work perfectly. Saving me TONS of work.