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

Recent

Welcome to TinyPortal. Please login or sign up.

March 28, 2024, 08:20:52 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,104
  • Total Topics: 21,212
  • Online today: 152
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 1
  • Guests: 155
  • Total: 156
  • tino

Double Menu for Downloads

Started by Wichtlmex, October 17, 2019, 06:47:56 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Wichtlmex

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

lurkalot

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,

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.

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.

Wichtlmex

SMF 2.1 RC1, TP 1.6.3