News: Welcome to the TinyPortal Support site.

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

October 21, 2019, 01:49:07 PM

Login with username, password and session length

Recent

Members
  • Total Members: 3756
  • Latest: Ocean
Stats
  • Total Posts: 189112
  • Total Topics: 20766
  • Online Today: 145
  • Online Ever: 629
  • (November 08, 2018, 01:36:54 PM)
Users Online
Users: 1
Guests: 56
Total: 57

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

0 Members and 1 Guest are viewing this topic.

Offline Wichtlmex

  • Jr. Member
  • **
  • Posts: 98
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: 6298
    • 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

  • Jr. Member
  • **
  • Posts: 98
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