Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Theme Previews => Topic started by: ormuz on May 21, 2009, 04:57:14 PM

Title: Preview MaisTrafego theme
Post by: ormuz on May 21, 2009, 04:57:14 PM
Demo: http://maistrafego.pt/smfdemo/index.php

I'm working on this simple theme with a dropdown menu, but I already have many errors (http://validator.w3.org/check?uri=http%3A%2F%2Fmaistrafego.pt%2Fsmfdemo%2Findex.php) in the validation, and I don't understand many of them... Can anybody help me to finish this theme?

demo:
user:test
pass:test
Title: Re: Preview MaisTrafego theme
Post by: Antechinus on May 21, 2009, 05:34:23 PM
Use this. It rocks. https://addons.mozilla.org/en-US/firefox/addon/249
Title: Re: Preview MaisTrafego theme
Post by: ormuz on May 21, 2009, 05:43:33 PM
Quote from: Antechinus on May 21, 2009, 05:34:23 PM
Use this. It rocks. https://addons.mozilla.org/en-US/firefox/addon/249

Nice tip, let me try!

EDT: Done, so f€%@ing simple!
Title: Re: Preview MaisTrafego theme
Post by: ormuz on June 16, 2009, 08:06:41 AM
Hi guys,

I already submit my theme to the directory, but the customization team are saying that I have hard coded strings, but my strings are all in the themestrings file. Can sameone take a look on my theme an help me on this?!

thanks
Title: Re: Preview MaisTrafego theme
Post by: Gary on June 16, 2009, 02:14:31 PM
Not all of them are in the language file, Specifically:

<a href="', $scripturl, '"><img src="', $settings['theme_url'], '/images/logo.png" style="margin: 2px; padding-bottom: 20px;" alt="Logo maistrafego.pt" /></a>

in index.template.php

and

<tr>
<td class="titlebg" colspan="2"> Sitemaps </td>
</tr><tr>
<td class="windowbg" width="20" valign="middle" align="center">
<img src="', $settings['images_url'], '/icons/online.gif" alt="Sitemaps" border="0" />
</td>
<td class="windowbg2" width="100%">
<div class="smalltext">';
echo'<a href="sitemaps-home.html">Start</a> &nbsp;';
for($i=0; $i<$modSettings['totalTopics']/$how_many_links_per_page; $i++)
{
    echo'<a href="sitemaps-',$i,'.html">Page', $i ,'</a>&nbsp;';
    if (!($i%13) && ($i!=0)) echo "<br />";
}
echo'<br />';
echo '

</div>
</td>
</tr>';

in BoardIndex.template.php
Title: Re: Preview MaisTrafego theme
Post by: ormuz on June 16, 2009, 02:19:38 PM
thanks
Title: Re: Preview MaisTrafego theme
Post by: ormuz on June 16, 2009, 02:49:23 PM
Fixed, and re-upload to the directory, waiting for aprovall!
Title: Re: Preview MaisTrafego theme
Post by: Antechinus on June 16, 2009, 03:05:49 PM
Question: are the themes approval team requiring alt and title texts to be in theme strings these days? I seem to remember most of them always being hard coded.
Title: Re: Preview MaisTrafego theme
Post by: ormuz on June 16, 2009, 03:52:33 PM
Quote from: Antechinus on June 16, 2009, 03:05:49 PM
Question: are the themes approval team requiring alt and title texts to be in theme strings these days? I seem to remember most of them always being hard coded.

It seems that alt atributte its needed to xhtml validation!
Title: Re: Preview MaisTrafego theme
Post by: Gary on June 16, 2009, 03:58:50 PM
Yeah. it doesn't matter if it's empty though.

Quote from: Antechinus on June 16, 2009, 03:05:49 PM
Question: are the themes approval team requiring alt and title texts to be in theme strings these days? I seem to remember most of them always being hard coded.

I've always required them to be strings. I've hardly seen any where they're hardcoded... even before I looked at them.