Show full-size image on HTML page?

bigu_c
bigu_c's picture

Joined: 2007-10-28
Posts: 417
Posted: Mon, 2011-12-26 02:35

Hello,

I want to show my full-size images on a HTML page (to add some ads).

How can I do?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25957
Posted: Mon, 2011-12-26 05:47

<img src="http://example.com/gallery3/var/albums/albumName/photoname.jpg" height=xxx width=xxx />
You have to explain what you want to do and how you want to get the image.

Dave
____________________________________________
Blog & G2 || floridave - Gallery Team

 
bigu_c
bigu_c's picture

Joined: 2007-10-28
Posts: 417
Posted: Mon, 2011-12-26 06:00

Hi Dave,

I want to open a HTML file contain my full-size image when I click on re-size image on my photo page.

Thanks.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25957
Posted: Mon, 2011-12-26 16:53

I guess it would depend on the theme you are using. How much customization have you done?
photo.php.html would be the file to modify.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
bigu_c
bigu_c's picture

Joined: 2007-10-28
Posts: 417
Posted: Mon, 2011-12-26 17:12

If you can give me example code for default theme, I think I can do for other theme.

Thank you.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25957
Posted: Mon, 2011-12-26 18:26

In photo.html.php find
<a href="<?= $item->file_url() ?>" class="g-fullsize-link" title="<?= t("View full size")->for_html_attr() ?>">
The class g-fullsize-link tells the browser to open a modal window. If you remove that class the full size image will be loaded in the current window. You can add a target to open in a new window:
<a href="<?= $item->file_url() ?>" target="new" title="<?= t("View full size")->for_html_attr() ?>">

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team