Add ads to full size images

bigu_c
bigu_c's picture

Joined: 2007-10-28
Posts: 421
Posted: Thu, 2009-07-23 16:27

I'm using Carbon theme.

For example, when user browses http://www.car-pictures.us/bentley/continental/Bentley_Continental_Supersports_279.jpg.html

There is a link with title is "Download full size".

Currently: After click on that link will open a pop-up with with full size image.
I WANT: Open it in a window with some ads like this

Please help me.

Thanks!

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2009-07-24 00:13

Is 'Download full size" a stock carbon theme feature or was it added later?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
bigu_c
bigu_c's picture

Joined: 2007-10-28
Posts: 421
Posted: Fri, 2009-07-24 02:22

That is feature from Carbon theme.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Fri, 2009-07-24 03:51

You will need to create a template file that has the image and the other stuff you want.
edit the link in themes/carbon/templates/navigator.tpl:

	      <div class="buttonPopup"><a href="{$smarty.capture.url}" target="_blank"
	       onclick="popImage(this.href, '{$theme.item.title|escape:"quotes"}'); return false;"
	       title="{g->text text="Full Size"}"></a></div>

to link to your new template and not the image only.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
bigu_c
bigu_c's picture

Joined: 2007-10-28
Posts: 421
Posted: Fri, 2009-07-24 07:24

Sorry, I'm asking how to "create a template file that has the image with some ads".

Can you tell me in details to do what I want?

Thanks!

 
bigu_c
bigu_c's picture

Joined: 2007-10-28
Posts: 421
Posted: Tue, 2009-07-28 08:02

My target page will simple like this:

Quote:
Adsense code<br />
<img src="xxx">

What is "xxx" I have to add to this file in this case?

And in navigator.tpl, which code I have to replace current code?

Thanks!

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2009-07-28 16:21

You might need to pass the variable to the template but this should be the url to the image:
{$smarty.capture.url}

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
bigu_c
bigu_c's picture

Joined: 2007-10-28
Posts: 421
Posted: Sat, 2009-08-29 02:32

I will can't complete my work.

Can you tell me step by step in details?

Thank you so much!

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2009-08-29 07:33

Not enough time to work on your issue and G3 as well.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team