MyBB Community Forums

Full Version: How to change when post icons wrap?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello guys,

I wonder where I would find the code to change when the post icons wrap?

The default is 10 post icons.
The first 10 are on line one.
The next 10 are on line two.

I have made new post icons for my forum
But they are a little wider than normal.
I would like them to wrap at 9 post icons.
So that the first 9 are on line one.
And the second 9 are on line two.

I hope this makes sense to you.
Thanks in advance for your help.

[Image: screencap03yg3.gif]
I don't think it's the number of post icons that determins when it goes onto a new line, it's the size and amount of them, if it needs to start a new line, it will... maybe change the width of the column.
Thanks heaps for your reply MattR
I understand what you mean, but I don't know where to find how to change the width of the column.

Also, I made my post icons a touch wider again.
The following screenshot shows what now happens:

[Image: screencap04lt0.gif]

The new post icon (labeled 01) will fit 9 in a line, then 1 on the next line.
It then starts a new row, where it does it all over again.

Can you help me to make my template wrap at 9 post icons instead of 10?
Simply make the column smaller - as Matt said. There's no way to set it to wrap at, say 5, images/icons; it's done by how the width/height/etc. of the images are. Once it hits the right side of the table - it goes to a new line.
Thank you also for your assistance TomL

If it wraps when it "hits the right side of the table"......
Why are post icons 10 and 20 on a line of their own?
And why do post icons 1 and 11 start on new lines?

[Image: screencap5vi5.gif]
Oh hang on......

I think I understand what you mean now.
I have realised I need to think in terms of a table with its fixed width.
Sorry about that guys.

Can you tell me what part of the template I would look in for the width of this column?
(2009-02-05, 09:36 PM)Stooj Wrote: [ -> ]Thank you also for your assistance TomL

If it wraps when it "hits the right side of the table"......
Why are post icons 10 and 20 on a line of their own?
And why do post icons 11 and 21 start on new lines?

[Image: screencap5vi5.gif]
Oh hang on......

I think I understand what you mean now.
I have realised I need to think in terms of a table with its fixed width.
Sorry about that guys.

Can you tell me what part of the template I would look in for the width of this column?
I think it might just be because of the width, it could be awkward and make it show weird like that.

I'm not sure, I'll look into it though and get back to you.
Cheers TomL mate.
I really appreciate your help on this matter.

I have found this bit of code in Home » Template Sets » Template » Ungrouped Templates » posticons
I hope this helps.

<tr>
<td class="trow1" style="vertical-align: top"><strong>{$lang->post_icon}</strong><br /><span class="smalltext"><input type="radio" class="radio" name="icon" value="-1"{$no_icons_checked} />{$lang->no_post_icon}</span></td>
<td class="trow1" valign="top">{$iconlist}</td>
</tr>

Kasper