vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Forum Duplication Tool (https://vborg.vbsupport.ru/showthread.php?t=83213)

Andreas 06-15-2005 10:00 PM

Forum Duplication Tool
 
This is a port of my 3.0.X Hack which can be found here

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

Quote:

Originally Posted by MarcoH64
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

Quote:

Originally Posted by RetroDreams
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

Quote:

Originally Posted by Andreas
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

Quote:

Originally Posted by Andreas
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

Quote:

Originally Posted by Andreas
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

Quote:

Originally Posted by Ramsesx (Post 1073740)
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

Quote:

Originally Posted by taeb (Post 1401822)
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.


All times are GMT. The time now is 05:12 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01214 seconds
  • Memory Usage 1,808KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete