Not logged in. · Lost password · Register
Forum: Customising UNB Designs RSS
Basic tips to customise how UNB looks
Getting started on your own design with some simple code changes
Carder #1
Member since Jun 2007 · 4 posts
Group memberships: Members
Show profile · Link to this post
Subject: Basic tips to customise how UNB looks
I've been using UNB for a while now and think it works well (www.thetreehouseguide.com/forum/forum.php). However, to try and make it match my main site I made a couple of changes to the design. As this was not obviously documented I've put together this basic list for others doing the same. I have some CSS knowledge, but little PHP, so there may be better ways to do this.

Create your own design template
1. Copy the /unb_lib/designs/modern folder and rename the copied folder with your design name, eg /unb_lib/designs/newdesign.
2. To get the forum to use this design, open board.conf.php in the main forum folder. Change the line design = modern to design = newdesign (I couldn't get the usual method in the admin settings Board Appearance to work so this can probably be set up differently).
3. Check your forum is working as normal before starting on any changes.

Add your own logo
1. Upload your logo to /unb_lib/designs/newdesign/img. The image can be almost any size but is best restricted in width to 750px to work on smaller screens.
1. Go into the newdesign folder and edit config.php. Adjust the line $UNB['Image']['toplogo'] = 'src="' . $imgurl . 'logo_unb_dark.png" width="343" height="36"'; as appropriate (this tip from elsewhere in the UNB forum). There are a lot of other images referenced here which can be changed in the same way.

Change the navigation link text
I found the standard Main site and Forum labels were slightly confusing to visitors. You can change the text of these links (and any other button link throughout UNB) by changing the language files.
1. Open the lang/en folder in the forum root.
2. Open common.php and change the text $UNB_T['main site'] = 'Main site'; as appropriate. In my case this was changed to the name of my main site.
3. Make the same change in the lang/de folder if the text is appropriate in German.

Add extra navigation links
There is a plugin to do this. See http://newsboard.unclassified.de/forum/thread/904. I used this method to add a new Contact link to the contact page on my main site.

Adjust the forum colours to match your site
This is covered elsewhere in the forums in more detail. The only changes I made were to remove the background image (which creates the scan lines grey/white pattern) and to change the background colour, both of which can be done by changing just one line of code. This CSS file allows lots of control over all layout aspects of the forum.
1. Open unb_lib/designs/newdesign/css/common.css.php.
2. Find the entry below and adjust the parts marked in bold as appropriate. Deleting url(../img/back_hlines.png) entirely removes the background (leave the ;). Changing the hex value #FFFFFF changes the solid background colour - this default is white.
html
{
    background: #FFFFFF url(../img/back_hlines.png);
    cursor: default;
}


These are basic tips only but do seem to work. When making any major changes to your code it is always worth making a copy of the complete working forum before you begin!
Avatar
Yves (Administrator) #2
User title: UNB developer & webmaster
Member since Jan 2004 · 3814 posts · Location: Erlangen, Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Sorry for my late reply. This got lost a little in my read management. :(

Quote by Carder on 2007-06-15, 19:17:
Create your own design template
2. To get the forum to use this design, open board.conf.php in the main forum folder. Change the line design = modern to design = newdesign (I couldn't get the usual method in the admin settings Board Appearance to work so this can probably be set up differently).

There's another important step:
2a. Edit the file "name.txt" in the new design directory to contain the "visible name" of the new design. In the web frontend, you can select a board-wide and a user-specific design, each by their name that comes from this text file. No need to edit the board configuration manually then.

Otherwise, good intro! :)
♪ ...nanananah, all in all we’re just brilliant thieves, nanananah... ♪♬
doki (Guest) #3
No profile available.
Link to this post
In reply to post #1
Subject: trouble with new design add
sry for my english (and zero level doutch). the forum looks fine, but i wanna my design. on try to copy modern design folder and change anything in then all disappear and only menu remains. I found fix to this: need to remove tpl/cache folder and refresh page. Its strange coz im not using new design else.

And also can i remove copyright label from design? (does GNU GPL allow it?)

Thx
Avatar
Yves (Administrator) #4
User title: UNB developer & webmaster
Member since Jan 2004 · 3814 posts · Location: Erlangen, Germany
Group memberships: Administrators, Members
Show profile · Link to this post
GPL allows removing the publicly visible copyright notice.
♪ ...nanananah, all in all we’re just brilliant thieves, nanananah... ♪♬
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
This board is powered by the Unclassified NewsBoard software, 20110527-dev, © 2003-2011 by Yves Goergen
Page created in 199.2 ms (103.7 ms) · 52 database queries in 136.4 ms
Current time: 2012-02-07, 20:41:50 (UTC +01:00)