PDA

View Full Version : ForumHome Copy


js1999
01-20-2010, 04:07 AM
Hi,

I am basically trying to create a duplicate of the forumhome template (and index.php file) that displays different forums than are on the actual forum home page.

Two questions:

1. How would I make an exact duplicate of forumhome under a different name (test_home)? I followed a basic tutorial for making a new php page and vbulletin template. But if I just copy the code from the forumhome template, it doesn't show the forums. I'm pretty sure this is because there are no forumbits templates "under" my new test_home template. But I don't know how to "copy" those over as well.

2. How does forumhome (and forumbits) decide whether to display a forum and in what order? I know very little about PHP programming, but if I were doing this in some ancient language (that I studied in school), i would increment one by one through the forums and check "if" they should be visible. But I can't seem to find that functionality here. Clearly this is important, because to make my new "test_home" page, I want to feed the template exactly which forums to display instead of having it use the variables set in the forum admin panel.

Does this make any sense? Thanks for the help.

Lynne
01-20-2010, 02:12 PM
If you copy the forumhome page and give it another name, it should run just fine. (I've done that at times when working on something.)

The order for forums is set in your Forum Manager. There is a column for Display Order.

js1999
01-20-2010, 03:50 PM
Not exactly what I was asking.

I want to create a copy of forumhome that displays DIFFERENT forums. So I understand you set the display order of forums in the forum section of the admin control panel, but what I really what to know is how and where forumhome actually looks up those settings and decides whether to show the forum or not.

Basically I want to make a page that displays certain forums that are set to NOT be displayed on forumhome.

Lynne
01-20-2010, 07:43 PM
If you set a forums display order to 0, then it won't show on the forum home (like the Mods and Articles and Styles and Graphics forums here). However, you can still access them directly using forumdisplay.php?f=xxx just like the tabs at the top of this page.