TinyPortal

Themes. => Bloc Themes (free) => Topic started by: vectorseries on May 08, 2015, 02:24:29 AM

Title: Problem in Menu Studio001
Post by: vectorseries on May 08, 2015, 02:24:29 AM
Link to my forum: http://www.gsmfans.org/index.php?action=forum
SMF version: SMF 2.0.10
TP version: No TP
Default Forum Language: Portuguese_Brazilian
Theme name and version: Studio001
Browser Name and Version: Chrome
Mods installed: Various
Related Error messages: Estou usando o Theme Studio001, mas está com problemas em menus adcional que tenho em meu fórum.
I was wondering how do I disable some menus not to show this theme but to show others? I want to use this theme only in mobile, but I would have just a few menus.
Could help me with this problem?

(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fwww.imgfans.com.br%2Fi777%2FDarkness%2FAtualizacoes%2F02.png&hash=8aa258d45c98e137f8c9ba338d9804e79394dcac)

(https://www.tinyportal.net/proxy.php?request=http%3A%2F%2Fwww.imgfans.com.br%2Fi777%2FDarkness%2FAtualizacoes%2F01.png&hash=074f4d155a511a94cac8866aea45787f6980bb27)
Title: Re: Problem in Menu Studio001
Post by: vectorseries on May 08, 2015, 11:58:18 PM
Alguém poderia me ajudar nessa questão?
Title: Re: Problem in Menu Studio001
Post by: bloc on May 09, 2015, 01:58:20 AM
You need to modify Subs.php - thats where the menus are created. The theme doesn't do anything with the menu items itself, SMF controls them.
Title: Re: Problem in Menu Studio001
Post by: IchBin on May 10, 2015, 03:33:40 PM
If you just want to remove menu items from this theme, you can also just unset() it inside the template_menu() function. I don't know the variable names off the top of my head, but it would look something like this.

unset($context['menu_buttons']['help']);

That would remove the help button from the array. Put it right before the foreach() loop in the template_menu() function. You can unset as many as you like.
unset($var1, $var2, $var3);