Simple Portal

Support => English Support => Topic started by: Burke Knight on October 27, 2013, 07:54:44 AM

Title: Portal Image size
Post by: Burke Knight on October 27, 2013, 07:54:44 AM
I see where you can have the images in the portal resized to 300 x 300 max.
Where would I go to change it from 300 x 300 to whatever I wanted?
Title: Re: Portal Image size
Post by: AngelinaBelle on November 04, 2013, 10:13:16 AM
That resize is a hard-coded width of 300, with the height changed proportionally.
To change this,

In file portal.js (found in Themes/default/scripts)
See function sp_image_resize()
Every place you see 300, change it to your desired new width.

This will set every image to the same width.
Title: Re: Portal Image size
Post by: Burke Knight on November 04, 2013, 03:38:02 PM
Thank you!
Worked perfectly!

I had looked all over, but never would have guessed it would be in the js file....LOL
Title: Re: Portal Image size
Post by: AngelinaBelle on November 11, 2013, 02:10:01 PM
I am glad this worked.  I hope you won't mind I've marked this topic "solved".

Thanks!
Title: Re: Portal Image size
Post by: Burke Knight on November 11, 2013, 05:48:08 PM
Don't mind at all.
Thought I had done it, but guess I missed it this time....LOL

Thanks again. :)
EhPortal 1.39.8 © 2024, WebDev