TbChampions
01-25-2006, 06:27 PM
Sorry, but I'm very new. What does the bolded part mean? What file specifically? I tried one of the module files (navigation) that I wanted to keep on the left side of the forum page, but that didn't work in a big way, adding those 2 lines of code. Please help. Thanks!
-----------------------------------------------
Integrating Other vB Pages & Hacks
We have tried to make it as easy as possible to integrate vBadvanced CMPS with other vBulletin files and hacks. This section covers how to integrate them.
Let's say you wanted to add your left column to your forum's homepage, as many people seem to like. Simply follow these steps:
Open your /forum/includes/functions.php file.
If you are running vBulletin 3.0.x, look for this code within that file: if ($vboptions['addtemplatename'])
Or, if you are running vBulletin 3.5.x, look for this code: if ($vbulletin->options['addtemplatename'])
Just Above this code, add: if (defined('VBA_PORTAL') AND !defined('SKIP_OUTPUT') AND !defined('VBA_SCRIPT') AND !defined('NOPMPOPUP'))
{
define('SKIP_OUTPUT', true);
global $home;
print_portal_output($home, $vartext);
}
Log into your Admin CP.
Click on the 'Add Page' link listed under your 'vBa CMPS' options in the left frame, and then click on 'Module Page.
Once there, enter a Title and a Page Identifier for your page. You may call these two options whatever you would like, just be sure to make a note of what you used for the 'Page Identifier' option. For this example we are going to use 'include' for both.
Since we only want to include the modules in the left column on this page, uncheck all modules that are in your right and center columns, with the exception of your 'Custom Page Content' module. This module is what will be used to display the content from the page you are integrating, so it must be active on this page. Or of course if you would like other modules to be active then you may leave them as active.
Set any additional options that you would like, and then save the page.
Now you will want to open the vBulletin file that you would like to integrate. In the file, right after the opening <?php tag, you will want to add this code:
define('VBA_PORTAL', true);
define('VBA_PAGE', 'include');Note that if you changed the 'Page Identifier' setting for this page above then you will want to replace 'include' (marked in bold above) to whatever you used for the 'Page Identifier' option.
Upload the file and you are done.
To start integrating other pages, simply follow steps 5 & 6 with the other files.
-----------------------------------------------
Integrating Other vB Pages & Hacks
We have tried to make it as easy as possible to integrate vBadvanced CMPS with other vBulletin files and hacks. This section covers how to integrate them.
Let's say you wanted to add your left column to your forum's homepage, as many people seem to like. Simply follow these steps:
Open your /forum/includes/functions.php file.
If you are running vBulletin 3.0.x, look for this code within that file: if ($vboptions['addtemplatename'])
Or, if you are running vBulletin 3.5.x, look for this code: if ($vbulletin->options['addtemplatename'])
Just Above this code, add: if (defined('VBA_PORTAL') AND !defined('SKIP_OUTPUT') AND !defined('VBA_SCRIPT') AND !defined('NOPMPOPUP'))
{
define('SKIP_OUTPUT', true);
global $home;
print_portal_output($home, $vartext);
}
Log into your Admin CP.
Click on the 'Add Page' link listed under your 'vBa CMPS' options in the left frame, and then click on 'Module Page.
Once there, enter a Title and a Page Identifier for your page. You may call these two options whatever you would like, just be sure to make a note of what you used for the 'Page Identifier' option. For this example we are going to use 'include' for both.
Since we only want to include the modules in the left column on this page, uncheck all modules that are in your right and center columns, with the exception of your 'Custom Page Content' module. This module is what will be used to display the content from the page you are integrating, so it must be active on this page. Or of course if you would like other modules to be active then you may leave them as active.
Set any additional options that you would like, and then save the page.
Now you will want to open the vBulletin file that you would like to integrate. In the file, right after the opening <?php tag, you will want to add this code:
define('VBA_PORTAL', true);
define('VBA_PAGE', 'include');Note that if you changed the 'Page Identifier' setting for this page above then you will want to replace 'include' (marked in bold above) to whatever you used for the 'Page Identifier' option.
Upload the file and you are done.
To start integrating other pages, simply follow steps 5 & 6 with the other files.