Re: [Phphtmllib-devel] 1) Test cite for TextCSSNav issue. 2) idea for authentication module
Status: Beta
Brought to you by:
hemna
From: Walter A. B. I. <wab...@3g...> - 2004-02-21 01:05:48
|
Quoting Erich Enke <twi...@fa...>: > 1) For the issue of zooming in and out and seeing the TextCSSNav not > respect its containing table's boundaries, see > www.theexecutivecenter.com/testing/mine.php ----aaahhh ok. I see the issue. If you look at the theme.php output it = has the css defined for the TextCSSNav. the main class '.textnav' has a height: = 16px; setting, which is most likely what is breaking the layout in your page. = The browser doesn't seem to make the outer TD stretch to allow this to fit. = Try uncommenting the css style in main.css for .menublock make the height:2= 1px; uncommented. See if that helps some. This is just a css/html issue. =20 You can customize the css styles for any of the phphtmllib widgets withou= t hacking the widget's source. Check out the code in the phphtmllib/css di= r. =20 > 2) One of the more difficult things with setting up a complete site > solution, at least for beginners, seems to be getting a user registrati= on > and login system going. I would love to see widgets in phphtmllib hand= le > login and so on, maybe setting flags for if you want to authenticate > using MYSQL or ADODB or /etc/passwd. Ideally, one would be able to add > the authentication widget to your page, and it would take care of > starting the session with appropriate session variables and so on. The > widget would have a method that you could call to see explicitly if the > user is logged in or not. >=20 > In addition to a login/authentication widget, there would be an > associated registration widget, in which you could register new users, > and maybe a change password widget. >=20 > One benefit to having these predefined widgets is that it would give > users a starting place as to knowing how the forms are all supposed to > work together. Another benefit is that, well, I would love to be able = to > just include the LoginWidget, and have that be that. Also, such forms > that are commonplace to e-commerce could be done securely once, instead > of having all sorts of insecure hacks running around out there. ----yah this might be helpfull, but that gets phphtmllib into the realm o= f a framework, instead of just an html library. What password checking algor= ithm would one use? Some use myslq's built in password(), others would use an= md5, others could use blowfish, etc. etc. This is besides the fact that other= s might want to use a flat file for storing account info. This widget would have= to abstract the 'db' which is out of the scope of phphtmllib. I guess it co= uld create an interface which a user would be forced to override to provide t= he checking mechanism...hmm. food for thought at least. > Only problem is, I'm having trouble figuring out how to implement it.=20 > Such as, how does one make sure that the session is started before any > HTML is output once you have authenticated the user? Add a > this_is_an_authentication_page method to any page-like widget? Make an > authentication widget that contains any other component which does its > stuff first and then passes control off to its children? Something els= e > I haven't considered? -----when someone submits the login form, you do all of the checking for authentication. Once authenticated, then you start the session. This al= l happens during the processing of the form, which happens before render() = time and hence before any html output. W >=20 > Thanks, > --epte >=20 > --=20 > http://www.fastmail.fm - Access your email from home and the web >=20 >=20 > ------------------------------------------------------- > SF.Net is sponsored by: Speed Start Your Linux Apps Now. > Build and deploy apps & Web services for Linux with > a free DVD software kit from IBM. Click Now! > http://ads.osdn.com/?ad_id=3D1356&alloc_id=3D3438&op=3Dclick > _______________________________________________ > Phphtmllib-devel mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phphtmllib-devel >=20 |