Uutiset:

Wondering if this will always be free?  See why free is better.

Main Menu
Advertisement:

Adjusting the size of the subject box

Aloittaja Stéphane Thibault, huhtikuu 14, 2006, 03:21:30 IP

« edellinen - seuraava »

Stéphane Thibault

Hey everyone,

I'm trying to fix a problem I have with the default theme and I need some help.

When I use this theme in a Joomla wrapper, the width of the subject box when writing a new post is breaking out of my template. It seems to be the only time anything is breaking out using the default SMF template. Since I'm a SMF newbie, I didn't take any chances and I made a copy of the original theme and I'm trying to fix this in the CSS file.

I've located the value that I need to change in the Post.template.php as follow:
// Now show the subject box for this post.
echo '
<tr>
<td align="right" style="font-weight: bold;', isset($context['post_error']['no_subject']) ? 'color: red;' : '', '" id="caption_subject">
', $txt[70], ':
</td>
<td>
<input type="text" name="subject"', $context['subject'] == '' ? '' : ' value="' . $context['subject'] . '"', ' tabindex="', $context['tabindex']++, '" size="80" maxlength="80" />
</td>
</tr>
<tr>
<td align="right">
<b>', $txt[71], ':</b>
</td>
<td>
<select name="icon" id="icon" onchange="showimage()">';


The size="80" and maxlength="80" are the ones causing the problem here. It seems I can only fix this problem using a fixed value but I need to use a relative one. Again, since I don't want to mess up anything, I'd rather customize through css if possible.

I tried changing the values in the editor class, but the subject box isn't par of it. I also tried to fix this adding a rule for the caption_subject id, but so far nothing.

Is there any way to fix this through CSS or do I need to add a modified Post.template.php file to my theme?

Stéphane Thibault

OK, after going through this forum for a few days now, it seems that even the default theme breaks out of the template used on this site, so I guess it's not just me...

Any hint at all on how I should go about converting the fixed units into relative ones would be greatly appreciated :)

As a newbie, I learned how to do this through CSS but it doesn't seem to be enough in this case...

Niteblade

Im also interested in a solution to this.
affiliate blog

Posie

Did you find a solution?  I am desperate to fix the width of my forum to 775px to wrap in Joomla but nothing works.  Adding a div with a fixed width of 775px just doesn't work as the quote/post box and members list overflow the main div :-\  I'm currently using overflow:auto so that the users can at least scroll to see the content but it isn't ideal.

Advertisement: