TinyPortal

Development => Support => Topic started by: Rock Lee on February 20, 2020, 09:58:43 PM

Title: Edit the menu
Post by: Rock Lee on February 20, 2020, 09:58:43 PM
Well I need to add a download manager so use TP so far I could leave it as I want but the menu item doubled to me:

>TinyPortal >>TinyPortal >>downloads You can see it here > https://www.bombercode.net/foro/index.php

I thought I had some permissions wrong but I can't leave it as it is here... More information: SMF 2.0.17, PHP: 7.1.33, Theme Boru_v1, TP 1.6.5...


Regards!

ADD: I had no problem with the installation and nothing marks the error log. I have some minor problems with the editor's embed but it is random to if I am not sure what the problem might be.
Title: Re: Edit the menu
Post by: @rjen on February 20, 2020, 10:07:34 PM
Interesting, never seen that before... and TBH no clue how that happened, or how to fix it...
Title: Re: Edit the menu
Post by: lurkalot on February 20, 2020, 10:17:22 PM
Quote from: @rjen on February 20, 2020, 10:07:34 PM
Interesting, never seen that before... and TBH no clue how that happened, or how to fix it...

I've not seen that either. Wonder if something to do with the theme in use. 

Rock Lee, does it do the same when viewing with the default theme?
Title: Re: Edit the menu
Post by: lurkalot on February 20, 2020, 10:49:14 PM
Just tried the Theme Boru_v1 and it does indeed display the Tinyportal twice. 
Title: Re: Edit the menu
Post by: Rock Lee on February 20, 2020, 11:16:06 PM
With the default theme it works as it should, that's why it seemed weird (that's why it gives me problems in the editor sometimes or how it doesn't load the file). That is why I looked at the error logs to see if anything appeared but nothing and in the browser console it also does not show me an error or a conflict.... For example, now I see in the url add "forum" when I want to access incognito firefox https://www.bombercode.net/foro/forum/
Title: Re: Edit the menu
Post by: Rock Lee on February 24, 2020, 03:40:58 PM
You can solve it by commenting on line 458 of the index.template.php although I don't know if it is the right option, the line of code apparently affected is:

<a  href="', $button['href'], '"', isset($button['target']) ? ' target="' . $button['target'] . '"' : '', '>', $button['title'], '</a>

I don't know what effects it will have on the rest of the site but I will try to prove if something fails and if it is necessary to adapt the line.


Regards!