Previous Thread
Next Thread
Print Thread
Hop To
#199973 10/26/2007 7:58 AM
Joined: Dec 2006
Posts: 1,235
veteran
veteran
Joined: Dec 2006
Posts: 1,235
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

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
looks like it's on a post, so that'd be showflat.tpl (add showthreaded.tpl if you're using pre7.2.2)


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Dec 2006
Posts: 1,235
veteran
veteran
Joined: Dec 2006
Posts: 1,235
It's in post_top.tpl

When I post without an icon it aligns perfectly. With an icon it displays as pictured above. frown

Joined: Aug 2006
Posts: 1,358
Y
Veteran
Veteran
Y Offline
Joined: Aug 2006
Posts: 1,358
If it's in post_top.tpl it's also in post_side.tpl probably!


[Linked Image from siemons.org]
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
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.

smile

Joined: Dec 2006
Posts: 1,235
veteran
veteran
Joined: Dec 2006
Posts: 1,235
@ 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

Joined: Dec 2006
Posts: 1,235
veteran
veteran
Joined: Dec 2006
Posts: 1,235
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" />

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
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


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
1 members (Nightcrawler), 552 guests, and 173 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)