The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
ForumID for forumhome
How can I specify multiple ForumID's for Forumhome's index.php?
Within the root index.php, there is a like that says PHP Code:
example: "$forumid = 1,8" is this possible? whats the syntax? |
#2
|
||||
|
||||
What is it you are trying to do? That might help us give you a hint on what to do. What you are talking about is basically needing to create an array with several forum ids and then go through them one by one (while loop) to do something with them. But, I'm not sure if that's exactly what you want to do on the index page.
|
#3
|
|||
|
|||
Well. I'm trying to basically combine 2 domains, in a sense. Of course licensed for both domains
I would like to display bunch of forum/categories for both domains, and some for only 1 domain and not the other. I run a regional website, and i would like to display all the offtopic forum/cat's to both domains, and only show the regional specific cat/forums to which ever domain. I thought I could create a new /forum/index_socal.php and a /forum/index.norcal.php for each domain. That way the users can post offtopic stuff no matter which domain they are on. And only see regional specific forums depending on their domain. Category1 (Domain1 specific) Forum1 Forum2 Category2 (Domain2 specific) Forum3 Forum4 Category3 (Shared for both Domain1/Domain2) Forum5 Forum6 |
#4
|
|||
|
|||
I believe the code you are talking about is used to check forum passwords. If you want to change the forums listed on forumhome you need to modify the function construct_forum_bit in functions_forumlist.php.
|
#5
|
|||
|
|||
Quote:
www.socaleuro.com/forum/index_norcal.php is example of what i wanna do it only displayed forumid = 1 but I want it to display forumid 1 and 8 and maybe another any ideas? then i could create other index_blah.php for each set of forum/cat's to display unless there's a better way --------------- Added [DATE]1211003956[/DATE] at [TIME]1211003956[/TIME] --------------- Quote:
appreciate your help i did this, but doesnt look like its right .. maybe it doesnt support array's? $forumid = array(1,8); |
#6
|
|||
|
|||
any ideas?
|
#7
|
||||
|
||||
try this..
Code:
<if condition="in_array($forum['forumid'], array(1,2,3,6))"></if> |
#8
|
|||
|
|||
where suppose to put that?
|
#9
|
||||
|
||||
In whichever template you need.
|
#10
|
|||
|
|||
That is the right idea but not fully correct. Bugs hit me up on AIM and I will help ya. You tool ahah why didn't you just message me.
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|