More 'Show buttons as images instead of text' Customization

Started by ThatFratGuy, July 13, 2004, 02:22:29 PM

Previous topic - Next topic

ThatFratGuy

When editing the settings of a template, if you hit "Show buttons as images instead of text" it changes the Home/Help/Admin/etc buttons to text as well as changing the View Profile/Email/etc buttons that are underneath avatars in posts.  If these two things were seperate features that would be great.

Here's my problem, I want the buttons under the avatars to be text (it looks much cleaner and the button sets look ugly w/o a light background), but if I change them to text it changes my Home/Help/Admin buttons to text.  My links are set to white to fit the template, so then those buttons all just disappear against the top white background!  I'd like to be able to use actual buttons for those links.

Any chance for this?

[Unknown]

You could modify your index.template.php so that the menu images were always images...

-[Unknown]


ThatFratGuy

OK so after about .5 minutes of searching I found the part of the template to edit.  Only problem is, I don't know what to do with it!  I'm assuming that I have to hard code a value for this $settings['use_image_buttons'] ? .  Can you give me a hint?

Thanks for the help.

[Unknown]

Easiest way would be to change this:

$settings['use_image_buttons'] ?

To this:

true ?

-[Unknown]


sugarbeth

Can someone please clarify these instructions for me (php newbie)?

So like if I want my menu button to be an image (while I have the option for everything else set to "text"), what exactly do I change to true in this section, for example?

      echo '
            <a href="', $scripturl, '?action=calendar">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/calendar.jpg" alt="' . $txt['calendar24'] . '" border="0" />' : $txt['calendar24']), '</a>', $context['menu_separator'];


Thanks!! :)

sugarbeth


Advertisement: