TinyPortal

Development => Support => Topic started by: ahrasis on April 19, 2010, 04:28:15 PM

Title: ADD PANEL
Post by: ahrasis on April 19, 2010, 04:28:15 PM
Is it possible to add panel to current available panel of TinyPortal? I need to add a place like the global header & footer mod (http://custom.simplemachines.org/mods/index.php?mod=351) in smf. How do I do that? Thank you in advance.
Title: Re: ADD PANEL
Post by: IchBin on April 19, 2010, 04:40:04 PM
TP only gives you panels to alter, it doesn't give you a way to add panels. If you want to put something in the header you'll have to alter your theme or use the global header/footer mod.
Title: Re: ADD PANEL
Post by: ahrasis on April 19, 2010, 04:49:23 PM
In that case, can I change the bottom panel to position to the place I want i.e. on the very top of the page instead of its current position on bottom of the forum. I can just replace it position in index.template.php right?
Title: Re: ADD PANEL
Post by: IchBin on April 19, 2010, 04:53:23 PM
No, TP adds the panels as layers. Layers can only be put between the SMF template_above and template_below layers. Which means between the head and foot of the page.
Title: Re: ADD PANEL
Post by: bloc on April 20, 2010, 04:07:17 PM
Look at TPBlockLayout.template.php file inside Themes/default, there you see how its laid out. It still around the content..but you could for example move the bottom panel call out of that file altogheter, to right after body tag inside the index.template.php.

That should put it right at the top, before any markup(well, BODY markup anyway ;) )

Note that you should copy over TPBlockLayout file to your custom theme when you change it and of course it will still be named "bottom" panel inside admin.

In future TP these panels may be placed as you like and brand new ones added as well - but not for TP v1.0.