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,993
  • Total Topics: 21,324
  • Online today: 388
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 276
  • Total: 276

Mod help with admin page

Started by TaskMaster, July 25, 2008, 07:17:01 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

TaskMaster

I have written a few mos to SMF/Tinyportal and two of them have admin pages.  I figured out how to add a menu item to the left side admin menu, and when my settings page is up the admin menu shows.  But, the normal left side menu is also showing to the left of the admin menu.  It does not show up when the stock admin pages are viewed, only when my admin pages are being viewed.  Can someone tell me how I can keep that left side menu from showing when MY admin pages are showing?

Thanks for any help.

Ken.

We would need to know your versions numbers, so... Please read and follow the Posting Guidelines

If you are running TP1.x try this:
Admin>Tiny Portal>Panels and Blocks>Panel>Hide panels when in custom actions:>... place the name of your custom action/page in that array to see if that will do what you need.

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

TaskMaster

Here are my versions.

SMF version: 1.1.5
TP version: 0.9.8

I am not really looking for a setting within the admin section.  I am wondering what code needs to be within my mod to make the left panel not show up just like it doesn't when other admin settings pages are viewed.

Is there some other file I need to include the name of my admin page in, or is there just a $content variable I need to set?

It isn't that big of a deal, I am just trying to get it so it looks like the other admin pages.

Ken.

Ah... all the more reason to clearly detail what your needs are.  ;)

I don't have an answer for you but hopefully one of our code specialists will be able to help.
" If everything seems under control, you're not going fast enough." - Mario Andretti
Yesterday When I was Young.

IchBin

This will hide the left bar.
tp_hidebar('left');

TaskMaster

I think tp_hidebar() is from the latest version of tp, not 0.9.8.

Thanks though.

Maybe I will upgrade.  I wonder how much of my mods will need to be rewritten...

bloc

No, it exists on 0.9.8 too. For all panels/bars to close(as done in all of TP admin sections) just use:
tp_hidebars('all');

TaskMaster

Thanks.

I must have made a mistake last time I tried it, because I got an error.   I just tried again and it works fine now.  Probably mistyped something.


This website is proudly hosted on Crocweb Cloud Website Hosting.