Topic: template problem
hi ! great job with the forum only one question. how do i center the forum with width=800 ? 10x
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.2 troubleshooting → template problem
hi ! great job with the forum only one question. how do i center the forum with width=800 ? 10x
Edit the template files in include/template/. You could add a div around all the forum content. Insert the following after "<body{pun_body}>":
<div style="width: 800px; margin: auto">
And then the following before "</body>
</div>
10x a lot that was the what i needed. great support
one more problem that worked but in the redirect page where do i insert the code. and how do i add a banner on top of every page ? and how do i add more links to the main menu ?
There are three files of interest in include/template/
main.tpl - the template that is used for almost all pages
redirect.tpl - for the redirect pages
maintenance.tpl - for the maintenance mode message (when forum is "turned off")
If you want the changes you made above to affect redirect pages as well, you add the HTML above to the file redirect.tpl (just like you did with main.tpl).
If you want to add a banner or add more links, you edit the same files. Look at the files and you will see things like pun_main and pun_navlinks enclosed in { and }. Those variables are replaced with actual content when PunBB generates a page. So, if you wanted to add a banner, you would just insert it somewhere in the template. If you wanted to add more links, you would add them next to {pun_navlinks}.
I will try that 10x for the fast relpay. I can try to translate the forum to romanian if you need this language pack. bye
Yeah, that would be very nice :)
I am working on improving and adding to the skinning guide. This looks like some stuff I could include. I forget all about changing the redirect template.
ps21: That sounds like a great idea. There have been quite a few questions about the templates.
PunBB Forums → PunBB 1.2 troubleshooting → template problem
Powered by PunBB, supported by Informer Technologies, Inc.