Site with multiple thumb size.

Post Reply
Ramp
Posts: 135
Joined: Sun Jun 09, 2013 11:23 am

Site with multiple thumb size.

Post by Ramp »

Hi,

Is there a way to make a site with let's say 2 different type of thumbs. 240x180 and 320x240.

And for example give each trade partner a different url to send traffic to. Something like domain.com/?thumb=big would show big thumbs and domain.com/?thumb=small would show small ones, would be even better if that would be set on cookie and would remain like that for the user, unless he clicks some link on the site saying the thumbs will be smaller now.
admin
Site Admin
Posts: 38004
Joined: Wed Sep 10, 2008 11:43 am

Re: Site with multiple thumb size.

Post by admin »

1. When import - create a couple extra thumbs with different crop profile (ie size)

2. in subtemplate add

<? if ($_GET['thumb'] == 'big') { ?>

<!--EXTRA_THUMB_URL-->

<? } else { ?>

<!--THUMB_URL-->

<? } ?>
Don't forget to run script update
Post Reply