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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
Stats
  • Total Posts: 196,022
  • Total Topics: 21,332
  • Online today: 473
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online

SMF File Manager Mod

Started by Metorks, March 01, 2008, 10:28:54 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Metorks

I've installed the SMF File Manager Mod.

Whenever I view the File Manager, a function of the AdminCP, TP puts its panels up.

The author of the mod has this to say about the problem:

"That's because TinyPortal checks whether you're viewing an admin action, according to its own definitions. Since the File Manager isn't a default feature, TinyPortal doesn't know it belongs to the Admininistration Centre and thus expands shows its blocks again.

And no, I'm not going to edit this mod to make it 'TinyPortal compatible', sorry.
"


Any idea how we can edit TP's definition of Admin actions?

Thanks in advance!

Metorks

Nevermind.  I figured it out myself.  Quite simple really.

In .../Sources/TPortal.php
Code (Find) Select
if (in_array($context['TPortal']['action'], array('theme','tpadmin','admin', 'ban', 'boardrecount', 'cleanperms', 'detailedversion', 'dumpdb', 'featuresettings', 'featuresettings2', 'findmember', 'maintain', 'manageattachments', 'manageboards', 'managecalendar', 'managesearch', 'membergroups', 'modlog', 'news', 'optimizetables', 'packageget', 'packages', 'permissions', 'pgdownload', 'postsettings', 'regcenter', 'repairboards', 'reports', 'serversettings', 'serversettings2', 'smileys', 'viewErrorLog', 'viewmembers')))

Simply add , 'filemanager' directly after 'viewmembers'.

Resulting code should look like this:
if (in_array($context['TPortal']['action'], array('theme','tpadmin','admin', 'ban', 'boardrecount', 'cleanperms', 'detailedversion', 'dumpdb', 'featuresettings', 'featuresettings2', 'findmember', 'maintain', 'manageattachments', 'manageboards', 'managecalendar', 'managesearch', 'membergroups', 'modlog', 'news', 'optimizetables', 'packageget', 'packages', 'permissions', 'pgdownload', 'postsettings', 'regcenter', 'repairboards', 'reports', 'serversettings', 'serversettings2', 'smileys', 'viewErrorLog', 'viewmembers', 'filemanager')))

Ken.

Glad you found the fix, good job.  :up:

Marked as solved.
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

This website is proudly hosted on Crocweb Cloud Website Hosting.