Welcome, Guest. Please Login or Register.
November 24, 2017, 08:56:19 PM
Home Help Search Login Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  English User Help  |  English Help  |  Topic: How to center the new/old icons? « previous next »
Pages: [1] Reply Ignore Print
Author Topic: How to center the new/old icons?  (Read 4337 times)
EspenDL
Noobie
*
Posts: 3


I'm a llama!


How to center the new/old icons?
« on: March 20, 2004, 01:36:12 PM »
Reply with quote

My Forum: www.vaulendataparty.net/forum

Problem:
I want to center the new/old topic icon.
Can anyone tell me how to do it?

I see its no centered at this forum, but on all forums hosted by boardnation are.

Espen (from Norway)
Logged
Peter Duggan
Llama Chameleon
Global Moderator
YaBB God
*****
Posts: 1793


You come and go...


WWW
Re:How to center the new/old icons?
« Reply #1 on: March 20, 2004, 06:09:09 PM »
Reply with quote

Assuming you mean new_some.gif and new_none.gif, search BoardIndex.php for:

Code: [Select]
<td align="left">
' . $img['new_some'] . '
' . $img['new_none'] . '</td>

And replace with:

Code: [Select]
                           <td align="center">
                              ' . $img['new_some'] . '&nbsp;&nbsp;
                              ' . $img['new_none'] . '</td>

But be aware that, because of the table structure (which I didn't have time to check out fully just now), that doesn't move them the whole way to the centre...

NB If that's not what you meant, please explain!
« Last Edit: March 20, 2004, 06:10:57 PM by Peter Duggan » Logged

EspenDL
Noobie
*
Posts: 3


I'm a llama!


Re:How to center the new/old icons?
« Reply #2 on: March 20, 2004, 06:28:46 PM »
Reply with quote

The pictures location: YaBBImages/off.gif and on.gif
I want them to be centered.
Logged
Peter Duggan
Llama Chameleon
Global Moderator
YaBB God
*****
Posts: 1793


You come and go...


WWW
Re:How to center the new/old icons?
« Reply #3 on: March 20, 2004, 10:05:02 PM »
Reply with quote

Well, OK, since they're *already* centred, I'm presuming you also want them to be vertically centred, so search BoardIndex.php for:

Code: [Select]
<td class="windowbg" width="6%" align="center" valign="top">' . $new . '</td>
And replace with:

Code: [Select]
<td class="windowbg" width="6%" align="center" valign="middle">' . $new . '</td>
Logged

EspenDL
Noobie
*
Posts: 3


I'm a llama!


Re:How to center the new/old icons?
« Reply #4 on: March 21, 2004, 04:12:05 AM »
Reply with quote

Well, OK, since they're *already* centred, I'm presuming you also want them to be vertically centred, so search BoardIndex.php for:

Code: [Select]
<td class="windowbg" width="6%" align="center" valign="top">' . $new . '</td>
And replace with:

Code: [Select]
<td class="windowbg" width="6%" align="center" valign="middle">' . $new . '</td>
Yes, sorry. That was exactly what I meant.
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  Topic: How to center the new/old icons? « previous next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.0.12 | SMF © 2016, Simple Machines
Valid XHTML 1.0! Valid CSS!
Page created in 0.083 seconds with 19 queries.