Not logged in. · Lost password · Register
Forum: Customising UNB Designs RSS
Integrating forum into website
Reply
Reply · Quote TECsBrain #1
Member since Jul 2005 · 16 posts
Group memberships: Members
Show profile · Link to this post
Subject: Integrating forum into website
Hello,

I would like to integrate the UNB forums into my current website design.  With most products, one would simply have to edit a header file and a footer file to do this; I am having problems figuring out how this is done in UNB.

Looking at the _head.html and _foot.html files, I cannot find code that actually controls the appearance of the forums, just a lot of if-this and if-that statements.  I'm having certain difficulty figuring out what goes where relative to how the board currently looks -- for example, what sets the width of the forums as displayed here (to what looks like 700px)?

Ask any questions you need to ask about my install and I can give you the necessary info.

I like UNB enough to pay somebody to just do the work for me if I cannot figure it out.  Contact me and we can talk turkey :-)

My current website is www.dctransit.info if anyone wants to have a look to see if they could take on the job.
This post was edited on 2006-07-21, 22:57 by TECsBrain.
Avatar
Reply · Quote Yves (Administrator) #2
User title: UNB developer & webmaster
Member since Jan 2004 · 3740 posts · Location: Erlangen, Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Quote by TECsBrain on 2006-07-21, 22:55:
what sets the width of the forums as displayed here (to what looks like 700px)?

A CSS file, what else. ;) In this case, the common.css file right at the beginning.

If you just want to modify the head and foot template, what's the problem? Insert the stuff you need and that's it.

Otherwise you could still use the method that was available in UNB 1.5: Create your own page and insert the forum into it where ever you like. In forum.php around "$UNB['FrameInclude']" there are a few config options to place your custom code calls. You need to provide a function that generates your head, one for your foot and one that provides library functions and whatever you need to include. Then set the board.conf.php option "indep_page = 0" and it should work.
♪ ...nanananah, all in all we’re just brilliant thieves, nanananah... ♪♬
Reply · Quote Rumbelstilzchen #3
Member since Sep 2005 · 137 posts
Group memberships: Members
Show profile · Link to this post
I integrated the forum into my site, but my footer and my header are somehow dynamic php-files is there any posibility to intagrate them? The problem ist in *.tpl every
  1. <?php
  2. include (*.php);
  3. ?>
is ignored
Jugendkreis
petrosilius.de
Avatar
Reply · Quote Yves (Administrator) #4
User title: UNB developer & webmaster
Member since Jan 2004 · 3740 posts · Location: Erlangen, Germany
Group memberships: Administrators, Members
Show profile · Link to this post
If you need PHP support in your templates, you can enable it by changing the UTE configuration. Open unb_lib/ute-compiler.conf.php and set $UTE['__skipPHP'] = false;
♪ ...nanananah, all in all we’re just brilliant thieves, nanananah... ♪♬
Reply · Quote Rumbelstilzchen #5
Member since Sep 2005 · 137 posts
Group memberships: Members
Show profile · Link to this post
Thanks - it partly works, normal includes work fine.

But Accessing my MySql-DB doesn't work (It's not so important, its only my counter ;-))
Jugendkreis
petrosilius.de
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please note the verification code from the picture into the text field next to it.
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Reply
Go to forum
This board is powered by the Unclassified NewsBoard software, 20100516-dev, © 2003-10 by Yves Goergen
Page created in 196 ms (148 ms) · 63 database queries in 128 ms
Current time: 2010-07-30, 10:57:03 (UTC +02:00)