Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Re: [SMARTY] Re: Conditional
If you are using a lightbox your HREF should be direct to the picture or
the script that generates the picture... Don't link back to your website
then try to hide stuff... if you do so you will be wasting CPU cycles
generating the header and footer, just to go and hide it..

<div class="gallery-thumb">
<a href="main.php?g2_view=core.DownloadItem&g2_itemId=23&g2_serialNumber=1" 
class="lightwindow">
<img src="photos/main.php?g2_view=core.DownloadItem&g2_itemId=24&g2_
serialNumber=2" width="150" height="113" alt="DSC01416"/>
</a>
</div>


Chris Arnold wrote:
> (Sorry Scott, i sent that mail directly to you instead of the list.)
> OK, check it out, what i am trying to do is when lightwindow is called, not displa
y header and footer in the lightwindow. So, i used this <div style="display:none;"><
div class="header"></div></div>. Nothing changed, the header was still shown. Is thi
s t
he right way to do what i want to do? Linkage: http://www.mytimewithgod.net/wp-gal...
emId=22 click on any photo and you will see
>
> Chris
> ----- Original Message -----
> From: "Chris Arnold" <carnold@electrichendrix.com>
> To: smarty-general@lists.php.net
> Sent: Tuesday, August 21, 2007 9:54:24 AM (GMT-0500) America/New_York
> Subject: Conditional
>
> I use a lightbox effect on my G2 site (which uses Smarty). When this
> lightbox effect is called, i want to display only certain stuff. How
> would i write this using smarty? Thanks for any help
>
> Chris
>
>

Report this thread to moderator Post Follow-up to this message
Old Post
Owen Cole
08-22-07 12:12 AM


Re: [SMARTY] Re: Conditional
This is what i have been trying to do before, make it direct to the pic but 
there are many pics also not sure how to point to the script that generates 
the pic. Here is the code from the theme:
<div class="gallery-thumb">
<a href="{g->url params=$theme.pageUrl arg1="itemId=`$child.id`"}" class="li
ghtwindow">
{if isset($child.thumbnail)}
{g->image item=$child image=$child.thumbnail}
{else}
{g->text text="no thumbnail"}
{/if}
</a>
</div>
Thanks for everything.

Chris
----- Original Message -----
From: "Owen Cole" <owenc@bluespiderinc.com>
To: "Smarty general" <smarty-general@lists.php.net>
Sent: Tuesday, August 21, 2007 3:37:06 PM (GMT-0500) America/New_York
Subject: Re: [SMARTY] Re: Conditional

If you are using a lightbox your HREF should be direct to the picture or
the script that generates the picture... Don't link back to your website
then try to hide stuff... if you do so you will be wasting CPU cycles
generating the header and footer, just to go and hide it..

<div class="gallery-thumb">
<a href="main.php?g2_view=core.DownloadItem&g2_itemId=23&g2_serialNumber=1" 
class="lightwindow">
<img src="photos/main.php?g2_view=core.DownloadItem&g2_itemId=24&g2_
serialNumber=2" width="150" height="113" alt="DSC01416"/>
</a>
</div>


Chris Arnold wrote:
> (Sorry Scott, i sent that mail directly to you instead of the list.)
> OK, check it out, what i am trying to do is when lightwindow is called, not displa
y header and footer in the lightwindow. So, i used this <div style="display:none;"><
div class="header"></div></div>. Nothing changed, the header was still shown. Is thi
s t
he right way to do what i want to do? Linkage: http://www.mytimewithgod.net/wp-gal...
emId=22 click on any photo and you will see
>
> Chris
> ----- Original Message -----
> From: "Chris Arnold" <carnold@electrichendrix.com>
> To: smarty-general@lists.php.net
> Sent: Tuesday, August 21, 2007 9:54:24 AM (GMT-0500) America/New_York
> Subject: Conditional
>
> I use a lightbox effect on my G2 site (which uses Smarty). When this
> lightbox effect is called, i want to display only certain stuff. How
> would i write this using smarty? Thanks for any help
>
> Chris
>
>

--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Report this thread to moderator Post Follow-up to this message
Old Post
Chris Arnold
08-22-07 12:12 AM


Re: [SMARTY] Re: Conditional
You're gonna have to hack the class for your "g" object to point to the
right place.

If you didn't make the class, take a look at the comments and maybe
there already is a method in there

If you did make it, you'll have to make another method to point direct
to the picture

Either way you wanna get this :
main.php?g2_view=core.DownloadItem&g2_itemId=23&g2_serialNumber=1

Good luck!

Chris Arnold wrote:
> This is what i have been trying to do before, make it direct to the pic bu
t there are many pics also not sure how to point to the script that generate
s the pic. Here is the code from the theme:
> <div class="gallery-thumb">
> 	<a href="{g->url params=$theme.pageUrl arg1="itemId=`$child.id`"}" class=
"lightwindow">
> 	  {if isset($child.thumbnail)}
> 	    {g->image item=$child image=$child.thumbnail}
> 	  {else}
> 	    {g->text text="no thumbnail"}
> 	  {/if}
> 	</a>
>       </div>
> Thanks for everything.
>
> Chris
> ----- Original Message -----
> From: "Owen Cole" <owenc@bluespiderinc.com>
> To: "Smarty general" <smarty-general@lists.php.net>
> Sent: Tuesday, August 21, 2007 3:37:06 PM (GMT-0500) America/New_York
> Subject: Re: [SMARTY] Re: Conditional
>
> If you are using a lightbox your HREF should be direct to the picture or
> the script that generates the picture... Don't link back to your website
> then try to hide stuff... if you do so you will be wasting CPU cycles
> generating the header and footer, just to go and hide it..
>
> <div class="gallery-thumb">
> 	<a href="main.php?g2_view=core.DownloadItem&g2_itemId=23&g2_serialNumber=
1" class="lightwindow">
> 		<img src="photos/main.php?g2_view=core.DownloadItem&g2_itemId=24&
;g2_serialNumber=2" width="150" height="113" alt="DSC01416"/>
> 	</a>
> </div>
>
>
> Chris Arnold wrote:
> 
the right way to do what i want to do? Linkage: http://www.mytimewithgod.net/wp-gal...br />
temId=22 click on any photo and you will see 
>
>

Report this thread to moderator Post Follow-up to this message
Old Post
Owen Cole
08-22-07 12:12 AM


Re: [SMARTY] Re: Conditional
Owen Cole wrote:
> You're gonna have to hack the class for your "g" object to point to
> the right place.
>
> If you didn't make the class, take a look at the comments and maybe
> there already is a method in there
>
> If you did make it, you'll have to make another method to point direct
> to the picture
>
> Either way you wanna get this :
> main.php?g2_view=core.DownloadItem&g2_itemId=23&g2_serialNumber=1
>
> Good luck!
>
>
Owen, you and this list have been a great help! The one thing that
confuses me is a regular lightbox effect does not exhibit this behaviour
(so i wonder why i would have to hack the "g" object class). To answer
the next question (why don't i use lightbox instead of lightwindow),
lightwindow supports video lightbox does not. I have taken this
problem/question to the dev of lightwindow (he says, not a lightwindow
problem). I have taken to the G2 forums and they say, look at
lightwindow dev or use lightbox. Thanks again!

Chris

Report this thread to moderator Post Follow-up to this message
Old Post
Chris Arnold
08-22-07 12:12 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Smarty Templates archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 03:39 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.