Forum Moderators: rogerd

Message Too Old, No Replies

Editing phpBB to include side bar

messes the tables everytime

         

buksida

11:08 am on Jan 20, 2006 (gmt 0)

10+ Year Member



I'm trying to reduce clutter on the top of my forum by putting in a sidebar on the right for extra info.

However I cant seem to find which part to edit, I want a separate table and have been messing with index_body.tpl but it screws the whole layout up.

Any tips?

rogerd

3:30 am on Jan 24, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Isn't there a hack for this?

encyclo

4:45 am on Jan 24, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Most templates are made up of a bunch of consecutive tables for each element of the layout. In order to have a sidebar, you should wrap the whole thing in a div from overall_header.tpl to overall_footer.tpl, and then float a second div to the right. The other possibility is to nest the whole thing in a table with the right cell as the sidebar, but your incremental rendering will suffer.

buksida

6:06 am on Jan 24, 2006 (gmt 0)

10+ Year Member



Cheers for the replys, I found a mod on phpbbhacks.com that did it!

buksida

11:07 am on Jan 24, 2006 (gmt 0)

10+ Year Member



More probs!

The hack works great, I now have a theme matched right-hand sidebar on the forum however ....

It only shows up on the index page and dissappears when either viewforum.php or viewtopic.php is active.

The files I edited were index_body.tpl (where it is), lang_main.php and index.php

Any ideas?

buksida

11:33 am on Jan 24, 2006 (gmt 0)

10+ Year Member



Found it ..... editing viewforum_body.php and viewtopic_body.php

I wonder if i could use an include there to save editing the same sdiebar 3 times .....