Resizing the image in the Image Block using HTML tags

RPG

Joined: 2004-12-23
Posts: 1
Posted: Thu, 2004-12-23 04:29

Here is my site's gallery: http://www.garrettsites.net/gallery
I would like to know how I can take the thumbnail in the 'image block' (both external image block and the random image and most viewed image in gallery) and resize it using the HTML width="x" height="x" tags. My site's layout only has 119 px. of room for a thumbnail, but currently it is being displayed at 150px, because that is the tumbnail size. It makes it look bad. Can I edit some files and get my images to fit? I am an expert at HTML and intermediate at PHP.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Thu, 2004-12-23 04:53

RPGs site is G2.
Moved to the G2 UI forum.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Thu, 2004-12-23 04:56

This is easy to tweak. Copy modules/imageblock/templates/ImageBlock.tpl to modules/imageblock/templates/ImageBlock.tpl.local and edit it. Find this block:

{g->image item=$block.item image=$block.thumb class="giThumbImage" maxSize=140}

Change the maxSize to 119 and you should be all set.

 
Brajeshwar

Joined: 2004-10-02
Posts: 1
Posted: Thu, 2005-12-01 04:52

Hi,

I would rather do it different without touching the gallery template.
What about
<?php @readfile('http://photos.brajeshwar.com/main.php?g2_view=imageblock.External&g2_blocks=randomImage&g2_show=fullSize&g2_maxSize=119'); ?>

Regards
Brajeshwar
http://www.brajeshwar.com/
_____________________________________