The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Width of Author Column - Which template do I use?

3 posters

Go down

Solved Width of Author Column - Which template do I use?

Post by Lady Lafalot October 26th 2010, 2:44 pm

I use phpbb2 and I'm trying to increase the width of the "Author" column which appears on the page that lists the topics so it won't wrap longer names, but appear on one line.

Which template should I be looking at and how would the "author" column be identified in the HTML code (so I can identify it...I'm not really very good with HTML).

Thank you in advance.
Lady Lafalot
Lady Lafalot
Forumember

Female Posts : 45
Reputation : 0
Language : english

Back to top Go down

Solved Re: Width of Author Column - Which template do I use?

Post by ankillien October 26th 2010, 2:54 pm

Hello,

You need to edit the topics_list_box template, I think Smile
ankillien
ankillien
Energetic

Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL

Back to top Go down

Solved Re: Width of Author Column - Which template do I use?

Post by Lady Lafalot October 27th 2010, 7:27 am

That is what I thought, but I have tried to recognize the code for the width of the Author column and I don't see it in that template.

Lady Lafalot
Lady Lafalot
Forumember

Female Posts : 45
Reputation : 0
Language : english

Back to top Go down

Solved Re: Width of Author Column - Which template do I use?

Post by Darren1 October 27th 2010, 9:04 am

Hi,

I also assumed it was topics_list_box, but I couldn't fund it (Well, the code for it is there, but not adjustable), and neither could I find anything that is adjustable in index_box.

You may have to do this via CSS, I can't find anything?
Darren1
Darren1
Helper
Helper

Male Posts : 11853
Reputation : 566
Language : English

Back to top Go down

Solved Re: Width of Author Column - Which template do I use?

Post by ankillien October 27th 2010, 9:34 am

I tried but couldn't find a way. I think it is impossible Razz
There is no way to do this with CSS and the table based layouts are not flexible.
ankillien
ankillien
Energetic

Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL

Back to top Go down

Solved Re: Width of Author Column - Which template do I use?

Post by Lady Lafalot October 27th 2010, 7:27 pm

Impossible, really? This is the only column width I haven't been able to change. Surely, there must be a way.

I do feel better that I'm not the only one who couldn't find the code in the obvious template. Do you think it could be hidden somewhere else?

Anyone else want to give it a go?
Lady Lafalot
Lady Lafalot
Forumember

Female Posts : 45
Reputation : 0
Language : english

Back to top Go down

Solved Re: Width of Author Column - Which template do I use?

Post by Darren1 October 28th 2010, 3:37 am

Lady Lafalot wrote:Impossible, really? This is the only column width I haven't been able to change. Surely, there must be a way.

I do feel better that I'm not the only one who couldn't find the code in the obvious template. Do you think it could be hidden somewhere else?

Anyone else want to give it a go?

What's the code that you've used to edit the other columns?
Darren1
Darren1
Helper
Helper

Male Posts : 11853
Reputation : 566
Language : English

Back to top Go down

Solved Re: Width of Author Column - Which template do I use?

Post by Lady Lafalot October 28th 2010, 4:04 am

I just inserted a "width=200" (or 300, or 500, etc) on the line in the HTML code that looked to resemble the field I was looking to widen the column for.

More accurately, I inserted something like this:
width = "200"
Lady Lafalot
Lady Lafalot
Forumember

Female Posts : 45
Reputation : 0
Language : english

Back to top Go down

Solved Re: Width of Author Column - Which template do I use?

Post by Darren1 October 28th 2010, 5:00 am

Like I was saying before my internet dopped out author. - Width of Author Column - Which template do I use? Redface
Doesn't help me using PunBB when I should be using phpbb2 Very Happy

Good news, there is a code, and it gives you the exact width number too

In the template TOPICS_LIST_BOX, the code
Code:
<th align="center" nowrap="nowrap" width="500"> {topics_list_box.row.L_AUTHOR}&
has a width of 300 or so by default, and it hasn't changed it.
So now I'm lost for clues author. - Width of Author Column - Which template do I use? Mouais
Darren1
Darren1
Helper
Helper

Male Posts : 11853
Reputation : 566
Language : English

Back to top Go down

Solved Re: Width of Author Column - Which template do I use?

Post by Lady Lafalot October 28th 2010, 5:43 am

Yes, I tried that too...over and over again (as IF doing the same thing more than once would change it. LOL). If my memory serves me correctly, didn't THAT change in code change the width of one of the columns on the Category List page? I've been going around and around with this for days.
Lady Lafalot
Lady Lafalot
Forumember

Female Posts : 45
Reputation : 0
Language : english

Back to top Go down

Solved Re: Width of Author Column - Which template do I use?

Post by ankillien October 28th 2010, 8:50 am

Hey guys,
Finally I found a way Smile

Go to the topics_list_box template and find the following code...

Code:
<th align="center" nowrap="nowrap" width="100"> {topics_list_box.row.L_AUTHOR} </th>

Now, replace it with this...

Code:
<th style="display:block;width:200px;" align="center" nowrap="nowrap" width="100"> {topics_list_box.row.L_AUTHOR} </th>

I have added a CSS code that will force it to adopt your defined width. Right now it has 200px of width, you can change it to whatever pixels Smile
ankillien
ankillien
Energetic

Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL

Back to top Go down

Solved Re: Width of Author Column - Which template do I use?

Post by Darren1 October 28th 2010, 9:14 am

Hot dang, it was CSS.

Nice work Ank Smile
Darren1
Darren1
Helper
Helper

Male Posts : 11853
Reputation : 566
Language : English

Back to top Go down

Solved Re: Width of Author Column - Which template do I use?

Post by Lady Lafalot October 29th 2010, 1:19 am

:wouhou:

Wow, you are good! I NEVER would've been able to figure THAT out. I can't thank you enough. The board looks sooo much better now.

Oh, BTW, I did have to change the second line where it read width="100" to width="200" to get it to work. That is just in case anybody else is watching. Smile

At the risk of sounding like an ingrate, it did create one little tiny issue. The width of the bar at the top of the page with the word "Author" in it did not adjust itself to accommodate the extended length. In other words, the word "Author" is centered on a bar, but the bar isn't as wide as the field (and is aligned left). Is there any easy fix for that?

----------------------------------------------------------------------
EDIT
Never mind, I had the problem with the bar width when I used "150" (in both "width" statements). When I changed it to "200" in both statements, the bar extended itself and the word "Author" is correctly centered. I can live with that. I am happy. Thanks again!
Lady Lafalot
Lady Lafalot
Forumember

Female Posts : 45
Reputation : 0
Language : english

Back to top Go down

Solved Re: Width of Author Column - Which template do I use?

Post by ankillien October 29th 2010, 6:32 am

Darren1 wrote:Hot dang, it was CSS.

Nice work Ank Smile

Thanks buddy.

Lady Lafalot wrote: :wouhou:
I am happy. Thanks again!

Glad I could help Very Happy

Solved > Locked
ankillien
ankillien
Energetic

Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum