PDA

View Full Version : Change The Widths of the Following


BioX
10-16-2009, 02:20 PM
https://vborg.vbsupport.ru/external/2009/10/42.jpg

I want to change the widths of the following ^^^^

Can someone tell me what I must edit ?

I would of searched it but i dont know what its called. =/

Lynne
10-16-2009, 03:03 PM
You need to edit the template to add in the width. There is an article over on vb.com in the Tips & Tricks forum on how to do this. Or, find the template and edit it yourself.

To find the template to modify, do this - vboptions > General Settings > Add Template Name in HTML Comments > set to Yes . Then go back to your page and view the source code and you will see the name of the template called around your part of the code.

DeanLag
10-16-2009, 05:11 PM
In template forumhome > forumhome_forumbit_level1_nopost

Find
<td class="thead">$vbphrase[threads]</td>
Replace with
<td class="thead" width="XXpx">$vbphrase[threads]</td>

Find
<td class="thead">$vbphrase[posts]</td>

Replace with
<td class="thead" width="XXpx">$vbphrase[posts]</td>

Replace XX with desired value.
My best guess is that the current width value for "Threads" is around 25px and for "Posts" around 20px.

However, if the columns are aligned by the column title "Thread" and "Posts". If you decide to reduce the size, "Thread" and "Posts" will be wrapped and its not very aesthetic. However, you can change the font size of "Thread" and "Posts" and then shrink the column width.

Let me know if it works!

BioX
10-16-2009, 09:11 PM
In template forumhome > forumhome_forumbit_level1_nopost

Find
<td class="thead">$vbphrase[threads]</td>
Replace with
<td class="thead" width="XXpx">$vbphrase[threads]</td>

Find
<td class="thead">$vbphrase[posts]</td>

Replace with
<td class="thead" width="XXpx">$vbphrase[posts]</td>

Replace XX with desired value.
My best guess is that the current width value for "Threads" is around 25px and for "Posts" around 20px.

However, if the columns are aligned by the column title "Thread" and "Posts". If you decide to reduce the size, "Thread" and "Posts" will be wrapped and its not very aesthetic. However, you can change the font size of "Thread" and "Posts" and then shrink the column width.

Let me know if it works!


That didn't work =/

DeanLag
10-16-2009, 09:51 PM
Aiight, I just tested and
Find
<td class="thead">$vbphrase[threads]</td>
Replace with
<td class="thead" width="XX%">$vbphrase[threads]</td>

Find
<td class="thead">$vbphrase[posts]</td>

Replace with
<td class="thead" width="XX%">$vbphrase[posts]</td>

Should work now. You also have to change the ones above those such as $vbphrase[forum] and $vbphrase[last_post].
If you put 1%, the column will shrink until theres no space between the word and the borders.

So nope, you can't shrink the columns anymore according to the picture, but can increase the width.

TheLastSuperman
10-16-2009, 10:26 PM
Aiight, I just tested and
Find
<td class="thead">$vbphrase[threads]</td>
Replace with
<td class="thead" width="XX%">$vbphrase[threads]</td>

Find
<td class="thead">$vbphrase[posts]</td>

Replace with
<td class="thead" width="XX%">$vbphrase[posts]</td>

Should work now. You also have to change the ones above those such as $vbphrase[forum] and $vbphrase[last_post].
If you put 1%, the column will shrink until theres no space between the word and the borders.

So nope, you can't shrink the columns anymore according to the picture, but can increase the width.

Replace the titles THREAD and POSTS w/ an appropriate image and add in alt="Number of Threads" etc otherwise he's right they will be the width of the writing above.

Trasion
10-16-2009, 11:04 PM
<td class="thead">&nbsp;$vbphrase[posts]&nbsp;</td>

Easy way to do it.. :)