Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Aiheen aloitti: Swifty550 - elokuu 14, 2011, 12:21:25 IP

Otsikko: Last resort for the help that I need. :(
Kirjoitti: Swifty550 - elokuu 14, 2011, 12:21:25 IP
I'm using the Gamer Blue adapted theme by Jihad from Skinmod.eu with SMF 2.0. I've also tested it with a few themes from Dzinerstudio.com

The problem is, when I install TP it moves the views/replies text alignment from the center to the left. When I uninstall TP it all goes back to normal? I'm wondering what could be causing this issue?

Without Tinyportal installed;



With Tinyportal installed;



I've already asked on TP.net, they say it's probably a theme problem. I've asked on Skinmod.eu but they don't seem to be replying so here is my only other place to ask.


Help is appreciated, thanks.
Otsikko: Re: Last resort for the help that I need. :(
Kirjoitti: Sir Osis of Liver - elokuu 14, 2011, 03:21:36 IP

There may be a duplicate style name in the css for the theme and portal that are conflicting.

Otsikko: Re: Last resort for the help that I need. :(
Kirjoitti: Swifty550 - elokuu 14, 2011, 03:50:11 IP
Hey, thanks for your reply.

Do you have any idea what I would need to look for?

Thanks.
Otsikko: Re: Last resort for the help that I need. :(
Kirjoitti: Sir Osis of Liver - elokuu 14, 2011, 04:05:04 IP

You have to find the code in BoardIndex.template.php that displays the category header, see which css style is being called, and try renaming it there and in /css/index.css, or you could just add the style to the line in BoardIndex.
Otsikko: Re: Last resort for the help that I need. :(
Kirjoitti: Swifty550 - elokuu 14, 2011, 04:34:17 IP
Lainaus käyttäjältä: Krash. - elokuu 14, 2011, 04:05:04 IP

You have to find the code in BoardIndex.template.php that displays the category header, see which css style is being called, and try renaming it there and in /css/index.css, or you could just add the style to the line in BoardIndex.
Sorry, but you've totally lost me there. :(
Otsikko: Re: Last resort for the help that I need. :(
Kirjoitti: Sir Osis of Liver - elokuu 14, 2011, 04:39:17 IP

Attach your BoardIndex.template.php and /css/index.css.
Otsikko: Re: Last resort for the help that I need. :(
Kirjoitti: Swifty550 - elokuu 14, 2011, 04:40:19 IP
Figured it thanks; had to go to default/messageindex.template and add;

align="center"

to;

<th scope="col" width="14%" align="center"><a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=replies', $context['sort_by'] == 'replies' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['replies'], $context['sort_by'] == 'replies' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a> / <a href="', $scripturl, '?board=', $context['current_board'], '.', $context['start'], ';sort=views', $context['sort_by'] == 'views' && $context['sort_direction'] == 'up' ? ';desc' : '', '">', $txt['views'], $context['sort_by'] == 'views' ? ' <img src="' . $settings['images_url'] . '/sort_' . $context['sort_direction'] . '.gif" alt="" />' : '', '</a></th>';

That's sorted it.

Thanks! :)
Otsikko: Re: Last resort for the help that I need. :(
Kirjoitti: Sir Osis of Liver - elokuu 14, 2011, 04:46:51 IP

Should have realized from your screenshot it was MessageIndex, not BoardIndex. :P