View Full Version : is it possible to keep cms layout for forum ?
moneyfish168
07-05-2007, 08:40 PM
right now, the home index page has 3 columns. when you click on news or recent threads, it goes to forum page and swtich back to forum default template.
vbcms somehow can keep the cms layout, I want to know how we can do that using cmps 3.0.
http://www.vbdesigns.de/forum.php
check this site, browse around, doesn't matter where you go, left clumn stays there.
Brian
07-06-2007, 07:01 AM
Just click the "Integration" link in your Admin CP and follow the instructions there to integrate your vB files.
*Edit*
This link may be helpful too.
http://www.vbadvanced.com/forum/showthread.php?t=22586
moneyfish168
07-06-2007, 09:38 AM
hi, Brian, thanx, it works. now i need to change my layout size to 1000px, 800px just too small for integration.
Klein
08-20-2007, 10:08 AM
I integrated my forum with CMPS like indicated on above mentioned link. But something is not working properly. When I click on my forum link I get the CMPS-header, footer en left and right modules. But the threads of my forum are not displayed.
I only integrated the file forums.php (which is my renamed index.php from vbulletin).
Do I need to integrate more pages to have my forum-threads displayed in my custom-module?
Thanks in advance,
Klein
Brian
08-20-2007, 12:06 PM
You still need to visit your forums.php file to see your forums. I'm assuming you're clicking on a link that was added when you integrated the page. That link will not display your forums as it has no way to know it's supposed to since that same CMPS page can be integrated with multiple vB files.
Klein
08-20-2007, 04:42 PM
Hmm, when I visited forums.php I got the invalid page message.
So I added
define('DISABLE_HOOKS', true);
at the end of config.php.
Now I can see my forum again when I visit forums.php, but I kinda hoped that my forum would be displayed with left and right modules.
I should mention that I heavily modded my vbulletin templates. My forumsite is divided in 5 parts. A header- and a footer-<div>.
In between I got 3 divs, a LeftMenu-div, Content-div and a Rightmenu-div.
I changed the header-template so the left-column-modules are displayed in my LeftMenu-div and my right-column-modules in my Rightmenu-div.
My forum is displayed in the Content-div.
Both my forum and CMPS works fine that way seperately. But now I gotta find a way to display the left and right menu modules alongside the forum when I visit forums.php.
I guess I need to edit the templates some more...or is there an easier way?
I have everything installed on a localhost for testing purposes, so I can't link to a site, but if needed I could post some screenshots.
EDIT
Just found out that with the disable_hooks statement, my CMPS-home gives an error.
Fatal error: Call to undefined function: print_portal_output() in C:\Program Files\xampp\htdocs\vBulletin\index.php on line 47
Any suggestions what to do?
Brian
08-21-2007, 05:43 PM
If you're getting an Invalid Page message from your forums, then that means that you've integrated your forums, and then deleted the CMPS page that you integrated them with. Go back to the 'Integration' link, use the options there to remove the integration from your forums, and then remove the code you added to your config.php file.
Klein
08-29-2007, 09:47 AM
It seems that the forum integration with CMPS is working correctly. The fact that I was getting no left en rightside modules was caused by my own template modifications.
I had changed the body-template to a fixed width and displayed it centred on the page. My Leftmenu en Rightmenu-divs were displayed outside of the body.
After changing the body-template back to 100% width again, I got the left and rightside modules alongside the forum.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.