[SOLVED] Image stretching

Support for IntegraMOD 140

Moderator: Integra Moderator

[SOLVED] Image stretching

PostAuthor: atomhead » Mon Jun 19, 2006 8:51 am

Example attached..

Dug through the tpl files, cannot for the life of me figure out what the problem is. It works sometimes, doesn't in others.

[flash=,:jy7naeo6]http://discordiaguild.org/forumimgerror.gif[/flash:jy7naeo6]
Last edited by atomhead on Fri Jun 23, 2006 8:26 am, edited 1 time in total.

atomhead
Members
Members
 
Posts: 90
Likes: 0 post
Liked in: 0 post
Joined: Sat Apr 08, 2006 6:25 pm
Cash on hand: 0.00

Re: Image stretching with my Who Is Online pic and forum ico

PostAuthor: Apocal » Mon Jun 19, 2006 2:06 pm

It looks to me as though you have it set such that the image expands based on the block size. (ie. your image size is not set to a specific size, but instead set to a percentage. There by it allows the image to expand to fill the block. In the image that you posted you will note that when you have text below it that the image looks proper, but when there isn't any text there it looks defunct. Check the percentages in the code. Can you post a section of that code so that we can see it?

Thanks,

-Rich
Last edited by Apocal on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
I understand MrDSL is the man to see for pcp.


- A tribute to the past.

Apocal
Members
Members
 
Posts: 65
Likes: 0 post
Liked in: 0 post
Joined: Fri Jun 16, 2006 3:08 pm
Cash on hand: 0.00

Re: Image stretching with my Who Is Online pic and forum ico

PostAuthor: atomhead » Mon Jun 19, 2006 3:00 pm

[code]         <td><img></td>         <td><img></td>         <td>         <span></span><span></span><span><a>100 posts</a></span> <span></span><span>         <br>WOO<br>           </span>         <span>                                   </span>     </td>     <td><span><a>2</a></span></td>     <td><span><a>Skars</a></span></td>     <td><span>15</span></td>     <td><span><b>Yesterday</b> at 10]

Yeah I imagine it's doing something, I just can't figure out where in the tpl code I have to change it to fixed size (or remove sizing definition altogether). When I looked in the tpl, all it is is a reference to the graphic {FOLDER_IMG} or something.
Last edited by atomhead on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

atomhead
Members
Members
 
Posts: 90
Likes: 0 post
Liked in: 0 post
Joined: Sat Apr 08, 2006 6:25 pm
Cash on hand: 0.00

PostAuthor: Adrian Rea » Mon Jun 19, 2006 3:05 pm

Check the details in your template cfg file.

For example /templates/EQ2/EQ2.cfg
Code: Select all
define(TEMPLATE_CONFIG, TRUE);  $current_template_images = $current_template_path . "/images";$topic_iw = '63';$topic_ih = '17';$post_iw = '82';$post_ih = '25';$icon_iw = '19';$icon_ih = '19';$folder_iw = '25';$folder_ih = '25';$folderbig_iw = '25';$folderbig_ih = '25'
the attributes of the image you are using is 35x19 px not 25x19

A
Last edited by Adrian Rea on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
Adrian Rea
Sr Integra Member
Sr Integra Member
 
Posts: 1263
Likes: 0 post
Liked in: 0 post
Joined: Sun Mar 12, 2006 12:59 am
Cash on hand: 0.00

Re: Image stretching with my Who Is Online pic and forum ico

PostAuthor: atomhead » Mon Jun 19, 2006 3:10 pm

AHA! Thanks so much <img>
Last edited by atomhead on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

atomhead
Members
Members
 
Posts: 90
Likes: 0 post
Liked in: 0 post
Joined: Sat Apr 08, 2006 6:25 pm
Cash on hand: 0.00


Return to IntegraMOD 140

Who is online

Registered users: App360MonitorBot, Bing [Bot], Google [Bot]