Width of Author Column - Which template do I use?
3 posters
Page 1 of 1
Width of Author Column - Which template do I use?
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.
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- Forumember
- Posts : 45
Reputation : 0
Language : english
Re: Width of Author Column - Which template do I use?
Hello,
You need to edit the topics_list_box template, I think
You need to edit the topics_list_box template, I think
ankillien- Energetic
- Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL
Re: Width of Author Column - Which template do I use?
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- Forumember
- Posts : 45
Reputation : 0
Language : english
Re: Width of Author Column - Which template do I use?
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?
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- Helper
- Posts : 11853
Reputation : 566
Language : English
Re: Width of Author Column - Which template do I use?
I tried but couldn't find a way. I think it is impossible
There is no way to do this with CSS and the table based layouts are not flexible.
There is no way to do this with CSS and the table based layouts are not flexible.
ankillien- Energetic
- Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL
Re: Width of Author Column - Which template do I use?
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?
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- Forumember
- Posts : 45
Reputation : 0
Language : english
Re: Width of Author Column - Which template do I use?
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- Helper
- Posts : 11853
Reputation : 566
Language : English
Re: Width of Author Column - Which template do I use?
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"
More accurately, I inserted something like this:
width = "200"
Lady Lafalot- Forumember
- Posts : 45
Reputation : 0
Language : english
Re: Width of Author Column - Which template do I use?
Like I was saying before my internet dopped out
Doesn't help me using PunBB when I should be using phpbb2
Good news, there is a code, and it gives you the exact width number too
In the template TOPICS_LIST_BOX, the code
So now I'm lost for clues
Doesn't help me using PunBB when I should be using phpbb2
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}&
So now I'm lost for clues
Darren1- Helper
- Posts : 11853
Reputation : 566
Language : English
Re: Width of Author Column - Which template do I use?
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- Forumember
- Posts : 45
Reputation : 0
Language : english
Re: Width of Author Column - Which template do I use?
Hey guys,
Finally I found a way
Go to the topics_list_box template and find the following code...
Now, replace it with this...
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
Finally I found a way
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
ankillien- Energetic
- Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL
Re: Width of Author Column - Which template do I use?
Hot dang, it was CSS.
Nice work Ank
Nice work Ank
Darren1- Helper
- Posts : 11853
Reputation : 566
Language : English
Re: Width of Author Column - Which template do I use?
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.
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- Forumember
- Posts : 45
Reputation : 0
Language : english
Re: Width of Author Column - Which template do I use?
Darren1 wrote:Hot dang, it was CSS.
Nice work Ank
Thanks buddy.
Lady Lafalot wrote:
I am happy. Thanks again!
Glad I could help
Solved > Locked
ankillien- Energetic
- Posts : 5198
Reputation : 129
Language : English, XHTML, CSS, JS, PHP, SQL
Similar topics
» Change Author Column Width
» Delete author column
» Author Column to Right side?!? HELP!
» Author Column - Align to Centre?
» Font Color in the Author Column
» Delete author column
» Author Column to Right side?!? HELP!
» Author Column - Align to Centre?
» Font Color in the Author Column
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum