News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Multiple Buttons

Started by Naggykristin, March 28, 2005, 09:03:08 PM

Previous topic - Next topic

Naggykristin

Hi
  I have read and read numerous posts about buttons and I have tried loads of different options.  No matter what I try I can't seem to be able to place 2 of my buttons in a row.  They are buttons to external links.  Any help in where I'm messing up the code would be appreciated.

// Edit Profile... [profile]
   if ($context['allow_edit_profile'])
      echo '
            <a href="', $scripturl, '?action=profile">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/profile.gif" alt="' . $txt[79] . '" style="margin: 2px 0;" border="0" />' : $txt[467]), '</a>', $context['menu_separator'];

    echo '
<a href="http://pub33.bravenet.com/guestmap/show.php?usernum=2786871905&password=&icons=1&movetox=0&movetoy=0">', ($settings['use_image_buttons'] ? '<img src="http://pogofiends.co.uk/smf/Themes/default/images/english/map2.gif" alt="map" style="margin: 2px 0;" border="0" />' : map), '</a>';


echo '
<a href="http://free.hostultra.com/~naggykristin/sample/ebay.html">', ($settings['use_image_buttons'] ? '<img src="http://pogofiends.co.uk/smf/Themes/default/images/english/donate.gif" alt="donate to pogofiends" style="margin: 2px 0;" border="0" />' : donate to us please), '</a>';


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


This is example has coding 2 buttons, but if i can get 2 to work, I'm sure I can get the rest.  Thanks   :D

[Unknown]

// Edit Profile... [profile]
   if ($context['allow_edit_profile'])
      echo '
            <a href="', $scripturl, '?action=profile">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . $context['user']['language'] . '/profile.gif" alt="' . $txt[79] . '" style="margin: 2px 0;" border="0" />' : $txt[467]), '</a>', $context['menu_separator'];

    echo '
<a href="http://pub33.bravenet.com/guestmap/show.php?usernum=2786871905&amp;password=&amp;icons=1&amp;movetox=0&amp;movetoy=0">', ($settings['use_image_buttons'] ? '<img src="http://pogofiends.co.uk/smf/Themes/default/images/english/map2.gif" alt="map" style="margin: 2px 0;" border="0" />' : 'map'), '</a>', $context['menu_separator'];

echo '
<a href="http://free.hostultra.com/~naggykristin/sample/ebay.html">', ($settings['use_image_buttons'] ? '<img src="http://pogofiends.co.uk/smf/Themes/default/images/english/donate.gif" alt="donate to pogofiends" style="margin: 2px 0;" border="0" />' : 'donate to us please'), '</a>', $context['menu_separator'];

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


Do you see what I made different?

-[Unknown]

Naggykristin

#2
Yes, I believe so.  Duh, me.  Thank you for your help.   :)

Advertisement: