Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
Who's Online
3 Registered (blaaskaak, Gardener, 1 invisible), 30 Guests and 25 Spiders online.
Key: Admin, Global Mod, Mod
Top Posters
Gizmo 11678
Rick 7551
Ian 4099
Mark S 3969
ntdoc 3102
Sirdude 2041
jgeoff 1876
David Dreezer 1750
driv 1557
AllenAyres 1523
Latest Photos
Carrie - So Very
Testing
Test Photo
4TH of July at the river!
Test shots from D300 part 3
Topic Options
Rate This Topic
#199973 - 10/26/07 04:58 AM 7.2.2 Post title alignment
ScriptKeeper Offline
old hand

Registered: 12/09/06
Posts: 943
Loc: UK
In the post header table the post title is aligned at the bottom and the date is aligned middle. Not too much of an issue until you use a table background image that has a center line.

Can you ID which script this is in. It's probably a simple image align=absmiddle tag than needs adding.


Attachments
align.gif(5 downloads)


Top
#199999 - 10/26/07 04:45 PM Re: 7.2.2 Post title alignment [Re: ScriptKeeper]
Gizmo Moderator Offline


Registered: 06/04/06
Posts: 11678
Loc: Portland, OR; USA
looks like it's on a post, so that'd be showflat.tpl (add showthreaded.tpl if you're using pre7.2.2)
_________________________
UGN Security, Elite Web Gamers & VNC Web Design Owner
Longtime UBB Supporter, UBB7 Beta Tester & Resident Post-A-Holic

Top
#200025 - 10/27/07 09:34 AM Re: 7.2.2 Post title alignment [Re: Gizmo]
ScriptKeeper Offline
old hand

Registered: 12/09/06
Posts: 943
Loc: UK
It's in post_top.tpl

When I post without an icon it aligns perfectly. With an icon it displays as pictured above. \:\(

Top
#200026 - 10/27/07 11:01 AM Re: 7.2.2 Post title alignment [Re: ScriptKeeper]
blaaskaak Online   content


Registered: 08/30/06
Posts: 1211
Loc: Breda, NL
If it's in post_top.tpl it's also in post_side.tpl probably!
_________________________

Top
#200027 - 10/27/07 11:04 AM Re: 7.2.2 Post title alignment [Re: blaaskaak]
Sirdude Moderator Offline


Registered: 04/19/07
Posts: 2041
Loc: SoCal, USA
you may want to look at the box model for each span you have. ie: the icon is 15px x 15px.

now if you have margins + padding + font-size, it maybe that you are rendering the only way the browser can.

you might have to allow for the container to be large enough to verically center or reduce the margin/padding to do it.

\:\)
_________________________

A taxpayer voting for Obama is like a chicken voting for Colonel Sanders.

Top
#200032 - 10/27/07 12:04 PM Re: 7.2.2 Post title alignment [Re: Sirdude]
ScriptKeeper Offline
old hand

Registered: 12/09/06
Posts: 943
Loc: UK
@ blaaskaak: That's it, I needed to add it to both and it's now working.

post_side.tpl line 23 add:

<img border="0" src="{$config.BASE_URL}/images/{$style_array.icons}/{$postrow[post].Icon}" {$images.icons} alt="" align="absmiddle" />

post_top.pl line 22 add:

<img border="0" src="{$config.BASE_URL}/images/{$style_array.icons}/{$postrow[post].Icon}" {$images.icons} alt="" align="absmiddle" />


Attachments
wabar.gif(4 downloads)


Top
#200071 - 10/28/07 09:14 AM Re: 7.2.2 Post title alignment [Re: ScriptKeeper]
ScriptKeeper Offline
old hand

Registered: 12/09/06
Posts: 943
Loc: UK
Update: You also have to add it to the locked topic icon:

post_side.tpl line 21 add:

<img src="{$config.BASE_URL}/images/{$style_array.general}/lock.gif" alt="" align="absmiddle" />

post_top.tpl line 20 add:

<img src="{$config.BASE_URL}/images/{$style_array.general}/lock.gif" alt="" align="absmiddle" />

Top
#200086 - 10/28/07 02:36 PM Re: 7.2.2 Post title alignment [Re: ScriptKeeper]
Gizmo Moderator Offline


Registered: 06/04/06
Posts: 11678
Loc: Portland, OR; USA
absmiddle is not xhtml valid; and since we're on a quest for validity it's not a proper fix.

Instead, you should use css as say "vertical-align: middle"; it wouldn't be *exact* center, but it would be valid, and it would be close
_________________________
UGN Security, Elite Web Gamers & VNC Web Design Owner
Longtime UBB Supporter, UBB7 Beta Tester & Resident Post-A-Holic

Top


Shout Box

Recent Topics
Community Spotlight
by Thelockman
Yesterday at 08:04 AM
Protecting Board from hackers
by duquesne
Yesterday at 04:48 AM
Change New Topic text
by MLD
08/25/08 04:59 PM
Reason for deleting a thread
by MattUK
08/24/08 09:40 PM
Adding rss feed to a custom portal island
by alex26101
08/23/08 09:29 PM
Forum Stats
4016 Members
33 Forums
30842 Topics
156620 Posts

Max Online: 978 @ 06/24/07 08:19 PM