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,970
  • Latest: bynw
Stats
  • Total Posts: 196,041
  • Total Topics: 21,335
  • Online today: 173
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 149
  • Total: 149

Custom 'Panel Page' - additonal variable

Started by lebisol, October 18, 2007, 06:51:37 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

lebisol

Hello php gurus,
Perhaps you can help a code newbie.
I was wondering how to go about providing a setting/variable in TP admin--> Panels page where user can enter value?
Ideally I would like to use an additional panel setting called "logo" where user/admin can specify how big of a logo (or area where logo goes) they will be inserting.
In essence being able to use:
if($context['TPortal']['logo_area'])  then ....

Why?lol you ask if they can just inset the logo and logo will 'expand' the object (cell,div) to its size.
Well, with a small HTML trick we would be able to provide user to choose their 'padding' around the logo wihout using css or doing anything with code for that matter
This way, there will be no need to make a large logos with transparency just to accommodate design feel.
But I lack php and TP structure knowledge....
Many thanks!

IchBin

Well, I think if you're going to want to give users this setting you're going to have to add it to the Profile template. If you take a look at some profile mods you'll see how they add the fields and stuff. Haven't done any profile stuff myself.

lebisol

Oh when I said user...I meant "admin" ...hmmm 'users of template'.
Maybe too much work for something that can just be fixed with "change this in your template" kind of an answer.
Thanks IchBin!

IchBin

Well if you want to add it to a template you can look at some of Blocs themes. The way he has added the support for other mods will show you exactly how to add the configuration for admins.

lebisol

cool, I will look arround through his designs. Not a big deal, I noticed that StromLrd had simmilar concept of expansion in his XD series. If he re-surfaces again I will chat will him too.
Thanks IchBin!

IchBin

He got his concept from Bloc. :) Bloc is the inspiration around here as you'll come to find out. lol

lebisol

heheh I can imagine...all good...I am learning and experimenting...some ideas are far fetched as you got to see by my posts. LOL.
Thanks! ;)

This website is proudly hosted on Crocweb Cloud Website Hosting.