Uutiset:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu
Advertisement:

alter my default smf template to what it SHOULD look like...

Aloittaja adnet23, lokakuu 05, 2006, 05:41:40 IP

« edellinen - seuraava »

adnet23

I dont know why the red squares are shifted slightly to the left... i would much rather them centered the way i have seen most forums set up.  does anyone know the coding in which i would have to change to make these squares centered?  i provided the image of my problem below, and the way i would like to change it to look like...


Ravyn

that code should be somewhere in the BoardIndex.template.php of your theme.
Ravyn
-SMF Newbie in Training

Ravyn

BoardIndex.template.php

Find:

if ($board['new'])
echo '<img src="', $settings['images_url'], '/on.gif" alt="', $txt[333], '" title="', $txt[333], '" />';
// This board doesn't have new posts, but its children do.
elseif ($board['children_new'])
echo '<img src="', $settings['images_url'], '/on2.gif" alt="', $txt[333], '" title="', $txt[333], '" />';
// No new posts at all! The agony!!
else
echo '<img src="', $settings['images_url'], '/off.gif" alt="', $txt[334], '" title="', $txt[334], '" />';


Replace with:

if ($board['new'])
echo '<img src="', $settings['images_url'], '/on.gif" alt="', $txt[333], '" title="', $txt[333], '" align="center" />';
// This board doesn't have new posts, but its children do.
elseif ($board['children_new'])
echo '<img src="', $settings['images_url'], '/on2.gif" alt="', $txt[333], '" title="', $txt[333], '" align="center" />';
// No new posts at all! The agony!!
else
echo '<img src="', $settings['images_url'], '/off.gif" alt="', $txt[334], '" title="', $txt[334], '" align="center" />';
Ravyn
-SMF Newbie in Training

Advertisement: