View Full Version : 2 column module
Hi,
I need to change my index page (main page) so that the first module will take up both center and left columns. is this possible using the vb module system ?
assuming this cant be done how can i hardcode it into my main page ?
i tried editing both index.php to include the necessery commands and the adv_portal template so that it will call the info i "evaled" in index.php.
it did not work, while the information is created in the index.php when i call the var i created in adv_portal its empty.
Please help.
Thanks,
Tpr
Brian
04-24-2005, 07:33 PM
About the only way to do this is going to be to hard code a space for this module in the 'adv_portal' template. If you're having a problem with the variables being output in the template you may need to add the variable to your 'Portal Output Global Variables' option.
memobug
04-25-2005, 07:36 AM
If you can deal with a full width module - here's one I wrote:
http://www.vbadvanced.com/forum/showthread.php?t=4472
You could incorporate a "third column" module within the full width one to make it appear as if it were a double wide.
Regards,
Matt
About the only way to do this is going to be to hard code a space for this module in the 'adv_portal' template. If you're having a problem with the variables being output in the template you may need to add the variable to your 'Portal Output Global Variables' option.
Brian,
what i did is, i switched the eval in the module so that it would output to a var i created (called $mainarticle) instead of to the vba (was usually sent to "$home[$mods[\'modid\']][\'content\'] ").
Then i added $mainarticle to the adv_portal template and to the portal output global variables.
Sadly its not working. when i echo $mainarticle in the module php file i get the information but when i call the var outside its gone.
I also tried removing the module and adding the code into the index.php directly but it did not work either.
Any ideas ?
Thanks
zenithrs@bigpon
04-28-2005, 08:04 AM
Try $GLOBALS[mainarticle]
Ok, it was my bad (kinda) in the "Portal Output Global Variables" it says you dont have to add the $ to the var names. I did and appearntly it did not read it currectly.
Once i removed the $ sign everything worked fine.
Thanks :)
vBulletin® v3.7.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.