Just using this post as instructions on how to have "multiple mYvBindex's" using the same script. A lot of people seem to ask about that, but I can never find a good post with instructions.
To have multiple mYvBindex scripts running that will pull the news from different forums, simply follow these instructions...
First open your myvbindex.php file and look for:
// News
Right above that you will want to add:
PHP Code:
if ($action=='page1') {
$newsforum = 'XX';
} elseif ($action=='page2') {
$newsforum = 'YY';
} else {
$newsforum = "$newsforum";
}
In the code above you would want to change XX and YY to the other forumid's of your alternate news forums. Then to link to these new pages your link would need to be something like this:
http://yoursite.com/index.php?action=page1
You can of course change "page1" in the code and the link to say whatever you would like.
If you want more than 3 different news forums, you would simply add another bit of code that was something like this:
PHP Code:
} elseif ($action=='page3') {
$newsforum = 'ZZ';
Right before the final } else { statement at the end of that code above. Alternatly, if you only want to have 2 different news forums, you would remove the following bit of code from the code posted above:
PHP Code:
} elseif ($action=='page2') {
$newsforum = 'YY';