TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

March 29, 2024, 12:02:09 PM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,106
  • Total Topics: 21,213
  • Online today: 358
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 77
  • Total: 77

Problem in Menu Studio001

Started by vectorseries, May 08, 2015, 02:24:29 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

vectorseries

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?




vectorseries

Alguém poderia me ajudar nessa questão?

bloc

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.

IchBin

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);