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

Recent

Welcome to TinyPortal. Please login or sign up.

December 10, 2024, 06:30:35 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,443
  • Total Topics: 21,252
  • Online today: 144
  • Online ever: 6,457 (November 30, 2024, 02:40:09 PM)
Users Online
  • Users: 0
  • Guests: 47
  • Total: 47

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