PDA


View Full Version : left sidebar in Links


CSS59
07-13-2005, 02:07 AM
I am running the sidebar found in the VBA user manual.

How can I show my left sidebar on my links page in Camps?

Brian
07-13-2005, 02:49 PM
Just make the first changes listed in the users' manual here (the define('VBA_PORTAL', true); and define('VBA_PAGE', 'include');) to the pages you would like to integrate, and then you will see that the other changes have already been made for you. Or, if you want to integrate every page of the links directory then you could edit the links_config.php file and just add the code there.

CSS59
07-13-2005, 10:27 PM
Log into your Admin CP.
Click on the 'Add Page' link listed under your 'vBa CMPS' options in the left frame.
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 will be replaced with the output from your file, 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 your /forums/index.php file. In that 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.
For the next step, you will want to search your file for the phrase "print_output" (without the quotes). In our example here, you would find the following code:

eval('print_output("' . fetch_template('FORUMHOME') . '");');

You will want to replace this with:

eval('$HTML = "' . fetch_template('FORUMHOME') . '";');
print_portal_output($home, $HTML);
As you can see, the main part that you should be concerned with is 'FORUMHOME'. When integrating other vBulletin pages or hacks with vBadvanced CMPS, you will want to replace whatever template name is in the "print_output" part of the code. Once you have done this, save and upload your file, and you're done.

CSS59
07-13-2005, 10:33 PM
, if you want to integrate every page of the links directory then you could edit the links_config.php file and just add the code there.

Thats what I want. What part of the code do i put in the config?

CSS59
07-13-2005, 11:04 PM
figured it out thank you :)

kicksol
08-04-2005, 02:40 PM
when I do this -- it puts the left column on the bottom of the center column -- the right column shows up, but the left is under the center -- what do I look for here?

kicksol
08-04-2005, 02:51 PM
nevermind -- I didn't click the Custom Module in the center -- it's working now