Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-19-2005, 08:38 PM
Cancorp Cancorp is offline
 
Join Date: Feb 2003
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Can forums and sub-forums be copied (duplicated) in bulk?

Hi gang,

Here is my scenario:

I use vBull in a corporate setting. We have a system where each employee has their own forum and they each have sub-forums of the same title, ie:

Employee A
-ideas
-suggestions
-problems
-widgets

Employee B
-ideas
-suggestions
-problems
-widgets

Employee C
-ideas
-suggestions
-problems
-widgets

Is there a way to bulk copy a forum and sub-forum so that all we would have to do is change the parent forum to the Employee's name?

Right now our tech guy is creating the forum for each Employee and then creating the sub-forums for each employee wich is wildly time consuming.

All the permissions are identical, the only change would be in the parent forum where we would have to change the name to the appropriate employee.

Please tell me there is a faster way to accomplish this rather than having to create each parent and sub forum individually?

Thanks for any suggestions.

P.S. Running 3.0.5


Now I received this reply from Jake over at vBull.com

Quote:
Automating the process would require a custom script. I recommend you post on www.vbulletin.org about this.

Incidentally, why do you want each employee to have their own forums? If your motivation is to give each employee their own private space, then you can probably accomplish the same thing with one set of forums where the Can View Others' Threads permission is set to No. This will make it so users can only see their own threads.

My reply to this was:

Quote:

I suspected as much. I'll try over there.

The reasoning behind each one having their own forums is that we are a real estate company and each agent has listings and needs. This was the most effective way to deal with them being able to post their listings and needs and still maintain some degree of order.

For instance, we have Realtor A with sub forums of Listings and Requirements. Then under Listings we have sub-forums of Office, Retail etc... and under Requirements we have Office, Retail etc.... This pattern repeats for Realtor B - Realtor Z

To just glom it all into one mega Listings or Needs form is impractical as it would be disorganized and frankly, things would just get lost in the shuffle.

I know this likely wasn't the intended use for vBull, but we find that it is going to work nicely, just a little cumbersome to set up initially and/or when a new agent joins the firm.
So, I guess I am asking if anyone here thinks that this can be done or has done something like this and would be willing to share.

If you need to, feel free to PM me or just post here and I'll try to get back to you as soon as I can.

Thanks in advance!
Reply With Quote
  #2  
Old 01-24-2005, 02:27 AM
Cancorp Cancorp is offline
 
Join Date: Feb 2003
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone??

This would make life so much easier if it could be done. If it is more complicated than it seems (as I am not that experienced with coding) and you can do it but would want some compensation, PM me and we'll work something out.
Reply With Quote
  #3  
Old 01-24-2005, 02:41 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This seems to be a somewhat common request, but unfortunately nobody has taken up on it.
Probably because this isn't that easy.

I'll try to create a "Forum Duplication Tool", but it will take some days.
Reply With Quote
  #4  
Old 01-24-2005, 09:54 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, I think I got proof-of-concept code working, but it does not yet have a GUI.
This is how it will (should ) work:
You can select which forum shold be cloned.
Then there is a Textarea-Field to input the new forum names (1 per line).
The script will the copy this forum (and all its subforums) as often as necessary and name it accordingly.
Optionally, it can also clone moderators, forum permissions and access masks.

It does (of course) only copy the structure, not the contents.
Reply With Quote
  #5  
Old 01-24-2005, 10:51 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here is a script that seems to do the job.

WARNING!: This code isn't even beta, and it is supplied as-is.
Use it at your own risk (i'd strongly recommend not to use it in a production environment).

Usage instructions: Place this file in Admin Control Panel-Directory and point your browser to it. The rest should be self-explanatory.

Let me know if it does work
Attached Files
File Type: php duplicator.php (8.4 KB, 28 views)
Reply With Quote
  #6  
Old 01-25-2005, 03:35 AM
Cancorp Cancorp is offline
 
Join Date: Feb 2003
Posts: 20
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by KirbyDE
Here is a script that seems to do the job.

WARNING!: This code isn't even beta, and it is supplied as-is.
Use it at your own risk (i'd strongly recommend not to use it in a production environment).

Usage instructions: Place this file in Admin Control Panel-Directory and point your browser to it. The rest should be self-explanatory.

Let me know if it does work
Wow! Thanks so much (I think :nervous: )

I will give it a whirl tomorrow at work and let you know how she flies. I'll make sure to back everything up first.

I know that a lot of people will be very happy if this works.

Quote:
Originally Posted by Cancorp
Wow! Thanks so much (I think :nervous: )

I will give it a whirl tomorrow at work and let you know how she flies. I'll make sure to back everything up first.

I know that a lot of people will be very happy if this works.
OMG!!!!

KirbyDE, you are absolutely the man (or woman - lol).

Worked like a charm.

Will copy parent forums with all their children (unpopulated - won't copy existing posts in forums being copied, which is exactely what I wanted). Also copies Moderators, Access Masks and Permissions (option to copy or not).

You truly saved me and my web guy a ton of time

This ought to be a standard vBull option and if Scott M or Jake B see this thread, give this some thought and be sure to give KirbyDE cudos!

I know at least 3 other people who were looking for something similar and I'll be pointing them to this thread.
Reply With Quote
  #7  
Old 10-14-2015, 11:49 PM
agentjay agentjay is offline
 
Join Date: Oct 2015
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello all - I am resurrecting this thread in hopes of finding the same answer, but in today's world. We are using the cloud version, and are attempting to duplicate a setup we have x 50! One for each state for our forum. Is there a way to do this? The tech team advises that it's not possible under the AdminCP, but putting this out there to see if anyone can crack the "code". Would it be easier if we had our own server?

MANY THANKS IN ADVANCE,
Jon
Reply With Quote
  #8  
Old 10-16-2015, 12:03 AM
Randhal007 Randhal007 is offline
 
Join Date: Sep 2012
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I also have almost the same problem, hopefully with answers here to resolve the issue I was having
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:28 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.10305 seconds
  • Memory Usage 2,263KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (1)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete