changing layout in phpbb

  • jlknauff
  • Expert
  • Expert
  • User avatar
  • Posts: 502
  • Loc: Florida

Post 3+ Months Ago

Hey everyone-I'm not sure if this is the right place for this so if not I'm sure the mods will move it. I have a phpBB on a site that I am building and I'd like to change the layout just a little. I have edited the subsilver template that came with it pretty close to where I want it, but I have a few changes that I haven't made (and I'm kinda leery of doing in case I screw up my board) Can someone point me towards a tut on how to change the layout...or better yet...say they will help me make the changes? :D :D :D I can't imaginge it taking more than 10 minutes for someone who knows what they are doing-and I'm sure that someone here is able to do it!
  • Sk8erGuy
  • Student
  • Student
  • Sk8erGuy
  • Posts: 74

Post 3+ Months Ago

Just visit <a href="www.phpbb.com">PhPBB</a> The have tutorilas there.
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23460
  • Loc: Woodbridge VA

Post 3+ Months Ago

What exactly did you want to change? Almost all the HTML is in the tpl files in whatever template you are using. You edit them just like any other html file and can do virtually anything you want to.

I'm in the process of editing mine and my friend's place. It's not complete yet, but here's just one example of how a left navigation column can be added.

http://www.imagesculptor.com/pool/index.php

If you let us know what change you're worried about some might be able to offer suggestions.
  • jlknauff
  • Expert
  • Expert
  • User avatar
  • Posts: 502
  • Loc: Florida

Post 3+ Months Ago

By default there is text at the top (2 lines) One for the site name and one for the site description. Now, I can leave the site description blank, but if I leave the site name blank there are several spots that would be blank through the forum. Is there a way to hide it at the top of the forum, but still have it used throughout the site? The other thing that I need to do is add a link back to my site index, not my forum index. Do you know how to do these things? Thanks.

BTW-where do I find the spell check module that you use in this forum? I couldn't find it anywhere.
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23460
  • Loc: Woodbridge VA

Post 3+ Months Ago

Back up your overall_header.tpl file in your template directory.

Find this line in overall_header.tpl :

Code: [ Select ]
<td align="center" width="100%" valign="middle"><span class="maintitle">{SITENAME}</span><br /><span class="gen">{SITE_DESCRIPTION}<br />&nbsp; </span>


Replace with:
Code: [ Select ]
<td align="center" width="100%" valign="middle">


I believe this is the spellcheck mod used here:
http://www.master-technology.com/demos/spell/
  • jlknauff
  • Expert
  • Expert
  • User avatar
  • Posts: 502
  • Loc: Florida

Post 3+ Months Ago

Great! That worked perfect, thanks! Something that I want to add in the little menu at the top is a link back to my index, I've found the code that controlls this but eveything that I tried to do keeps throwing errors. Here is the code:

Code: [ Select ]
                        <td align="center" valign="top" nowrap="nowrap"><span class="mainmenu">&nbsp;<a href="{U_FAQ}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_faq.gif" width="12" height="13" border="0" alt="{L_FAQ}" hspace="3" />{L_FAQ}</a></span><span class="mainmenu">&nbsp; &nbsp;<a href="{U_SEARCH}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_search.gif" width="12" height="13" border="0" alt="{L_SEARCH}" hspace="3" />{L_SEARCH}</a>&nbsp; &nbsp;<a href="{U_MEMBERLIST}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_members.gif" width="12" height="13" border="0" alt="{L_MEMBERLIST}" hspace="3" />{L_MEMBERLIST}</a>&nbsp; &nbsp;<a href="{U_GROUP_CP}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_groups.gif" width="12" height="13" border="0" alt="{L_USERGROUPS}" hspace="3" />{L_USERGROUPS}</a>&nbsp;


How would I go about adding a link to my index (the site, not the forum)
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23460
  • Loc: Woodbridge VA

Post 3+ Months Ago

Just insert a normal HTML link anywhere in that code where you would like it to be. You don't need to use any of the phpBB variables just to link back to your home page. A simple text link will do just fine. The only thing you'll probably have to do is add class="mainmenu" to your anchor link so the link looks like all the other ones.
  • jlknauff
  • Expert
  • Expert
  • User avatar
  • Posts: 502
  • Loc: Florida

Post 3+ Months Ago

I tried that in the code view in DW but it kept highlighting it saying there was an error-should I just ignore that? Maybe DW is misinterpreting something.
  • jlknauff
  • Expert
  • Expert
  • User avatar
  • Posts: 502
  • Loc: Florida

Post 3+ Months Ago

disregard-I got it. Thanks again ATNO
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23460
  • Loc: Woodbridge VA

Post 3+ Months Ago

:thumbsup:
  • jlknauff
  • Expert
  • Expert
  • User avatar
  • Posts: 502
  • Loc: Florida

Post 3+ Months Ago

I have one more change that I want to make-I want to have my board the same width as my site (760px) I found part of it, but I can't change the main one. I want to try to keep the site as uniform as possible. I know I changed the wrong ones, I just need to know which one I need to change

http://www.jeremy-lang.com/phpBB2
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23460
  • Loc: Woodbridge VA

Post 3+ Months Ago

I'm doing this one off the cuff without looking... You need to change the width in all tables in overall_header.tpl, and overall_footer.tpl (if necessary). There are also several various "body" .tpl files which you may need to adjust also. They should all be in the template directory you are using. Again...it's late for me and that's a rough answer, but I'm certain you can do it.

The problem with phpBB is that the php files use the tpl files to display the HTML. Any changes you make to HTML must be done in the .tpl files in the template theme/s you are using. Best way to do it if you can is use a text editor like Wordpad that let's you do a find and replace.
  • jlknauff
  • Expert
  • Expert
  • User avatar
  • Posts: 502
  • Loc: Florida

Post 3+ Months Ago

Now that you mention it, it looks like it was the headers & footers holding it out. I'll give it a try in the morning. Thanks.

Post Information

  • Total Posts in this topic: 13 posts
  • Users browsing this forum: No registered users and 59 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.