News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

nav bar

Started by crazyminx, August 26, 2010, 11:00:29 AM

Previous topic - Next topic

crazyminx

How do you alter the length of a nav bar to add an extra button please
i am using the theme helios-multi

kat

Helios isn't as easy to make a new button for, as other themes, coz they're all graphics.

If you tell me what the button's for and post the theme's index.template.php file, I'll see if I can do it, for you.

kat

That having been said, you can add the actual button by going to admin>current theme (Assuming you're using Helios) and add it, there.

You'll just need to make the graphic, then.

crazyminx

Quote from: K@ on August 26, 2010, 11:07:09 AM
Helios isn't as easy to make a new button for, as other themes, coz they're all graphics.

If you tell me what the button's for and post the theme's index.template.php file, I'll see if I can do it, for you.

i am trying to add the arcade button to it


crazyminx

Quote from: K@ on August 26, 2010, 11:09:37 AM
That having been said, you can add the actual button by going to admin>current theme (Assuming you're using Helios) and add it, there.

You'll just need to make the graphic, then.

i did that but the button is above the shout box and nav bar on left hand corner

http://www.screensaversmania.com/index.php

kat

I can just paste the code I used and the button I used, too.

I use that theme and I have the arcade, too!  :)

Gimme a minute...

crazyminx

Quote from: K@ on August 26, 2010, 11:26:24 AM
I can just paste the code I used and the button I used, too.

I use that theme and I have the arcade, too!  :)

Gimme a minute...

ok thank you

kat

In Helios's index.template.php, find this:

        // Is the user allowed to administrate at all? ([admin])
        if ($context['allow_admin'])
                echo '<td><a href="', $scripturl, '?action=admin">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/admin.gif" alt="' . $txt[2] . '" style="margin: 0px 0;" border="0" />' : $txt[2]), '</a></td>';


Immediately after that, add this:

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


Place the attached image into Helios's "images/english" directory and you should be OK.

Keep a copy of the original file, as a backup, just in case.

crazyminx

Thank you k for your help

kat


crazyminx

Quote from: K@ on August 26, 2010, 11:45:05 AM
Work OK?

button not the sames the others but it on the nav bar at least looks ok tho

http://www.screensaversmania.com/index.php

ther take alook

kat

Hmmm...

That image I attached, did you put it in the "english" directory, inside the "images" directory? (Phew!)

If so, try sticking it just in "images".


kat

By the way... If you want to get rid of that "My Community" rubbish, go to Admin>Server settings, scroll down to "Forum Title" and change it to whatever you want.

I made mine blank. ;)

crazyminx

Quote from: K@ on August 26, 2010, 12:04:12 PM
By the way... If you want to get rid of that "My Community" rubbish, go to Admin>Server settings, scroll down to "Forum Title" and change it to whatever you want.

I made mine blank. ;)

ok thank you i will try that wen i get back in


crazyminx



Advertisement: