Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Aiheen aloitti: Acans - tammikuu 21, 2009, 09:37:55 IP

Otsikko: Changing HELP tab to ba ba and change where it goes
Kirjoitti: Acans - tammikuu 21, 2009, 09:37:55 IP
Ok, now i tryed to do this but failed when i relised that tut was for 1.1  :-X

So i know i need to edit index.english.php and index.template.php

I think i've done it correctly in english by changing

$txt[help] = 'Help';
to
$txt[119] = 'Manual';

but what do i need to do in index.template.php

Theirs no Show help button like in 1.1
Otsikko: Re: Changing HELP tab to ba ba and change where it goes
Kirjoitti: NEMINI - tammikuu 22, 2009, 12:38:39 AP
buttons are not generated in the theme files in 2.x they are in /Sources/Subs.php
Otsikko: Re: Changing HELP tab to ba ba and change where it goes
Kirjoitti: Acans - tammikuu 22, 2009, 01:25:36 AP
Lainaus käyttäjältä: NEMINI - tammikuu 22, 2009, 12:38:39 AP
buttons are not generated in the theme files in 2.x they are in /Sources/Subs.php

kk, do you know how to do it
Otsikko: Re: Changing HELP tab to ba ba and change where it goes
Kirjoitti: Acans - tammikuu 23, 2009, 12:38:17 AP
Bump :)
Otsikko: Re: Changing HELP tab to ba ba and change where it goes
Kirjoitti: greyknight17 - tammikuu 30, 2009, 05:42:03 IP
It's still stored in cache. Go to /cache and look for lang_index+Modifications_english_default.php. Delete it when found. That should refresh it if you already changed the text to:

$txt[119] = 'Manual';

To change the link, open up /Sources/Subs.php:

Koodi (Search for) [Valitse]
'help' => array(
'title' => $txt['help'],
'href' => $scripturl . '?action=help',
'show' => true,
'sub_buttons' => array(
),
),


Change $scripturl . '?action=help' to whatever you want.
Otsikko: Re: Changing HELP tab to ba ba and change where it goes
Kirjoitti: Acans - tammikuu 30, 2009, 06:30:01 IP
Question, does the URL need to be in '' or ""
Otsikko: Re: Changing HELP tab to ba ba and change where it goes
Kirjoitti: greyknight17 - helmikuu 08, 2009, 05:17:36 IP
Single quotes should make it work. Something like:

'help' => array(
'title' => $txt['help'],
'href' => 'http://www.yoursite.com',
'show' => true,
'sub_buttons' => array(
),
),
Otsikko: Re: Changing HELP tab to ba ba and change where it goes
Kirjoitti: Acans - helmikuu 08, 2009, 11:50:43 IP
Does this work for 2.0 RC1. Or has it been changed since 2.0.4
Otsikko: Re: Changing HELP tab to ba ba and change where it goes
Kirjoitti: Tyrsson - helmikuu 09, 2009, 12:04:58 AP
The menu uses the same syntax in 2RC1. SO it should work ;)
Otsikko: Re: Changing HELP tab to ba ba and change where it goes
Kirjoitti: Acans - helmikuu 12, 2009, 05:07:39 AP
It works, thanks