PDA

View Full Version : Administrative and Maintenance Tools - EPC Add Mass Child Forums Hack


blogtorank
03-31-2007, 10:00 PM
EPC Add ?Mass? Child Forums Hack


Concept Questions:

Q: Who is this for?

A: The ones that are setting up FRESH forums or extending your forums to a greater length, but more in the respect of having multiple forums, such as an example:

1.Having to start a State Forums, that has 39 Counties, 281 Cities:http://www.forums.washingtonstateforums.com/
281 City Forums * 14 Sub-forums = 3,934 (Total new sub-forums of the same format)

3,934 (Total New Sub-forums) * 2+ minutes/sub-forum (Approximately) = 7,868 Total Minutes (131.133333333 hours)
Took approximately 1.5 hours to finish this portion of the project with this hack.

2.These forums are all the same within;
Main Forums >> Counties >> Cities >> Sub-forums that are similar

Sub-forums that is similar:



a. Welcome Forums
b. General Forums
c. Family Forums
d. Event Forums
e. Animal Forums
f. Music Forums
g. NON-Profit Forums
h. Religious Forums
i. School Forums
j. Sports Forums
k. Business Forums
l. Consumer Forums
m. Employment Forums
n. Advertisement Forums
Q: What if I do not need this hack?

A: Then move onto the next hack that is on vB.org here ;), there is not any need to saying, ?I don?t see any use for this hack.? The usage is stipulated above for who would benefit from this hack.


How to use this hack:

? Once you have read the installation and installed properly then you are ready to start utilizing this hack.
? Login to your forums Admin Control Panel i.e. /admincp/ as an Administrator;
? Navigate to: Forums & Moderators >> Add Mass Child Forums;
? Once you are there you will see the like the following attached screenshot below.
? Have your list of forums that you are ready to drop into ?Title? box, as you see there in this example we have 14 sub-forums to add to seven primary (parent) forums.
? Once you done the above you can then press Save, (Do not close the screen or you will kill the addition).

Key notes:
Making sure your php.ini is set to allow for longer script running times as an example from one of ours: (This is an example below, not saying it?s recommended, but it?s nice to increase your settings if you are working on setting up a massive forums)
max_execution_time = 9000
memory_limit = 32M
When you add the list of sub-forums, you will notice it will inherit the ?parent? forums settings, so we suggest you not set not settings to the parent forums until you have all of your forums on there and ready to go, i.e. let us say you have parent forums set to Closed and it says (Forum is Closed for Posting), well this will inherit all those settings.
If you do accidentally set the forums to closed, what you need to do is run a query inside MySQL as follows, as you see below we are telling MySQL to change all the following forums to be OPEN less the HTML allowed in the forums:

MySQL Query to run just in case.

update forum set options = "89799" where title in ("Welcome Forums", "General Forums", "Family Forums", "Event Forums", "Animal Forums", "Music Forums", "NON-Profit Forums", "Religious Forums", "School Forums", "Sports Forums", "Business Forums", "Consumer Forums", "Employment Forums", "Advertisement Forums")

Contents:

1. New add_mass_child_forum.php for your /admincp/ folder;
2. Revised cpnav_vbulletin.xml for your /includes/xml folder, just a tiny bit of code added:


<navoption displayorder="50">
<phrase>add_mass_child_forums</phrase>
<link>add_mass_child_forum.php</link>
</navoption>

3. Installation instructions installation.txt
4. Concept in PDF EPC Add Mass Child Forums Hack Concept.pdf

That is basically it! If you have any ideas, concerns, or questions, feel free to ask on vbulletin.org in our designated forums area here. All support will be given here as best as we can, or perhaps another can assist if we don't in a timely manner. Remember this is a free hack and if you find it that you like it feel free to donate too us, because we believe in saving a webmaster time.

blogtorank
04-01-2007, 07:02 AM
Hey can I say Reserved finally? :)

sonichero
04-01-2007, 07:03 AM
nice. very useful for big boards. :)

installed

blogtorank
04-01-2007, 07:07 AM
Thanks!!! Talk about a nightmare, these forums are not even close to being done, I wanted to share this hack instantly because I posted in the area wondering if one of these were out there, apparently there wasn't none:

https://vborg.vbsupport.ru/showthread.php?t=143619

All the best!

bluesoul
04-01-2007, 05:25 PM
Really good idea, I applaud your willingness to start on this almost immediately. I'm planning on opening up a big board soon and I will be using this hack. Thanks!

blogtorank
04-01-2007, 05:33 PM
Really good idea, I applaud your willingness to start on this almost immediately. I'm planning on opening up a big board soon and I will be using this hack. Thanks!

You are welcome, and if you see any improvement in there please let me know, as you seen the above link up in the "Concept" as an example literally took me about an 1.5 hours to drop in all the 14 categories in the selected cities then to save me from 100+ hours of repetitive crud.

I am now planning on a "mass edit forums hack" now, because the repetitive tasks that are the same within 281 cities needs to be streamlined rather than piddling around.

So any ideas throw them my way and I'll implement them accordingly.

Thanks for the comments.

Sofia
04-01-2007, 05:45 PM
Thanks a lot, Blogtorank :p

blogtorank
04-02-2007, 04:36 AM
Thanks a lot, Blogtorank :p

NP, if you have any issues let me know :cool:

Reeve of shinra
04-02-2007, 12:39 PM
This has been widely requested in the past. Thank you for taking the time to release it.

blogtorank
04-03-2007, 12:14 AM
This has been widely requested in the past. Thank you for taking the time to release it.

Glad to have done so, I know it would be a great addition if vB did implement this portion in their product as a preset already to go so no one wouldn't have to download just to hack... I have another way I did this using a flat txt file. I'll share that here in a little bit, which gives an additional drop-down in the Manage Forums area in vBulletin...

That way is nicer on the server resources if you are not slaving the MySQL Databases as you should when running 4,000+ forum categories like I did with the above forums.

Anyhow I'll get those up later to share as well. So basically a 2 part hack here!

ROTPAR
06-18-2007, 03:11 PM
Hi there. I have a problem with 3.6.7. After installing everything and adding child forums, they don't have the same properties as the parent forum, I don't know why. So I have to edit all sub forum by myself and that takes much time. What do I have to do ?

shortbus1662
06-18-2007, 06:14 PM
where was this when I needed lol!

Thanks for posting it!

blogtorank
06-18-2007, 06:26 PM
Hi there. I have a problem with 3.6.7. After installing everything and adding child forums, they don't have the same properties as the parent forum, I don't know why. So I have to edit all sub forum by myself and that takes much time. What do I have to do ?

I can't tell because you don't have a clicked installed here ;)

Anyhow not too sure why it's not working for you but it does inherit the properties in any 3.6+ version of it's parent forums...

If you like click install and, send me a PM of your forums with some admin login so I can take a look at what you are referencing to find where you are going wrong...

blogtorank
06-18-2007, 06:27 PM
where was this when I needed lol!

Thanks for posting it!

HAHA, was it a bit too late for you shortbus? Must of missed the long-bus myself huh :rolleyes:

ROTPAR
06-18-2007, 08:28 PM
Ok I clicked Install ;)
Ok, it makes the forums as I told you before but while it's adding them I get this message:
Warning: mysql_num_rows(): supplied is not a valid mysql result resource in admincp/add_mass_child_forum.php on line 152

blogtorank
06-18-2007, 08:46 PM
This don't help me none, I need to see your installation and thanks for the click. Can you PM me the details to help you figure out where this is going wrong for you?

Wild-Wing
06-21-2007, 11:05 PM
huh this would be good for those other boards i help run

ryans
09-27-2007, 05:22 PM
Hi there. I have a problem with 3.6.7. After installing everything and adding child forums, they don't have the same properties as the parent forum, I don't know why. So I have to edit all sub forum by myself and that takes much time. What do I have to do ?

I have this same problem too. Forums don't have the following:

Act as Forum - no
Forum is Active - no
Forum is Open - no
Index New Posts in Search Engine - no. i'm running 3.64

ryans
09-27-2007, 05:32 PM
I ran this sql command..

UPDATE forum
SET options = '81927'
WHERE options = '0';

then i had to go into one of the forum managers, clicked on an added forum and then hit save. now they all show up.

Iskib
10-12-2007, 12:17 PM
--------------------------------------------------------------------------------

I purchased the full version of another one of this guys products. It has been 5 days and still not able to download it. They have asked for information which I have sent and still the file is not there to download.

I have sent 3 support tickets with no response.

************WARNING**************

STAY AWAY

Anarchy
11-22-2007, 02:19 AM
Great, thanks.!

jim6763nva
03-30-2008, 09:22 PM
Thank you very much for this mod!! :up:

3lite
08-15-2009, 09:43 PM
I'm using vb 3.8.3 and I'm getting this error:

Warning: Invalid argument supplied for foreach() in [path]/cpadmincp/add_mass_child_forum.php on line 135

I hope you update your mod, its a life saver!

Thanks!

Zi55
10-11-2009, 06:25 PM
I'm using vb 3.8.3 and I'm getting this error:

Warning: Invalid argument supplied for foreach() in [path]/cpadmincp/add_mass_child_forum.php on line 135

I hope you update your mod, its a life saver!


Thanks!

Yes I hope you to answer devploer

Ascension
12-03-2009, 07:06 AM
I have 3.8.4 Mine doesn't inherit the parent options! HELP!