Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
Who's Online
6 registered (Island Piper, jacampbe, Rick, Ruben Rocha, Thelockman, 1 invisible), 32 Guests and 19 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 09/18/08
Posts: 9
Top Posters (30 Days)
Ruben Rocha 184
Gizmo 110
Rick 101
Thelockman 83
driv 41
AllenAyres 35
ntdoc 28
Sirdude 27
Ian 24
ScriptKeeper 18
Latest Photos
My Home System
test photo gallery
Bernese Mountain Dogs
My Daimler
Dorado and shark
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: 1039
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



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: 12007
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: 1039
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 Offline

****

Registered: 08/30/06
Posts: 1299
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: 2081
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.

\:\)
_________________________


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: 1039
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



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: 1039
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: 12007
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

Today's Birthdays
kimteague_5@msn.com, Trekkie, Trixie
Recent Topics
Inclusion of Locked/Closed thread capabilities
by QSS Tim
12/03/08 11:17 AM
Contact Page Problem
by David DelMonte
12/03/08 09:05 AM
FAQ bug,
by BreeOge
12/03/08 08:36 AM
I'm the Admin but.....
by David DelMonte
12/02/08 11:12 AM
Fatal error: Smarty::require_once
()

by ThreadsUser
12/02/08 08:17 AM
Forum Stats
4261 Members
33 Forums
30538 Topics
155004 Posts

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