- Joined
- Dec 15, 2005
- Posts
- 1,780
- Reaction score
- 66
Thanks to grant the problem with the button is identified the problem now is fixing it.
Here's the code for the menu buttons.
// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt;
echo '<div id="tabs6">';
echo '<ul><li><a href="', $scripturl, '"><span>'.$txt[103].'</span></a></li>';
echo '<li><a href="', $scripturl, '?action=help" ><span>', $txt[119], '</span></a></li>';
// How about the [search] button?
if ($context['allow_search'])
echo '<li><a href="', $scripturl, '?action=search"><span>', $txt[182] , '</span></a></li>';
// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin']){
echo '<li><a href="', $scripturl, '?action=admin"><span>', $txt[2], '</span></a></li>';
}
// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo '<li><a href="', $scripturl, '?action=profile"><span>', $txt[467], '</span></a></li>';
// The [calendar]!
if ($context['allow_calendar'])
echo '<li><a href="', $scripturl, '?action=calendar"><span>', $txt['calendar24'], '</span></a></li>';
// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo '<li><a href="', $scripturl, '?action=pm"><span>' , $txt['pm_short'], '</span></a></li>';
the highlighted value is not retrieving the text for the button so the button is not showing properly(see post http://www.acorndomains.co.uk/website-design/10205-smf-help.html)
all the other $txt values retrieve the relevant text for their corrosponding button.
I have been tryin 8 hours to fix this, i like a challenge but it's getting rediculous!!
Please help:???:
Here's the code for the menu buttons.
// Show the menu up top. Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt;
echo '<div id="tabs6">';
echo '<ul><li><a href="', $scripturl, '"><span>'.$txt[103].'</span></a></li>';
echo '<li><a href="', $scripturl, '?action=help" ><span>', $txt[119], '</span></a></li>';
// How about the [search] button?
if ($context['allow_search'])
echo '<li><a href="', $scripturl, '?action=search"><span>', $txt[182] , '</span></a></li>';
// Is the user allowed to administrate at all? ([admin])
if ($context['allow_admin']){
echo '<li><a href="', $scripturl, '?action=admin"><span>', $txt[2], '</span></a></li>';
}
// Edit Profile... [profile]
if ($context['allow_edit_profile'])
echo '<li><a href="', $scripturl, '?action=profile"><span>', $txt[467], '</span></a></li>';
// The [calendar]!
if ($context['allow_calendar'])
echo '<li><a href="', $scripturl, '?action=calendar"><span>', $txt['calendar24'], '</span></a></li>';
// Go to PM center... [pm]
if ($context['user']['is_logged'] && $context['allow_pm'])
echo '<li><a href="', $scripturl, '?action=pm"><span>' , $txt['pm_short'], '</span></a></li>';
the highlighted value is not retrieving the text for the button so the button is not showing properly(see post http://www.acorndomains.co.uk/website-design/10205-smf-help.html)
all the other $txt values retrieve the relevant text for their corrosponding button.
I have been tryin 8 hours to fix this, i like a challenge but it's getting rediculous!!
Please help:???: