phpBB.com     phpBB Academy     phpBB Modders     phpBB Weekly     ktuk     phpBB Hacks     Vlad Studio  

2 Column Forum Layout

Allows you to show your forums in a 2 column layout, rather than 1 long list.

Not enough for a full proper MOD, but too useful not to share
Forum rules
Please read over our forum guidelines

2 Column Forum Layout

Postby st0ne » 21 Feb 2009, 02:55

I would also be interested in this. I was able to acheive this with vbulletin when i had it. I'm trying to get a similar look with the prosilver_se theme that you obtailed with your theme on 6 strings.

any help would be appreciated ;)
User avatar
st0ne
Registered User
Registered User
 
Posts: 2
Joined: 20 Feb 2009, 01:38

Donate to 6 String MODs
If you like any of the work that I do here, please consider donating.
click the image on the left for a list of some of the advantages of donating



2 Column Forum Layout

Postby JohanNL » 21 Feb 2009, 09:12

You mean:

removing
Image

and just holding the forum images (set in the ACP)? Or have special read/unread icons, like here? :)
Image
User avatar
JohanNL JohanNL is my name
V.I.P
V.I.P
 
Posts: 148
Joined: 27 Sep 2008, 07:24

2 Column Forum Layout

Postby kenny » 21 Feb 2009, 16:48

Try this :)

kenny wrote:If you want to get rid of the normal read/unread icons, you need to do a bit of CSS duplication and a small edit to forumlist_body.html - here's how it's done on 6SM.

OPEN: forumlist_body.html
FIND:
Code: Select all
   <!-- IF not forumrow.S_IS_CAT -->
      <li class="row">
         <dl class="icon" style="background-image: url({forumrow.FORUM_FOLDER_IMG_SRC}); background-repeat: no-repeat;">
            <dt title="{forumrow.FORUM_FOLDER_IMG_ALT}">

REPLACE WITH:
Code: Select all
   <!-- IF not forumrow.S_IS_CAT -->
      <li class="row">
<!--         <dl class="icon" style="background-image: url({forumrow.FORUM_FOLDER_IMG_SRC}); background-repeat: no-repeat;">   -->
         <dl class="icons">
            <dt title="{forumrow.FORUM_FOLDER_IMG_ALT}">

OPEN: content.css
FIND:
Code: Select all
li.header dl.icon dt {
   /* Tweak for headers alignment when folder icon used */
   padding-left: 0;
   padding-right: 50px;
}

AFTER ADD:
Code: Select all
li.header dl.icons dt {
   /* Tweak for headers alignment when folder icon used */
   padding-left: 0;
   padding-right: 4px;
}

From memory that's all I changed and should work :geek:

Purge the cache and refresh your theme afterwards ;)
|| 6 String Romance || Myspace || phpBB.com || Need Freelance Work? ||
If you need one of my MODs installed - click here


Are you a musician in the Glasgow area interested in acoustic events? The ArtBox
User avatar
kenny kenny is probably rawking out on RockBand \m/
Project Leader
Project Leader
 
Posts: 647
Joined: 06 Jun 2008, 11:38
Location: Airdrie, UK

2 Column Forum Layout

Postby st0ne » 22 Feb 2009, 18:59

Thanks -
I will give it a try, and let you know how it works out :D
User avatar
st0ne
Registered User
Registered User
 
Posts: 2
Joined: 20 Feb 2009, 01:38

2 Column Forum Layout

Postby geruk » 11 Mar 2009, 11:11

I try searching on google and find out this page!! An awesome forum!

It's definitely useful to me. Uhm, if you don't mind, could you please show me how to change your code to be compatible with phpbb 3.0.4? i don't know why, but it doesn't show my topics in a sub forum.

Thank you.

My site: http://eeedit.com/phpbb304/

Oh, and could you tell me how to make it to three column layout?
Last edited by kenny on 11 Mar 2009, 12:50, edited 2 times in total.
Reason: Merged posts - please use the edit button ;)
User avatar
geruk
Registered User
Registered User
 
Posts: 3
Joined: 11 Mar 2009, 11:06

2 Column Forum Layout

Postby kenny » 11 Mar 2009, 14:34

The does does work with 3.0.4 fine, the display issue is somewhere in the CSS i think. I very hacky way to solve this, is to make sure that your forum descriptions are all the same or a similar lenghth. Eg. They all fit into 1 line, that way everything will fit nicely.
i don't know why, but it doesn't show my topics in a sub forum.

Can I ask what you mean by this? I'm not really too sure :)
Oh, and could you tell me how to make it to three column layout?

That would most likely involve re-writing the HTML code (and maye some of the php code), which is out of my depth sorry.
|| 6 String Romance || Myspace || phpBB.com || Need Freelance Work? ||
If you need one of my MODs installed - click here


Are you a musician in the Glasgow area interested in acoustic events? The ArtBox
User avatar
kenny kenny is probably rawking out on RockBand \m/
Project Leader
Project Leader
 
Posts: 647
Joined: 06 Jun 2008, 11:38
Location: Airdrie, UK

2 Column Forum Layout

Postby geruk » 11 Mar 2009, 18:03

thx :). i'll do it my self :D. about the topics' problem, just forget it :P.
User avatar
geruk
Registered User
Registered User
 
Posts: 3
Joined: 11 Mar 2009, 11:06

2 Column Forum Layout

Postby geruk » 12 Mar 2009, 07:25

JohanNL wrote:Hmm.. how do I give the description a higher width?
http://johandev.dotbas.net/index.php

:D
I think I have to ask the question again.
Finally I made it to three column layout with ease, but this problem is still there.

Image

How to change things in the CSS?
User avatar
geruk
Registered User
Registered User
 
Posts: 3
Joined: 11 Mar 2009, 11:06

2 Column Forum Layout

Postby dragz » 23 Mar 2009, 16:17

Well, Thanks for this. I tried this on my forum but this was my result. [same problem as above]
Image

How can I make it better? I really need this. :shock:
I guess its something with the CSS
regards
User avatar
dragz
Registered User
Registered User
 
Posts: 1
Joined: 06 Oct 2008, 16:00

2 Column Forum Layout

Postby kenny » 23 Mar 2009, 17:17

To be honest I'm not really sure there is much that I can do with this. I have founf that it works greate if you have a style that doesn't use a background image for each cell, but instead uses just a colour - I think that why it worked so well on my other site, as it used eMuzza. I will speak to some of the styles folk I know and see if anything can be worked out :)
There is always this option that I posted earlier ;)
kenny wrote:A very hacky way to solve this, is to make sure that your forum descriptions are all the same or a similar lenghth. Eg. They all fit into 1 line, that way everything will fit nicely.
|| 6 String Romance || Myspace || phpBB.com || Need Freelance Work? ||
If you need one of my MODs installed - click here


Are you a musician in the Glasgow area interested in acoustic events? The ArtBox
User avatar
kenny kenny is probably rawking out on RockBand \m/
Project Leader
Project Leader
 
Posts: 647
Joined: 06 Jun 2008, 11:38
Location: Airdrie, UK

PreviousNext



Return to Code Snippets

Who is online

Alexa [Bot], Yahoo [Bot]


cron