TinyPortal

Development => Support => Topic started by: tectonny on March 19, 2011, 12:46:15 AM

Title: Hello, po TinyPortal installed and I like it, but there was a problem and need h
Post by: tectonny on March 19, 2011, 12:46:15 AM
Link to my site: http://www.tectonny.com/forum/
SMF version: SMF 2.0RC5
TP version: TP 1.0RC1
Default Forum Language: Portuguese UTF8
Theme name and version: Curve
Browser Name and Version: Firefox
Mods installed: RedirecPage
Related Error messages:
Notice: Undefined index: show_download in /home/database/public_html/forum/Sources/TPSubs.php on line 201



Hello, po TinyPortal installed and I like it, but there was a problem and need help to solve.

Use the redirectPage and every time I enter this page the following appears:
http://www.tectonny.com/forum/acesso.php?url=aHR0cDovL2J1c2Nhc2hhcmUuaW4vc2VhcmNoLnBocD9jeD1wYXJ0bmVyLXB1Yi00ODM3MDc2MDAyMjU2MTk1JTNBNHd2ZTgxLW1kdnEmYW1wO2NvZj1GT1JJRCUzQTEwJmFtcDtpZT1VVEYtOCZhbXA7cT1QQU5BU09OSUMrU0EtUFQxNjAmYW1wO3NhPVBlc3F1aXNhK1NoYXJl

How to solve?
Title: Re: Hello, po TinyPortal installed and I like it, but there was a problem and need h
Post by: tectonny on March 20, 2011, 10:01:48 PM
Solved using the tip of his colleague on this link:
http://www.tinyportal.net/index.php?topic=33507.msg268778#msg268778

Disabling the following code:
// if($context['TPortal']['show_download']==1)
//
// $buts['downloads'] = array(
//
// 'title' => $txt['tp-downloads'],
//
// 'href' => $scripturl . '?action=tpmod;dl',
//
// 'show' => true,
//
// 'active_button' => false,
//
// 'sub_buttons' => array(
//
// ),
//
// );


What problem can I have disabling these lines?
Title: Re: Hello, po TinyPortal installed and I like it, but there was a problem and need h
Post by: IchBin on March 21, 2011, 12:33:29 AM
That disables the download button in the menu. Nothing to worry about. The reason the error was appearing is because when certain types of conditions exist, the variable didn't exist. This will be fixed in the next version.