SMF Support > SMF 2.0.x Support

beta 4 language file and button question

(1/2) > >>

genusis:
how do i uninstall a language file i have 2 British English and English and i want to get rid of British English.

Also i would like to ask how do i add or redo a button like i added the rules mod but the link just is text and no image.. how would i add an image to the button and how would i make new buttons with images for them too?

all i see is this..


--- Code: ---// Show the menu up top.  Something like [home] [help] [profile] [logout]...
function template_menu()
{
global $context, $settings, $options, $scripturl, $txt;

// We aren't showing all the buttons in this theme.
$hide_buttons = array('help','calendar','pm');

foreach ($context['menu_buttons'] as $act => $button)
if (in_array($act, $hide_buttons))
continue;
else
echo '
<a href="', $button['href'], '">', $settings['use_image_buttons'] ? '<img src="' . $settings['lang_images_url'] . '/' . $act . '.gif" alt="' . $button['title'] . '" border="0" />' : $button['title'], '</a>', !empty($button['is_last']) ? '' : $context['menu_separator'];
}

// Generate a strip of buttons, out of buttons.
function template_button_strip($button_strip, $direction = 'top', $force_reset = false, $custom_td = '')
{
global $settings, $buttons, $context, $txt, $scripturl;

if (empty($button_strip))
return '';

// Create the buttons...
foreach ($button_strip as $key => $value)
{
if (isset($value['test']) && empty($context[$value['test']]))
{
unset($button_strip[$key]);
continue;
}
elseif (!isset($buttons[$key]) || $force_reset)
$buttons[$key] = '<a href="' . $value['url'] . '" ' . (isset($value['custom']) ? $value['custom'] : '') . '>' . ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/' . ($value['lang'] ? $context['user']['language'] . '/' : '') . $value['image'] . '" alt="' . $txt[$value['text']] . '" border="0" />' : $txt[$value['text']]) . '</a>';

$button_strip[$key] = $buttons[$key];
}

echo '
<td ', $custom_td, '>', implode($context['menu_separator'], $button_strip) , '</td>';
}

?>
--- End code ---

N3RVE:
Welcome to SMF, genusis :)
FTP in (How do I use FTP? / What is FTP?), Navigate to ./Themes/default/languages and delete all files with English British
For the tabs, post a link to the forum so I can see what you're talking about.
. . . and the code you posted doesn't contain block of code for the button.

-[n3rve]

genusis:
http://spirea.kozlowski.ws/ that's the site at the top where menu is its just text for some and images for others i want to know how to change those to images and how to add my own buttons with images.

it contains the part where i can remove the buttons i don't want.

oh and thank you.. but i been with smf for more than a year haha just usually don't need anything or never found any problems i couldn't fix.

N3RVE:
The only button with text there is 'Rules'.
Buttons aren't controlled with index.template.php in 2.0 Beta 4
Open ./Sources/Subs.php

See:
[x]Adding tabs to SMF 2.0

-[n3rve]

genusis:
thank you. there are more then one but there hidden from guests..

Navigation

[0] Message Index

[#] Next page

Go to full version