Welcome, Guest. Please Login or Register.
April 20, 2024, 10:52:43 AM
Home Help Search Log in 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  |  How to center the new/old icons? « previous next »
Pages: [1] Reply Ignore Print
Author Topic: How to center the new/old icons?  (Read 12007 times)
EspenDL
Noobie
*
Posts: 3


I'm a llama!

How to center the new/old icons?
« on: March 20, 2004, 06: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, 11:09:09 PM »
Reply with quote

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

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


And replace with:

                           <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, 11: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, 11: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 21, 2004, 03:05:02 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:

<td class="windowbg" width="6%" align="center" valign="top">' . $new . '</td>

And replace with:

<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, 09:12:05 AM »
Reply with quote

Quote from: Peter Duggan on March 21, 2004, 03:05:02 AM
Well, OK, since they're *already* centred, I'm presuming you also want them to be vertically centred, so search BoardIndex.php for:

<td class="windowbg" width="6%" align="center" valign="top">' . $new . '</td>

And replace with:

<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  |  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.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.046 seconds with 21 queries.