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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,966
  • Latest: safir45
Stats
  • Total Posts: 195,990
  • Total Topics: 21,323
  • Online today: 1,050
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 1
  • Guests: 336
  • Total: 337
  • lurkalot

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

This website is proudly hosted on Crocweb Cloud Website Hosting.