News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Adding a separate page for each category

Started by robander, December 04, 2015, 07:25:55 PM

Previous topic - Next topic

robander

What would be the best and easiest way to set up Forum categories each with a separate page with its boards only?

For instance at our site:

http://www.allthingsrecovery.net

if you click on category Alcoholics Anonymous you go to:
http://www.allthingsrecovery.net/index.php?action=forum

We want to only have its boards showing at this link.

We want to be able to click on the next category Cocaine Anonymous and go to a new page with only its boards showing too.

And so on with the other categories instead of them all showing up like it is now in the AA link.

Can I add a forum2, forum3, forum4 page somehow? Or can I add a Simple Portal page for each category? If so can you tell me the basic steps to do it?

Thanks

br360

Just so I understand; are you trying to make it so that all the boards for a certain category are not shown on the main forum page, but when you click on say Alcoholics Anonymous, all the other boards (Anniversaries, announcements, conventions, etc.) are all shown then?

So for example; you would have on the main page-

Alcoholics Anonymous
Emotion Anonymous
Gamblers Anonymous


Then when you clicked on any of those categories, all of the boards for that category would show up there?





robander

You are correct. I do not want the boards for 'Overeaters Anonymous' to show up when you click category 'Narcotics Anonymous', only the boards for NA should show up so I need to add pages for the different boards. Every category when clicked should go to its own page containing only its boards.

Thanks

br360

Ok. So on your main page, you want those various anonymous links to go to all the different boards in that category. The categories themselves aren't really linkable so the best way I would suggest doing it is to say create a new category and call it something like "Anonymous Programs." That itself would be the main category for all the various anonymous programs that you are going to have.

Then what you could do is create the various boards in that category like the ones that are bold in my post above.(alcoholics anonymous, emotions anonymous, gamblers anonymous, etc.)

So for example; instead of the category being called Alcoholics Anonymous, you make that a board in the Anonymous Programs (or whatever you decided to name that category). After that, you can then go into your Admin>>Forum>>Boards>>Modify Boards and where you see Permission Profile:; change that to read only.

Then in the same section of your admin panel, you can go to all the other boards that were originally in the Alcoholics Anonymous category (announcements, conventions, book studies, etc.) and modify/move those boards to make those all child boards of the  newly created Alcoholics Anonymous board.

Then to hide the child boards from the main index page, you can install this mod- http://custom.simplemachines.org/mods/index.php?mod=2864
Finally, to change the name of the child boards to the name of its parent board, you can install this mod- http://custom.simplemachines.org/mods/index.php?mod=3464

I know that all may sound confusing, but it should do what you are looking for. Just for fun, I did a quick shortened replica of your board to let you see it in action. I only added a couple of boards; with only about three child boards in each, but I think you'll get the idea.

Here is the link to my test site- http://genxcommunity.com/smftest2/index.php

If you wanted to add a link to your home portal page, it would look something like this- Alcoholics Anonymous

Kindred

Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

robander

Hey br360....you sure know what you are doing. I wish I had 1% of your SMF knowledge. You are the man. That is what I am looking for. I am going to give it a shot. I think I can figure out what you are saying but I won't know till I try. Thanks again and I will let you know how it went.

robander

Hi br360...I tried to load 'Remove Child Boards' but it is not compatible with my SMF version 2.0.11. It says it is compatible with 2.0.4. What is the best thing to do? Should I/Can I go back to using 2.0.4? If so would it just mean going to the main SMF download page? Or is there another option? Thanks again.

Kindred

Almost any mod for 2.0.x will work with other 2.0.x versions

Read the wiki/FAQ entry on how to install a mod which says it is not for your version
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

br360

Thanks for the kind words robander. I've spent a lot of time reading threads/testing things/breaking stuff; and sometimes I actually remember something I've learned from the experience. ;)

In regards to the "remove child board" mod, it will work and install fine; but you will have to emulate your version in your package manger (I emulated to 2.0, but 2.0.4 should work just fine)

Take a look at this link on how to do it- http://wiki.simplemachines.org/smf/How_can_I_install_a_mod_that_doesn't_work_in_my_SMF_version

Advertisement: