UseBB Community

The official board for UseBB help and discussion

UseBB Community » Help & Support » Integrating UseBB to your layout

Integrating UseBB to your layout

Moderators: Gaia.

Page: 1

Author Post
Member
Registered: Jul 2005
Posts: 232
Location: Stockholm
If anyone have problems and want to integrate UseBB to their existing layout just tell me and maybe i can do it for you cause i think it's very easy :D
Member
Registered: Sep 2005
Posts: 9
A search for "integrating" brought me right to this topic. People are even offering help before anyone asks. Great!

I have an existing html/css layout. My goal is to fit useBB into the #content-div. That way I can just keep all my global layout elements such as header, navigation and footer. Unfortunately I'm experiencing some problems.

I do know how to edit the useBB template files and updated the global header and footer in order not to have two doctype declarations etc. However, the problem is the forum does not want to fit in the content-div. Any suggestions?
Developer
Registered: Apr 2004
Posts: 2215
Location: Belgium
Probably the CSS doesn't work very well? Duplicate id's? ...
_______________
--Dietrich (developer)
UseBB roadmap, dev mailing list & weblog
Member
Registered: Sep 2005
Posts: 9
No the CSS didn't seem to be the problem. It has something to do with output buffering and the template systems of your forum and my site. I was almost able to squeeze it all into my content-div but then none of the links in the forum worked.

I decided to just create a double site for the forum. So now I have two sites seemlessly integrated. The downfall is that I will need to update the global layout twice if needed.

Btw, you really should use shorthand properties in your CSS. ;)
Member
Registered: Jul 2005
Posts: 232
Location: Stockholm
hello and welcome to the forums. I'm sorry for the misunderstanding about this topic it was not to integrate it with your site as http://site.com/forums.php but to just have the exact same layout but in http://site.com/forum/. Glad you solved it like that also :P
Member
Registered: Sep 2005
Posts: 76
Location: New Zealand
Hi ero-sennin -

I am just trying to get UseBB to work in my Micro$haft Server 2003 / PHP 5.0.5 / MySQL 4.1.14 environment and already this has caused some problems. Fortunately, Dietrich has been able to help already with a timeout problem and now I am waiting for a 0.7 CVS update which will hopefully solve an IIS6 issue.

A friend has asked me how they can 'wrap' banner and ads from their website (http://radiochick.co.nz) around UseBB (be warned that JJ is a wild woman and there are naked pictures on that website!). I do not have the skills to code this 'integration' and would really like some advice from anyone who has the time to offer it. I am computer literate and run my own Web & Mailserver so can implement any code offered.

Thanks for your time - Dave of New Zealand
Member
Registered: Mar 2005
Posts: 196
Location: Hungary
OK, if I have a PHP website that has its layout coded in pure CSS is it enough to make the tags(?) in useBB's stylesheet information have the attributes the original layout has?

Sorry, but I am really a web design zealot.
_______________
Long Live Rock n' Roll!
Member
Registered: Aug 2006
Posts: 1
I tried also to integrate the forum to my site but all the rewrites and ob_get_contents actions..... it's to much work.
So I integrate the site in my forum.

I've made a (template) page (http://mywebsite/forumframework/)where only my website framework is showed and a tag where the body comes (forumcontent). So what I do is I grep the framework and place it around the forum.

The code is very simple, just 2 lines in sources/template.php almost on the bottom of the page above the "Compression and output" comments.
$framework = file_get_contents("http://mywebsite/forumframework/");
$this->body = str_replace("forumcontent",trim($this->body),stripslashes ($framework));

That's all to add the website framework to my forum. Also you can add some code to place the header data in the header of the page by a same replace methode.

Page: 1

UseBB Community » Help & Support » Integrating UseBB to your layout

UseBB Community is powered by UseBB 1 Forum Software