General Community > Scripting Help
how do i edit the menu?
(1/1)
ronaldguilmet:
i want to change the "media" to "videos" but I searched the index.template.php thru and thru and can't find it. I find the menu code, but no way to change. it's all php, but don't see where the menu is getting pages from.
geek_andy:
Try looking in ./Sources/Subs.php
Text is also usually stored in the language files located ./Themes/default/languages/Modifications.english.php
Yoshi explains alot better below
Yoshi:
--- Quote from: geek_andy on February 24, 2012, 03:59:43 PM ---Try looking in ./Sources/Subs.php
--- End quote ---
That won't help, as mods may not have hardcoded text. It's only useful when checking what text string is used.
Assuming you are using SMF 2.0.2, try looking in "Themes/default/languages/Modifications.{your language}.php".
You need to check that for all languages.
If you want to check the string used, go into Sources/Subs.php and look for the button. Then find "'title' => $txt['the_string']," for that button, where $txt['the_string'] must be found in Modifications.{your language}.php. Of course this is just an example :)
geek_andy:
--- Quote from: Yoshi2889 on February 24, 2012, 04:02:38 PM ---
--- Quote from: geek_andy on February 24, 2012, 03:59:43 PM ---Try looking in ./Sources/Subs.php
--- End quote ---
That won't help, as mods may not have hardcoded text. It's only useful when checking what text string is used.
Assuming you are using SMF 2.0.2, try looking in "Themes/default/languages/Modifications.{your language}.php".
You need to check that for all languages.
If you want to check the string used, go into Sources/Subs.php and look for the button. Then find "'title' => $txt['the_string']," for that button, where $txt['the_string'] must be found in Modifications.{your language}.php. Of course this is just an example :)
--- End quote ---
Yes, you are right, I have edited the menu on my forum dozens of times I should have learnt by now.. :-[
ronaldguilmet:
thanks guys.
I found it in themes/default/languages/Modifications.english.php
I use Aeva and it was located in there
--- Code: ---// Aeva Media extra strings
$txt['aeva_gallery'] = isset($txt['aeva_gallery']) ? $txt['aeva_gallery'] : 'Video & Media';
--- End code ---
i changed the end piece from Media to Video & Media
thanks again
Navigation
[0] Message Index
Go to full version