News: When asking for support, it helps us and you, if you read the Posting Guidelines

Login  |  Register
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media
Welcome, Guest. Please login or register.
Did you miss your activation email?

January 20, 2020, 11:29:14 AM

Login with username, password and session length

Recent

Members
Stats
  • Total Posts: 189417
  • Total Topics: 20794
  • Online Today: 508
  • Online Ever: 828
  • (January 19, 2020, 09:27:47 PM)
Users Online
Users: 2
Guests: 60
Total: 62

Author Topic: Double Menu for Downloads  (Read 1511 times)

0 Members and 1 Guest are viewing this topic.

Offline Wichtlmex

  • Full Member
  • ***
  • Posts: 101
Double Menu for Downloads
« on: October 16, 2019, 11:47:56 PM »
TP 1.6.3


Hi,
in http://www.ecotec2000.de/forum/index.php
you can see the top menu as shown in the screenshot.

The Menu item "Descargas/Documentos" was generated by me and allows documents download.
Clicking on the Menu Item "TinyPortal" leads to the same download section.
This is a bit confusing for the user. He/she would not search downloadbles under "TinyPortal"....
Is this avoidable?
Can I remove the "TinyPortal" tab?
Or can I remove the "Downloads" from the TinyPortal tab?
Regards
Michael

 




SMF 2.1 RC1, TP 1.6.3

Offline lurkalot

  • Administrator
  • *
  • Posts: 6415
    • Camera Craniums
Re: Double Menu for Downloads
« Reply #1 on: October 17, 2019, 12:58:07 AM »
Well, you can hide the downloads link from that menu, but it will require a small manual edit to the code to do so. 

If you just want to hide that link from the TP menu.  Make a backup of your file as always.

In sources TPSubs.php find,

Code: [Select]
if(!empty($context['TPortal']['show_download']))
$buts['downloads'] = array(
'title' => $txt['tp-downloads'],
'href' => $scripturl . '?action=tpmod;dl',
'show' => true,
'active_button' => false,
'sub_buttons' => array(),
);

Change to.

Code: [Select]
if(!empty($context['TPortal']['show_download']))
$buts['downloads'] = array(
'title' => $txt['tp-downloads'],
'href' => $scripturl . '?action=tpmod;dl',
'show' => false,
'active_button' => false,
'sub_buttons' => array(),
);


Hiding the TinyPortal tab itself is possible, but only if you're not using the modules such as Downloads or Articles. So that's not really a option.   

It would be handy to have settings for this in TP admin, but I'm not sure how much work that would involve.

Offline Wichtlmex

  • Full Member
  • ***
  • Posts: 101
Re: Double Menu for Downloads
« Reply #2 on: October 17, 2019, 01:13:57 AM »
Thanks, will try it!
SMF 2.1 RC1, TP 1.6.3