[Theme] Helios Multi (SMF v1.0.5 - 1.1RC2)

Started by bloc, September 22, 2004, 05:55:46 AM

Previous topic - Next topic

Wayne_Sadler

Nice Work .... Does not come close Bloc....

I think it a great start, for the newbies such as me in the forum setups

I wanted to ask the language-packs are they to be installed in a directory of there own such as german like english...

The other thing you must use another program other than photoshop, I know you can use notepad for PHP but this is very long winded when being exact with graphics can I ask what other appz are used, as I would like to create a theme since yours is very good but a bit dark I think for aquatics.... LOL 

Your advise welcome

Many thanks Wayne

bloc

#401
No, i use just Photoshop and a text editor. If you look at the code you will see some tricks that php can do. For instance, the looong line of laying out the html of one part of the "pod", is kept in a variable.

That means I can make one variable contain the top-part of the pod and one for the lower part. the first end with a open <td> and the second start with a closed </td>. So i can just type the top-variable+my content+bottom-variable.

And here is the beauty of it, instead of repeating these down the template, I can just name the variable where I need it.

This have to be typed for each new 'somecontent' , right?

echo '<table><tr><td>';
echo 'somecontent';
echo '</td></tr></table>';

echo '<table><tr><td>';
echo 'someothercontent';
echo '</td></tr></table>';


whereas this can just be repeated, and the code is maintained ONE place only:

$starttag= '<table><tr><td>';
$endtag= '</td></tr></table>';

echo $startag . 'somecontent'. $endtag;
echo $startag . 'someothercontent'. $endtag;
echo $startag . 'somethirdcontent'. $endtag;


When there is much html code - like in a graphic/table intensive theme like Helios - you can see the benefits.

Also, i believe strongly in writing up things on paper at first, then in Phtoshop with tables and all. After that then I code it, always using just the text editor, to make sure I have control(and overview) of all the tables etc. I don't want to leave that to a WYSIWYG HTML editor , because it would then be harder to spot mistakes, or make small, but significant changes.


- the german buttons for example will have to be in a folder named "german" inside "images"

Wayne_Sadler

Thanks Bloc for that...

Got some things sorted...

Can I be really cheeky and ask for some help with the index.template.php as I would like to be able to place a banner here... as show I just grabed a white one so you can see clearly...



Since this programing of PHP is rather new, I used to the basic HTML ....

I think this would be useful for others may be as well

Many thanks Wayne


bloc

Sure. :)

To place a banner there, look for this chunk of code in index.template.php:

        // Otherwise they're a guest - so politely ask them to register or login.
        else
        {
                echo '
                                                        ', $txt['welcome_guest'], '<br />


                                                        <form action="', $scripturl, '?action=login2" method="post" style="margin: 3px 1ex 1px 0; text-align:left;">
                                                                <input type="text" name="user" size="10" /> <input type="password" name="passwrd" size="10" />
                                                                <select name="cookielength">
                                                                        <option value="60">', $txt['smf53'], '</option>
                                                                        <option value="1440">', $txt['smf47'], '</option>
                                                                        <option value="10080">', $txt['smf48'], '</option>
                                                                        <option value="302400">', $txt['smf49'], '</option>
                                                                        <option value="-1" selected="selected">', $txt['smf50'], '</option>
                                                                </select>
                                                                <input type="submit" value="', $txt[34], '" /><br />
                                                                ', $txt['smf52'], '
                                                        </form>';
        }

        echo '
                                                </td></tr></table>';


If you look ath the last line there (</td></tr></table>) , thats where you make the change. Do something like:

</td><td align="right"><img src="banner.jpg" alt="" /></td></tr></table>

Wayne_Sadler

Many thanks bloc I sorted that banner out I tried to do the same for another image in the footer it works but the left part of the pod goes wonky... LOL
And when I put the <td </td> close before and after it vanishes... completely

Whats the reason for this do you know... I hungry the information...

Code Below


<table cellspacing="0" cellpadding="0" border="0" align="center" width="100%">
                        <tr><img src="pp_donate.gif" alt="">
                                <td valign="middle" align="center" style="white-space: nowrap;">
                                        ', theme_copyright(), '
                                </td><td align="right"><span class="smalltext">';
        // Show the load time?
        if ($context['show_load_time'])
                echo
                $txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'];

Many thanks Wayne

bloc

try to just do like this:

<table cellspacing="0" cellpadding="0" border="0" align="center" width="100%">
                        <tr>
                                <td valign="middle" align="center" style="white-space: nowrap;">
                                        ', theme_copyright(), '
                                </td><td align="right">
                <img src="pp_donate.gif" alt=""><br />
                <span class="smalltext">';
        // Show the load time?
        if ($context['show_load_time'])
                echo
                $txt['smf301'], $context['load_time'], $txt['smf302'], $context['load_queries'], $txt['smf302b'];

Wayne_Sadler

Cool Bloc I'll play with that in a min...

I been playing.... What you think over all image?



I need to know how to force the ON.gif to come on so I can make one...

Here are the others if anyone likes the mod  :)

If that's ok with you Bloc

  Large off.gif

Small new_some.gif

Small new_none.gif

Happy days everyone

Many thanks Wayne

bloc

I don't mind..but isn't that button from this theme? http://www.simplemachines.org/community/index.php?topic=23780.0

If it is, you should at least mention that it comes from Owdy's theme.


Wayne_Sadler

Hi Bloc

Yep ok

Sorry I rushed out side as grandfathers car just been broken into... Some damaged the main drivers lock, can be opened with anything screw driver, tin can opener...   >:(

The main buttons where from Owdys theme, rules are that they are FREE ONLY IF THERE USED SMF Forums Please respect this...

I have tweeked the buttons to fit in with blocs theme as I feel it complments the theme.

OK Bloc Sorted

Happy days peeps

Wayne

Wayne_Sadler

Hi Bloc

That code does the same makes it go wonky

I would it be on the Left as to right if possible, any ideas

Many thanks Wayne

bloc

ah yes , there isn't really space under there for it..maybe you could have under the last "pod" graphics?

thecrecarc

cool. i just installed it. but onw thing is missing..... when you go and post the special effects and smilies buttons are missing

bloc

? .... which version of SMF are you using? And do you have any mods installed?

thecrecarc


bloc

The BBC button images should be there. As for the smilies, that is something you set in admin section- not in Helios.

thecrecarc

the bbc is not in there. ill take a screenshot twmorrow


[Unknown]

There's an option in your settings to show/not show the bcc buttons.  Are you sure it's enabled?

-[Unknown]

Shaman

SMF 1.03 is buggin' about the Display.template.php version.  FYI.

bloc

What kind of message do you get?

Advertisement: