The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Custom page based off FORUMHOME
Hello! I have created a custom php page within vB that loads a template based off of the same code in the FORUMHOME template.
The goal is to have this custom page display select forums that will not be shown on the main forum index, but on this custom page only. So my questions are... 1. How would I tell this custom page to display forums by certain forum ids instead of displaying all forums? 2. How can I tell the default forum index NOT to display the forums that are on the custom page? Hope that makes sense! Thanks for the help! |
#2
|
||||
|
||||
1. Kinda like here? If they are all under a Category, then just pass the forumid for the category (see the tabs here).
2. If you set the Display Order to 0, then they won't show on the main index.php page. The same thing is done here on vb.org - the whole modifications section isn't shown on the main page, but it is then linked to in the tabs. |
#3
|
||||
|
||||
Thanks Lynn,
Yes, that is what I need, but I don't know how to write the code to load a specific forum/category. --------------- Added [DATE]1252600338[/DATE] at [TIME]1252600338[/TIME] --------------- This is so frustrating... I know it's something simple, but I have tried a million combinations of code and can't get it right. help?? |
#4
|
||||
|
||||
Well, as you can see here, using Modifications as an example, the display for the Modifications category is set to 0. Then you don't see it on the main page - https://vborg.vbsupport.ru/index.php - and then you see only the Modifications forums here - https://vborg.vbsupport.ru/forumdisplay.php?f=198
|
#5
|
||||
|
||||
WELL DUH!!! OMG... I just realized what you were trying to tell me. LOL! I thought I had to write some certain code, but all I have to do is direct the user to the url for that subforum.
**slapping myself now** LOL! However, it would still be useful to me to know how to actually write code to tell my page to display only certain forum ids. That way I can use it if I want to have a page with multiple categories and mix them up/rearrange on the page. The method you described only let's me link to a pre-existing setup and I have no way of regrouping or adding categories from other locations. Does that make sense? Thanks for the help by the way! |
#6
|
||||
|
||||
You'd have to look at the code used in either index.php or, better, forumdisplay.php to see how the forumids get handled. In forumdisplay.php, you can see that a forumid is passed and used. So, see how it gets used and see if you can rewrite that section for your own purposes (on another page, of course.... well, or maybe a plugin? Not sure...)
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|