RE: Re[2]: Caching all but part (fixed, ignore previous message)
| From: | Patrick Quinn-Graham | Date: | Wed, 30 Jan 2002 07:19:07 +0000 |
| Subject: | RE: Re[2]: Caching all but part (fixed, ignore previous message) | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-2614@lists.php.net to get a copy of this message | ||
Could you show me the insert_site_functions.php source? (or at least the
bit that pertains to this)... and what I have to do to Smarty to use it,
etc.
Thanks :-).
-----Original Message-----
From: Linus McCabe [mailto:Linus@McCabe.nu]
Sent: Wednesday, 30 January 2002 7:36 p.m.
To: smarty@lists.ispi.net
Subject: [smarty] Re[2]: Caching all but part (fixed, ignore previous
message)
I've done somehting similar to this:
<%insert script="insert_site_functions.php" name="userLoggedIn" true="
%3Ca+class%3D%22submenu%22+href%3D%22{$site_url}%3Ffunc%3Dcore%3A%3Aps_use
r
-%3Elogout%22%3ELogout%3C%2Fa%3E%3Cbr%3E
" false="
%3Ca+class%3D%22submenu%22+href%3D%22{$site_url}community%2Flogin.php%22%3
E
Login%3C%2Fa%3E%3Cbr%3E
"%>
So, the "userLoggedIn function inserts either the 'true' or the 'false'
part if the user is logged in / not logged in.
This works, but since the true and false parts contains " and other
characters, I have to write it URL-encoded.
Is there a better way to do this, so that the true and false parts can
still be written in clear text? (I don't want the html as a part of the
function!)
/Linus
(Sorry, Monte - didnt mean to send it to your personal mail, still didnt
get used to this email program)
On Tue, 29 Jan 2002 23:59:32 -0600 Monte Ohrt <monte@ispi.net> wrote:
> check out the insert function, see if that could help.
>
> Patrick Quinn-Graham wrote:
>
> > (sorry, it appears outlook screwed up my digital sig)
> >
> > I want to cache all of a page except a little bit (wich is a simple
> > {if}{else}{/if} block).
> >
> > Is there a way to do this?
> >
> > Thanks.
> >
> > Patrick.
> >
> > ---
> > You are currently subscribed to smarty as: monte@ispi.net
> > To unsubscribe send a blank email to
> $subst('Email.Unsub')
> > Visit Smarty's homepage at
> > http://www.phpinsider.com/php/code/Smarty/
>
>
> ---
> You are currently subscribed to smarty as: linus@mccabe.nu
> To unsubscribe send a blank email to $subst('Email.Unsub')
> Visit Smarty's homepage at
> http://www.phpinsider.com/php/code/Smarty/
>
>
---
You are currently subscribed to smarty as: me@pftqg.com
To unsubscribe send a blank email to $subst('Email.Unsub')
Visit Smarty's homepage at http://www.phpinsider.com/php/code/Smarty/
Attachment: [application/x-pkcs7-signature] smime.p7s
Attachment: [application/x-pkcs7-signature] smime.p7s