SMFHacks.com

SMF Classifieds => Support => Topic started by: neilwheel on February 06, 2009, 11:56:14 am

Title: Button strip in Versatility theme/IE7
Post by: neilwheel on February 06, 2009, 11:56:14 am
Im using the RT Versatility theme and everything looks great in Firefox and Chrome. However in Internet Explorer, the right-justified strip of buttons end up stacked instead of all on one line to the right of the template. Can anyone tell me why this is and how I could go about rectifying it? A member of my forum reckons it needs to have some
 
Code: [Select]
<td> and </td> tags placed in the HTML, but I haven't been able to find the appropriate lines for the buttons.

Here is a screenshot of what the template looks like in IE7 on an attachment.

Many thanks,

Neil
Title: Re: Button strip in Versatility theme/IE7
Post by: neilwheel on February 09, 2009, 10:03:52 am
*bump*  :'(
Title: Re: Button strip in Versatility theme/IE7
Post by: SMFHacks on February 09, 2009, 07:34:38 pm
Try the following
Open Sources/classifieds.php
Find
Code: [Select]

function DoToolBarStrip($button_strip, $direction )
{
global $settings, $txt;

if (!empty($settings['use_tabs']))
{
template_button_strip($button_strip, $direction);
}
else
{
foreach ($button_strip as $tab)
{
/*
if (!empty($tab['is_selected']))
{
echo '
<img src="', $settings['images_url'], '/selected.gif" alt="*" /> <b><a href="', $tab['url'], '">', $tab['text'], '</a></b>';

$selected_tab = $tab;
}
else
*/


echo '
<a href="', $tab['url'], '">', $txt[$tab['text']], '</a>';

if (empty($tab['is_last']))
echo ' | ';
}

}

}
Replace with
Code: [Select]

function DoToolBarStrip($button_strip, $direction )
{
global $settings, $txt;

if (!empty($settings['use_tabs']))
{
template_button_strip($button_strip, $direction);
}
else
{
echo '<td>';
foreach ($button_strip as $tab)
{
/*
if (!empty($tab['is_selected']))
{
echo '
<img src="', $settings['images_url'], '/selected.gif" alt="*" /> <b><a href="', $tab['url'], '">', $tab['text'], '</a></b>';

$selected_tab = $tab;
}
else
*/


echo '
<a href="', $tab['url'], '">', $txt[$tab['text']], '</a>';

if (empty($tab['is_last']))
echo ' | ';
}

echo '</td>';

}

}
Title: Re: Button strip in Versatility theme/IE7
Post by: neilwheel on February 10, 2009, 03:21:44 am
GREAT !  ;D ;D ;D ;D

Many thanks - works a treat!