phplib-users Mailing List for PHPLIB (Page 45)
Brought to you by:
nhruby,
richardarcher
You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(106) |
Sep
(99) |
Oct
(44) |
Nov
(97) |
Dec
(60) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(56) |
Feb
(81) |
Mar
(134) |
Apr
(69) |
May
(106) |
Jun
(122) |
Jul
(98) |
Aug
(52) |
Sep
(184) |
Oct
(219) |
Nov
(102) |
Dec
(106) |
2003 |
Jan
(88) |
Feb
(37) |
Mar
(46) |
Apr
(51) |
May
(30) |
Jun
(17) |
Jul
(45) |
Aug
(19) |
Sep
(5) |
Oct
(4) |
Nov
(12) |
Dec
(7) |
2004 |
Jan
(11) |
Feb
(7) |
Mar
|
Apr
(15) |
May
(17) |
Jun
(13) |
Jul
(5) |
Aug
|
Sep
(8) |
Oct
(6) |
Nov
(21) |
Dec
(13) |
2005 |
Jan
(4) |
Feb
(3) |
Mar
(7) |
Apr
(7) |
May
|
Jun
(11) |
Jul
(7) |
Aug
|
Sep
|
Oct
|
Nov
(7) |
Dec
|
2006 |
Jan
(3) |
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
(2) |
Jul
(1) |
Aug
|
Sep
|
Oct
(9) |
Nov
|
Dec
(5) |
2007 |
Jan
(15) |
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(9) |
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
2008 |
Jan
|
Feb
|
Mar
|
Apr
(12) |
May
|
Jun
(3) |
Jul
(1) |
Aug
(19) |
Sep
(2) |
Oct
|
Nov
|
Dec
(6) |
2009 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(6) |
From: Joe S. <jo...@be...> - 2002-09-24 19:37:53
|
On Tue, Sep 24, 2002 at 12:31:19PM -0700, Aric Caley wrote: > But if you have to implement the form anyway, who cares what the function is > called? Implement the form you want. > > Now, if the login form normaly came up and then gave you an option to go to > the registration form then I could see a reason to have the two functions > for forms and two functions for validation. But it doesnt seem to work like > that. At least I can't get it to do that. > Ah, It can work that way just fine. > You either *always* get registerform()/doregister() or *always* get > loginform()/validatelogin() depending on the mode. The mode never changes. > So one set of functions never gets called. So why have two? What am I > missing? > It's a logic problem that the mode never changes not auth.inc. I just got burned on that with register_globals off. ( cvs commit soon for phpslash). Look at current cvs of phpSlash for an example of working code. Joe |
From: Rob H. <rob...@ws...> - 2002-09-24 19:36:19
|
Thanks, This solved all of the "features" I was seeing... Rob Hutton Web Safe www.wsafe.com ********************************************************************** Introducing Symantec Client Security - Integrated Anti-Virus, Firewall, and Intrusion Detection for the Client. Learn more: http://enterprisesecurity.symantec.com/symes238.cfm?JID=2&PID=11624271 View our Symantec Client Security Demo: http://enterprisesecurity.symantec.com/symes238.cfm?JID=3&PID=11624271 Download the Symantec Client Security Fact Sheet: http://enterprisesecurity.symantec.com/symes238.cfm?JID=4&PID=11624271 Download the Symantec Client Security Brochure: http://enterprisesecurity.symantec.com/symes238.cfm?JID=5&PID=11624271 > -----Original Message----- > From: php...@li... > [mailto:php...@li...]On Behalf Of Joe > Stewart > Sent: Tuesday, September 24, 2002 3:03 PM > To: php...@li... > Subject: Re: [Phplib-users] Blank line after each block > > > Which version of phplib/template.inc are you using? > > I believe this is corrected in the 7.4-pre1 release ( template.inc,v 1.8 > 2001/08/10). > > The template.inc in cvs will handle multiple blocks on a line. > > http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/phplib/php-lib-stab > le/php/template.inc > > Joe > > On Tue, Sep 24, 2002 at 02:21:57PM -0400, Rob Hutton wrote: > > I am getting a blank line after each block in the HTML output. > Is there a > > way to avoid this? > > > > Thanks, > > Rob Hutton > > Web Safe > > www.wsafe.com > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Phplib-users mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phplib-users > > |
From: Brian P. <bp...@ct...> - 2002-09-24 19:34:18
|
Ok.. as long as you have a practical objection to the method and not a technical one. I personally disagree. If you are trying to separate logic and your GUI (the whole point of templates), I would recommend doing as much branching and conditional logic in the code as possible. What's an HTML designer that doesn't know anything about code going to do when they come across 25 blocks (or comments as far as they are concerned) of links. Not to mention, if you work in a GUI editor, the output is going to be very WYSIN(ot)WYG. I understand this is holy war and there is no "right" answer, but some answers ARE better than others (ehemm!). :) -bpopp -----Original Message----- From: Rob Hutton [mailto:rob...@ws...] Sent: Tuesday, September 24, 2002 2:17 PM To: Brian Popp; php...@li... Subject: RE: [Phplib-users] Multiple blocks per line Debugging code is harder with the more indirections. It is more straight forward to handle the indirection in the code generating the output, not generate the code that does indirection, then decide. You have two places things could go wrong then. Rob Hutton Web Safe www.wsafe.com ********************************************************************** Introducing Symantec Client Security - Integrated Anti-Virus, Firewall, and Intrusion Detection for the Client. Learn more: http://enterprisesecurity.symantec.com/symes238.cfm?JID=2&PID=11624271 View our Symantec Client Security Demo: http://enterprisesecurity.symantec.com/symes238.cfm?JID=3&PID=11624271 Download the Symantec Client Security Fact Sheet: http://enterprisesecurity.symantec.com/symes238.cfm?JID=4&PID=11624271 Download the Symantec Client Security Brochure: http://enterprisesecurity.symantec.com/symes238.cfm?JID=5&PID=11624271 > -----Original Message----- > From: php...@li... > [mailto:php...@li...]On Behalf Of Brian Popp > Sent: Tuesday, September 24, 2002 3:17 PM > To: 'rob...@ws...'; 'php...@li...' > Subject: RE: [Phplib-users] Multiple blocks per line > > > I'm not following you? Sounds like you found the answer you were looking > for, but I'm just curious why this wouldn't be more readable than > 25 blocks > of HREF statements: > > <a onClick="{url}"> > > and then: > > <? > > switch ( $type ) > { > case ITEM_TYPE1: > $function = "item_function1( $parameters );"; > break; > > case ITEM_TYPE2: > $function = "item_function2( $parameters );"; > break; > > case ITEM_TYPE3: > $function = "item_function3( $parameters );"; > break; > > ... > } > > $t->set_var ( "url", "javascript:$function; return;" ); > > ?> > > Am I missing something? > > -----Original Message----- > From: Rob Hutton [mailto:rob...@ws...] > Sent: Tuesday, September 24, 2002 1:45 PM > To: Brian Popp; php...@li... > Subject: RE: [Phplib-users] Multiple blocks per line > > > The point is that there are about 25 different functions that could be > called in an onclick that will be called based on what sort of item it is. > I could wrap them in a function, and pass the type as a > parameter, but I was > trying to keep the HTML as readable as possible. > > Rob Hutton > Web Safe > www.wsafe.com > > ********************************************************************** > > Introducing Symantec Client Security - Integrated Anti-Virus, > Firewall, and Intrusion Detection for the Client. > > Learn more: > http://enterprisesecurity.symantec.com/symes238.cfm?JID=2&PID=11624271 > > View our Symantec Client Security Demo: > http://enterprisesecurity.symantec.com/symes238.cfm?JID=3&PID=11624271 > > Download the Symantec Client Security Fact Sheet: > http://enterprisesecurity.symantec.com/symes238.cfm?JID=4&PID=11624271 > > Download the Symantec Client Security Brochure: > http://enterprisesecurity.symantec.com/symes238.cfm?JID=5&PID=11624271 > > > > -----Original Message----- > > From: Brian Popp [mailto:bp...@ct...] > > Sent: Tuesday, September 24, 2002 2:45 PM > > To: 'rob...@ws...'; 'php...@li...' > > Subject: RE: [Phplib-users] Multiple blocks per line > > > > > > That's a hard way to do what it looks like you're trying to do. > > Instead, I'd > > do something like: > > > > <a onClick="{url}"> > > > > in the template, and then in your code: > > > > if ( $x == 1 ) > > $t->set_var ( "url", "javascript:function($parameter1); return > > true;" ); > > else > > $t->set_var ( "url", "javascript:function($parameter2); return > > true;" ); > > > > (or something to this effect) > > > > -bpopp > > > > -----Original Message----- > > From: Rob Hutton [mailto:rob...@ws...] > > Sent: Tuesday, September 24, 2002 1:21 PM > > To: php...@li... > > Subject: [Phplib-users] Multiple blocks per line > > > > > > I have a need to do something like > > > > <a onClick="<!-- BEGIN block1 -->function({param});<!-- END > block1 --><!-- > > BEGIN block2 -->function({param});<!-- END block2 -->return true;"> > > > > When I try this, I get "block1" or "block2" is not a valid handle > > when I try > > to set block. Is there a way to do this? > > > > Rob Hutton > > Web Safe > > www.wsafe.com > > > > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Phplib-users mailing list > > Php...@li... > > https://lists.sourceforge.net/lists/listinfo/phplib-users > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Phplib-users mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phplib-users > |
From: Aric C. <gre...@pe...> - 2002-09-24 19:31:38
|
But if you have to implement the form anyway, who cares what the function is called? Implement the form you want. Now, if the login form normaly came up and then gave you an option to go to the registration form then I could see a reason to have the two functions for forms and two functions for validation. But it doesnt seem to work like that. At least I can't get it to do that. You either *always* get registerform()/doregister() or *always* get loginform()/validatelogin() depending on the mode. The mode never changes. So one set of functions never gets called. So why have two? What am I missing? ----- Original Message ----- From: "Joe Stewart" <jo...@be...> To: "phpplib" <php...@li...> Sent: Tuesday, September 24, 2002 12:18 PM Subject: Re: [Phplib-users] auth_registerform/auth_doregister -- why? > Hi Aric, > > On Tue, Sep 24, 2002 at 10:30:43AM -0700, Aric Caley wrote: > > Maybe I'm missing something. But I dont see why the auth_registerform() and > > auth_doregister() functions are there. If you set the mode to reg you > > get these functions and if its set to log you get auth_loginform() and > > auth_validatelogin(). Why have these four functions? If you want a > > registration form, just put it in auth_loginform() and have > > auth_validatelogin() do the user creation stuff. I dont see the > > difference. What am I missing here? > > I like the flexibility in the library for this. I need a registration > form that gathers more information than the login form requires for > authentication. > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Phplib-users mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phplib-users > |
From: Rob H. <rob...@ws...> - 2002-09-24 19:27:52
|
Thanks, I'm using 7.2d now Rob Hutton Web Safe www.wsafe.com ********************************************************************** Introducing Symantec Client Security - Integrated Anti-Virus, Firewall, and Intrusion Detection for the Client. Learn more: http://enterprisesecurity.symantec.com/symes238.cfm?JID=2&PID=11624271 View our Symantec Client Security Demo: http://enterprisesecurity.symantec.com/symes238.cfm?JID=3&PID=11624271 Download the Symantec Client Security Fact Sheet: http://enterprisesecurity.symantec.com/symes238.cfm?JID=4&PID=11624271 Download the Symantec Client Security Brochure: http://enterprisesecurity.symantec.com/symes238.cfm?JID=5&PID=11624271 > -----Original Message----- > From: php...@li... > [mailto:php...@li...]On Behalf Of Joe > Stewart > Sent: Tuesday, September 24, 2002 3:03 PM > To: php...@li... > Subject: Re: [Phplib-users] Blank line after each block > > > Which version of phplib/template.inc are you using? > > I believe this is corrected in the 7.4-pre1 release ( template.inc,v 1.8 > 2001/08/10). > > The template.inc in cvs will handle multiple blocks on a line. > > http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/phplib/php-lib-stab le/php/template.inc Joe On Tue, Sep 24, 2002 at 02:21:57PM -0400, Rob Hutton wrote: > I am getting a blank line after each block in the HTML output. Is there a > way to avoid this? > > Thanks, > Rob Hutton > Web Safe > www.wsafe.com > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Phplib-users mailing list Php...@li... https://lists.sourceforge.net/lists/listinfo/phplib-users |
From: Joe S. <jo...@be...> - 2002-09-24 19:19:43
|
Hi Aric, On Tue, Sep 24, 2002 at 10:30:43AM -0700, Aric Caley wrote: > Maybe I'm missing something. But I dont see why the auth_registerform() and > auth_doregister() functions are there. If you set the mode to reg you > get these functions and if its set to log you get auth_loginform() and > auth_validatelogin(). Why have these four functions? If you want a > registration form, just put it in auth_loginform() and have > auth_validatelogin() do the user creation stuff. I dont see the > difference. What am I missing here? I like the flexibility in the library for this. I need a registration form that gathers more information than the login form requires for authentication. |
From: Rob H. <rob...@ws...> - 2002-09-24 19:12:42
|
Debugging code is harder with the more indirections. It is more straight forward to handle the indirection in the code generating the output, not generate the code that does indirection, then decide. You have two places things could go wrong then. Rob Hutton Web Safe www.wsafe.com ********************************************************************** Introducing Symantec Client Security - Integrated Anti-Virus, Firewall, and Intrusion Detection for the Client. Learn more: http://enterprisesecurity.symantec.com/symes238.cfm?JID=2&PID=11624271 View our Symantec Client Security Demo: http://enterprisesecurity.symantec.com/symes238.cfm?JID=3&PID=11624271 Download the Symantec Client Security Fact Sheet: http://enterprisesecurity.symantec.com/symes238.cfm?JID=4&PID=11624271 Download the Symantec Client Security Brochure: http://enterprisesecurity.symantec.com/symes238.cfm?JID=5&PID=11624271 > -----Original Message----- > From: php...@li... > [mailto:php...@li...]On Behalf Of Brian Popp > Sent: Tuesday, September 24, 2002 3:17 PM > To: 'rob...@ws...'; 'php...@li...' > Subject: RE: [Phplib-users] Multiple blocks per line > > > I'm not following you? Sounds like you found the answer you were looking > for, but I'm just curious why this wouldn't be more readable than > 25 blocks > of HREF statements: > > <a onClick="{url}"> > > and then: > > <? > > switch ( $type ) > { > case ITEM_TYPE1: > $function = "item_function1( $parameters );"; > break; > > case ITEM_TYPE2: > $function = "item_function2( $parameters );"; > break; > > case ITEM_TYPE3: > $function = "item_function3( $parameters );"; > break; > > ... > } > > $t->set_var ( "url", "javascript:$function; return;" ); > > ?> > > Am I missing something? > > -----Original Message----- > From: Rob Hutton [mailto:rob...@ws...] > Sent: Tuesday, September 24, 2002 1:45 PM > To: Brian Popp; php...@li... > Subject: RE: [Phplib-users] Multiple blocks per line > > > The point is that there are about 25 different functions that could be > called in an onclick that will be called based on what sort of item it is. > I could wrap them in a function, and pass the type as a > parameter, but I was > trying to keep the HTML as readable as possible. > > Rob Hutton > Web Safe > www.wsafe.com > > ********************************************************************** > > Introducing Symantec Client Security - Integrated Anti-Virus, > Firewall, and Intrusion Detection for the Client. > > Learn more: > http://enterprisesecurity.symantec.com/symes238.cfm?JID=2&PID=11624271 > > View our Symantec Client Security Demo: > http://enterprisesecurity.symantec.com/symes238.cfm?JID=3&PID=11624271 > > Download the Symantec Client Security Fact Sheet: > http://enterprisesecurity.symantec.com/symes238.cfm?JID=4&PID=11624271 > > Download the Symantec Client Security Brochure: > http://enterprisesecurity.symantec.com/symes238.cfm?JID=5&PID=11624271 > > > > -----Original Message----- > > From: Brian Popp [mailto:bp...@ct...] > > Sent: Tuesday, September 24, 2002 2:45 PM > > To: 'rob...@ws...'; 'php...@li...' > > Subject: RE: [Phplib-users] Multiple blocks per line > > > > > > That's a hard way to do what it looks like you're trying to do. > > Instead, I'd > > do something like: > > > > <a onClick="{url}"> > > > > in the template, and then in your code: > > > > if ( $x == 1 ) > > $t->set_var ( "url", "javascript:function($parameter1); return > > true;" ); > > else > > $t->set_var ( "url", "javascript:function($parameter2); return > > true;" ); > > > > (or something to this effect) > > > > -bpopp > > > > -----Original Message----- > > From: Rob Hutton [mailto:rob...@ws...] > > Sent: Tuesday, September 24, 2002 1:21 PM > > To: php...@li... > > Subject: [Phplib-users] Multiple blocks per line > > > > > > I have a need to do something like > > > > <a onClick="<!-- BEGIN block1 -->function({param});<!-- END > block1 --><!-- > > BEGIN block2 -->function({param});<!-- END block2 -->return true;"> > > > > When I try this, I get "block1" or "block2" is not a valid handle > > when I try > > to set block. Is there a way to do this? > > > > Rob Hutton > > Web Safe > > www.wsafe.com > > > > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Phplib-users mailing list > > Php...@li... > > https://lists.sourceforge.net/lists/listinfo/phplib-users > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Phplib-users mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phplib-users > |
From: Joe S. <jo...@be...> - 2002-09-24 19:04:05
|
Which version of phplib/template.inc are you using? I believe this is corrected in the 7.4-pre1 release ( template.inc,v 1.8 2001/08/10). The template.inc in cvs will handle multiple blocks on a line. http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/phplib/php-lib-stable/php/template.inc Joe On Tue, Sep 24, 2002 at 02:21:57PM -0400, Rob Hutton wrote: > I am getting a blank line after each block in the HTML output. Is there a > way to avoid this? > > Thanks, > Rob Hutton > Web Safe > www.wsafe.com > |
From: Brian P. <bp...@ct...> - 2002-09-24 18:59:51
|
I'm not following you? Sounds like you found the answer you were looking for, but I'm just curious why this wouldn't be more readable than 25 blocks of HREF statements: <a onClick="{url}"> and then: <? switch ( $type ) { case ITEM_TYPE1: $function = "item_function1( $parameters );"; break; case ITEM_TYPE2: $function = "item_function2( $parameters );"; break; case ITEM_TYPE3: $function = "item_function3( $parameters );"; break; ... } $t->set_var ( "url", "javascript:$function; return;" ); ?> Am I missing something? -----Original Message----- From: Rob Hutton [mailto:rob...@ws...] Sent: Tuesday, September 24, 2002 1:45 PM To: Brian Popp; php...@li... Subject: RE: [Phplib-users] Multiple blocks per line The point is that there are about 25 different functions that could be called in an onclick that will be called based on what sort of item it is. I could wrap them in a function, and pass the type as a parameter, but I was trying to keep the HTML as readable as possible. Rob Hutton Web Safe www.wsafe.com ********************************************************************** Introducing Symantec Client Security - Integrated Anti-Virus, Firewall, and Intrusion Detection for the Client. Learn more: http://enterprisesecurity.symantec.com/symes238.cfm?JID=2&PID=11624271 View our Symantec Client Security Demo: http://enterprisesecurity.symantec.com/symes238.cfm?JID=3&PID=11624271 Download the Symantec Client Security Fact Sheet: http://enterprisesecurity.symantec.com/symes238.cfm?JID=4&PID=11624271 Download the Symantec Client Security Brochure: http://enterprisesecurity.symantec.com/symes238.cfm?JID=5&PID=11624271 > -----Original Message----- > From: Brian Popp [mailto:bp...@ct...] > Sent: Tuesday, September 24, 2002 2:45 PM > To: 'rob...@ws...'; 'php...@li...' > Subject: RE: [Phplib-users] Multiple blocks per line > > > That's a hard way to do what it looks like you're trying to do. > Instead, I'd > do something like: > > <a onClick="{url}"> > > in the template, and then in your code: > > if ( $x == 1 ) > $t->set_var ( "url", "javascript:function($parameter1); return > true;" ); > else > $t->set_var ( "url", "javascript:function($parameter2); return > true;" ); > > (or something to this effect) > > -bpopp > > -----Original Message----- > From: Rob Hutton [mailto:rob...@ws...] > Sent: Tuesday, September 24, 2002 1:21 PM > To: php...@li... > Subject: [Phplib-users] Multiple blocks per line > > > I have a need to do something like > > <a onClick="<!-- BEGIN block1 -->function({param});<!-- END block1 --><!-- > BEGIN block2 -->function({param});<!-- END block2 -->return true;"> > > When I try this, I get "block1" or "block2" is not a valid handle > when I try > to set block. Is there a way to do this? > > Rob Hutton > Web Safe > www.wsafe.com > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Phplib-users mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phplib-users > |
From: Aric C. <gre...@pe...> - 2002-09-24 18:48:52
|
I'm no regular expression master, but this seems to work: preg_replace("/\n|\r/","", $template->parse('OUT',"index")); naturaly replace the parse() as needed... ----- Original Message ----- From: "Rob Hutton" <rob...@ws...> To: "Aric Caley" <gre...@pe...>; "phpplib" <php...@li...> Sent: Tuesday, September 24, 2002 11:45 AM Subject: RE: [Phplib-users] Multiple blocks per line > Thanks, how do I strip the line breaks? > > Rob Hutton > Web Safe > www.wsafe.com > > > -----Original Message----- > > From: Aric Caley [mailto:gre...@pe...] > > Sent: Tuesday, September 24, 2002 2:26 PM > > To: phpplib; rob...@ws... > > Subject: Re: [Phplib-users] Multiple blocks per line > > > > > > I tried to do something similar to construct URLs. My experimentation > > indicated that the block indicators had to be on their own lines or they > > wouldnt be parsed. > > > > I ended up doing it on multiple lines, and then simply striping > > out the line > > breaks. Put a block around the whole thing and strip inside that block. > > something like this: > > > > <!-- BEGIN anoying --> > > <a onClick=" > > <!-- BEGIN block1 --> > > function({param}); > > <!-- END block1 --> > > <!-- BEGIN block2 --> > > function({param}); > > <!-- END block2 --> > > return true;"> > > <!-- END anoying --> > > > > Do your block1 and block2 parsing, then parse anoying and strip the line > > breaks from that, and then continue your business... > > > > ----- Original Message ----- > > From: "Rob Hutton" <rob...@ws...> > > To: <php...@li...> > > Sent: Tuesday, September 24, 2002 11:20 AM > > Subject: [Phplib-users] Multiple blocks per line > > > > > > > I have a need to do something like > > > > > > <a onClick="<!-- BEGIN block1 -->function({param});<!-- END > > block1 --><!-- > > > BEGIN block2 -->function({param});<!-- END block2 -->return true;"> > > > > > > When I try this, I get "block1" or "block2" is not a valid handle when I > > try > > > to set block. Is there a way to do this? > > > > > > Rob Hutton > > > Web Safe > > > www.wsafe.com > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This sf.net email is sponsored by:ThinkGeek > > > Welcome to geek heaven. > > > http://thinkgeek.com/sf > > > _______________________________________________ > > > Phplib-users mailing list > > > Php...@li... > > > https://lists.sourceforge.net/lists/listinfo/phplib-users > > > > > > > > > > |
From: Rob H. <rob...@ws...> - 2002-09-24 18:41:59
|
Thanks, how do I strip the line breaks? Rob Hutton Web Safe www.wsafe.com > -----Original Message----- > From: Aric Caley [mailto:gre...@pe...] > Sent: Tuesday, September 24, 2002 2:26 PM > To: phpplib; rob...@ws... > Subject: Re: [Phplib-users] Multiple blocks per line > > > I tried to do something similar to construct URLs. My experimentation > indicated that the block indicators had to be on their own lines or they > wouldnt be parsed. > > I ended up doing it on multiple lines, and then simply striping > out the line > breaks. Put a block around the whole thing and strip inside that block. > something like this: > > <!-- BEGIN anoying --> > <a onClick=" > <!-- BEGIN block1 --> > function({param}); > <!-- END block1 --> > <!-- BEGIN block2 --> > function({param}); > <!-- END block2 --> > return true;"> > <!-- END anoying --> > > Do your block1 and block2 parsing, then parse anoying and strip the line > breaks from that, and then continue your business... > > ----- Original Message ----- > From: "Rob Hutton" <rob...@ws...> > To: <php...@li...> > Sent: Tuesday, September 24, 2002 11:20 AM > Subject: [Phplib-users] Multiple blocks per line > > > > I have a need to do something like > > > > <a onClick="<!-- BEGIN block1 -->function({param});<!-- END > block1 --><!-- > > BEGIN block2 -->function({param});<!-- END block2 -->return true;"> > > > > When I try this, I get "block1" or "block2" is not a valid handle when I > try > > to set block. Is there a way to do this? > > > > Rob Hutton > > Web Safe > > www.wsafe.com > > > > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Phplib-users mailing list > > Php...@li... > > https://lists.sourceforge.net/lists/listinfo/phplib-users > > > > |
From: Rob H. <rob...@ws...> - 2002-09-24 18:41:21
|
The point is that there are about 25 different functions that could be called in an onclick that will be called based on what sort of item it is. I could wrap them in a function, and pass the type as a parameter, but I was trying to keep the HTML as readable as possible. Rob Hutton Web Safe www.wsafe.com ********************************************************************** Introducing Symantec Client Security - Integrated Anti-Virus, Firewall, and Intrusion Detection for the Client. Learn more: http://enterprisesecurity.symantec.com/symes238.cfm?JID=2&PID=11624271 View our Symantec Client Security Demo: http://enterprisesecurity.symantec.com/symes238.cfm?JID=3&PID=11624271 Download the Symantec Client Security Fact Sheet: http://enterprisesecurity.symantec.com/symes238.cfm?JID=4&PID=11624271 Download the Symantec Client Security Brochure: http://enterprisesecurity.symantec.com/symes238.cfm?JID=5&PID=11624271 > -----Original Message----- > From: Brian Popp [mailto:bp...@ct...] > Sent: Tuesday, September 24, 2002 2:45 PM > To: 'rob...@ws...'; 'php...@li...' > Subject: RE: [Phplib-users] Multiple blocks per line > > > That's a hard way to do what it looks like you're trying to do. > Instead, I'd > do something like: > > <a onClick="{url}"> > > in the template, and then in your code: > > if ( $x == 1 ) > $t->set_var ( "url", "javascript:function($parameter1); return > true;" ); > else > $t->set_var ( "url", "javascript:function($parameter2); return > true;" ); > > (or something to this effect) > > -bpopp > > -----Original Message----- > From: Rob Hutton [mailto:rob...@ws...] > Sent: Tuesday, September 24, 2002 1:21 PM > To: php...@li... > Subject: [Phplib-users] Multiple blocks per line > > > I have a need to do something like > > <a onClick="<!-- BEGIN block1 -->function({param});<!-- END block1 --><!-- > BEGIN block2 -->function({param});<!-- END block2 -->return true;"> > > When I try this, I get "block1" or "block2" is not a valid handle > when I try > to set block. Is there a way to do this? > > Rob Hutton > Web Safe > www.wsafe.com > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Phplib-users mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phplib-users > |
From: Brian P. <bp...@ct...> - 2002-09-24 18:27:30
|
That's a hard way to do what it looks like you're trying to do. Instead, I'd do something like: <a onClick="{url}"> in the template, and then in your code: if ( $x == 1 ) $t->set_var ( "url", "javascript:function($parameter1); return true;" ); else $t->set_var ( "url", "javascript:function($parameter2); return true;" ); (or something to this effect) -bpopp -----Original Message----- From: Rob Hutton [mailto:rob...@ws...] Sent: Tuesday, September 24, 2002 1:21 PM To: php...@li... Subject: [Phplib-users] Multiple blocks per line I have a need to do something like <a onClick="<!-- BEGIN block1 -->function({param});<!-- END block1 --><!-- BEGIN block2 -->function({param});<!-- END block2 -->return true;"> When I try this, I get "block1" or "block2" is not a valid handle when I try to set block. Is there a way to do this? Rob Hutton Web Safe www.wsafe.com ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Phplib-users mailing list Php...@li... https://lists.sourceforge.net/lists/listinfo/phplib-users |
From: Aric C. <gre...@pe...> - 2002-09-24 18:26:42
|
I tried to do something similar to construct URLs. My experimentation indicated that the block indicators had to be on their own lines or they wouldnt be parsed. I ended up doing it on multiple lines, and then simply striping out the line breaks. Put a block around the whole thing and strip inside that block. something like this: <!-- BEGIN anoying --> <a onClick=" <!-- BEGIN block1 --> function({param}); <!-- END block1 --> <!-- BEGIN block2 --> function({param}); <!-- END block2 --> return true;"> <!-- END anoying --> Do your block1 and block2 parsing, then parse anoying and strip the line breaks from that, and then continue your business... ----- Original Message ----- From: "Rob Hutton" <rob...@ws...> To: <php...@li...> Sent: Tuesday, September 24, 2002 11:20 AM Subject: [Phplib-users] Multiple blocks per line > I have a need to do something like > > <a onClick="<!-- BEGIN block1 -->function({param});<!-- END block1 --><!-- > BEGIN block2 -->function({param});<!-- END block2 -->return true;"> > > When I try this, I get "block1" or "block2" is not a valid handle when I try > to set block. Is there a way to do this? > > Rob Hutton > Web Safe > www.wsafe.com > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Phplib-users mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phplib-users > |
From: Rob H. <rob...@ws...> - 2002-09-24 18:17:56
|
I am getting a blank line after each block in the HTML output. Is there a way to avoid this? Thanks, Rob Hutton Web Safe www.wsafe.com |
From: Rob H. <rob...@ws...> - 2002-09-24 18:16:47
|
I have a need to do something like <a onClick="<!-- BEGIN block1 -->function({param});<!-- END block1 --><!-- BEGIN block2 -->function({param});<!-- END block2 -->return true;"> When I try this, I get "block1" or "block2" is not a valid handle when I try to set block. Is there a way to do this? Rob Hutton Web Safe www.wsafe.com |
From: Aric C. <gre...@pe...> - 2002-09-24 17:31:00
|
Maybe I'm missing something. But I dont see why the auth_registerform() = and auth_doregister() functions are there. If you set the mode to reg = you get these functions and if its set to log you get auth_loginform() = and auth_validatelogin(). Why have these four functions? If you want a = registration form, just put it in auth_loginform() and have = auth_validatelogin() do the user creation stuff. I dont see the = difference. What am I missing here? |
From: Chris J. <ch...@ch...> - 2002-09-24 03:08:55
|
On Mon, Sep 23, 2002 at 07:12:03AM +0530, Dr Tarique Sani wrote: > Once we have a release ready I will put the necessary changes in the docs. > > Now the question is who will bell the release? > > I mean bell the cat and make the release? > > Nathan - haven't heard from you on this... ... > > > Cheers > > Tarique Tarique, If you all can get the code in order and the CVS so that the tip versions of the files we want to include contain the code you want, and then let me know which files those are, I'll figure out how to make the release. -- ..chris |
From: S. <bj...@ba...> - 2002-09-23 19:07:19
|
Hi Joe, > How does one know that the package exists in PEAR if not from the PEAR > website and documentation? Currently the class is only in CVS. To appear on the PEAR web site I have to release a packages (including package.xml, docs etc.), but I didn't have the time yet ... > interface documentation, but is it referenced anywhere by PEAR? Only if you look at cvs.php.net > I'm sure there are many that didn't know you had taken the time to port > template.inc to PEAR. Yep. Hopefully I will have some time in the next weeks to release it as a package - then it will appear on the PEAR web site. Greetings, Björn. -- Wenn mit der Website das Herz Ihres Unternehmens aus dem Takt kommt. Wenn das kleine Problem vom Montag am Freitag vor dem RollOut ein grosses ist. * te...@th... Wir helfen Ihnen. Innerhalb von 2 Stunden. * 0931/78 43 804 |
From: Joe S. <jo...@be...> - 2002-09-23 19:05:09
|
On Mon, Sep 23, 2002 at 08:51:50PM +0200, Bj?rn Schotte wrote: > > Documentation is in the PHPLIB Documentation. > How does one know that the package exists in PEAR if not from the PEAR website and documentation? I understand not duplicating the actual interface documentation, but is it referenced anywhere by PEAR? I'm sure there are many that didn't know you had taken the time to port template.inc to PEAR. > > How are changes and bugfixes from phplib tracked? > > Not at all, since I don't have much time ATM. But feel free > to grab a cvs account if you need something to be fixed. > thanks for getting it in PEAR. Joe |
From: S. <bj...@ba...> - 2002-09-23 18:51:56
|
Hi Joe, * Joe Stewart wrote: > I've tried to find information on the HTML_Template_PHPLIB package without > not much success. Is the documentation just missing from pear.php.net or am I > missing something else. Documentation is in the PHPLIB Documentation. > How are changes and bugfixes from phplib tracked? Not at all, since I don't have much time ATM. But feel free to grab a cvs account if you need something to be fixed. -- Wenn mit der Website das Herz Ihres Unternehmens aus dem Takt kommt. Wenn das kleine Problem vom Montag am Freitag vor dem RollOut ein grosses ist. * te...@th... Wir helfen Ihnen. Innerhalb von 2 Stunden. * 0931/78 43 804 |
From: Joe S. <jo...@be...> - 2002-09-23 18:48:09
|
Hello Bjoern, I've tried to find information on the HTML_Template_PHPLIB package without not much success. Is the documentation just missing from pear.php.net or am I missing something else. How are changes and bugfixes from phplib tracked? thanks, Joe On Mon, Sep 23, 2002 at 08:31:15PM +0200, Bj?rn Schotte wrote: > Hi, > > * steve grimes wrote: > > Session/ Auth - pear Auth uses php sessions rather than a database > > session polynomial and variables. > > Native PHP4 sessions can use DB as a storage container and > PHPLIB's session class also can use native PHP4 sessions, so > I don't see any big difference. > > > I know that there is a strict set of coding standards for contributions > > It's not that hard to learn if you want to contribute to > PEAR. > > -- |
From: Giancarlo <gia...@na...> - 2002-09-23 18:34:45
|
Il 20:29, luned=EC 23 settembre 2002, hai scritto: > Hi, > > * Michael Chaney wrote: > > a huge amount of overhead for what it does, plus a lot of learning ab= out > > their way of programming. There's so much code in PEAR, that a compiler preprocessor would really b= oost=20 its performance better than having all settings, initializations, include= s=20 etc be done by the interpreter. Gian |
From: S. <bj...@ba...> - 2002-09-23 18:31:22
|
Hi, * steve grimes wrote: > Session/ Auth - pear Auth uses php sessions rather than a database > session polynomial and variables. Native PHP4 sessions can use DB as a storage container and PHPLIB's session class also can use native PHP4 sessions, so I don't see any big difference. > I know that there is a strict set of coding standards for contributions It's not that hard to learn if you want to contribute to PEAR. -- Wenn mit der Website das Herz Ihres Unternehmens aus dem Takt kommt. Wenn das kleine Problem vom Montag am Freitag vor dem RollOut ein grosses ist. * te...@th... Wir helfen Ihnen. Innerhalb von 2 Stunden. * 0931/78 43 804 |
From: S. <bj...@ba...> - 2002-09-23 18:29:26
|
Hi, * Michael Chaney wrote: > a huge amount of overhead for what it does, plus a lot of learning about > their way of programming. Coding guidelines are not that hard to learn. > The bottom line is that in its current state, PHP doesn't have what it > takes to make a CPAN-like system. PEAR does not want to be CPAN-like. > Pear is a poor stand-in for that. Since PEAR does not want to be CPAN-like, it can't be a poor stand-in. -- Wenn mit der Website das Herz Ihres Unternehmens aus dem Takt kommt. Wenn das kleine Problem vom Montag am Freitag vor dem RollOut ein grosses ist. * te...@th... Wir helfen Ihnen. Innerhalb von 2 Stunden. * 0931/78 43 804 |