Customization > Custom Theme Tutorials

Helios Multi Final (1.1.7) (Outdated)

(1/1)

Manu:
Open index.template.php of Helios Multi with your text editor.

Search for

--- Code: ---// Show the [home] and [help] buttons.
--- End code ---

Replace with

--- Code: ---// Show the [home] button.

        echo '<td><a href="', $scripturl, '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/home.gif" alt="' . $txt[103] . '" style="margin: 0px 0;" border="0" />' : $txt[103]), '</a></td>';

// Show the [forum] button
        echo '<td><a href="', $scripturl, '?action=forum" >', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/forum.gif" alt="' . $txt['sp-forum'] . '" style="margin: 0px 0;" border="0" />' : $txt['sp-forum']), '</a></td>';

// Show the [help] button
        echo '<td><a href="', $scripturl, '?action=help" >', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/help.gif" alt="' . $txt[119] . '" style="margin: 0px 0;" border="0" />' : $txt[119]), '</a></td>';
--- End code ---

More adds aren't for need in the index.template.php, cause Helios doesn't support active buttons. To show the "Forum" button, you have to load up the button in the attachment to '/Themes/{themename}/images/english' or the language you have in use in your forum.

Done! SPortal is installed in Helios Multi.

Nathaniel:
The first edit works fine, although the second edit doesn't appear to work properly. I couldn't actually find an array in that file called '$normal_buttons', so you will probably need to change that code, as that theme seems to use a '$buttonArray' array instead.

Manu:

--- Quote from: LHVWB on February 04, 2009, 04:54:05 PM ---The first edit works fine, although the second edit doesn't appear to work properly. I couldn't actually find an array in that file called '$normal_buttons', so you will probably need to change that code, as that theme seems to use a '$buttonArray' array instead.
--- End quote ---

Sorry, I think I should let do this people who know more about php than me.  :-[
Cause I don't understand what you want to tell me. In German we would say "Ich verstehe nur Bahnhof"  :-[
All I know about Helios is, it isn't using any active buttons as most of the themes. Maybe you can explain me a bit what it means and I can understand what I have to change and where.  :-[

Nathaniel:
Approved this tutorial. I removed the second edit to the 'display.template.php' file, although I am happy to do it properly, if you create an 'Add as Article' image that can be used for it. ;)

KTFO:
Ok this worked but you left out that you have to find everything

not just this
// Show the [home] and [help] buttons.

But all of this too


FIND

// Show the [home] and [help] buttons.

        echo '<td><a href="', $scripturl, '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/home.gif" alt="' . $txt[103] . '" style="margin: 0px 0;" border="0" />' : $txt[103]), '</a></td>';
        echo '<td><a href="', $scripturl, '?action=help" >', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/help.gif" alt="' . $txt[119] . '" style="margin: 0px 0;" border="0" />' : $txt[119]), '</a></td>';







All of that has to be replaced with the information you provided
Replace with


// Show the [home] button.

        echo '<td><a href="', $scripturl, '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/home.gif" alt="' . $txt[103] . '" style="margin: 0px 0;" border="0" />' : $txt[103]), '</a></td>';
      
      // Show the [forum] button
        echo '<td><a href="', $scripturl, '?action=forum" >', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/forum.gif" alt="' . $txt['sp-forum'] . '" style="margin: 0px 0;" border="0" />' : $txt['sp-forum']), '</a></td>';
      
      // Show the [help] button
        echo '<td><a href="', $scripturl, '?action=help" >', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/help.gif" alt="' . $txt[119] . '" style="margin: 0px 0;" border="0" />' : $txt[119]), '</a></td>';



I hope this makes sense.

So Manu THANK YOU VERY MUCH FOR EXPLAINING
 ;D

Navigation

[0] Message Index

Go to full version