SimplePortal

Customization => Custom Coding => Topic started by: Mike Cooper on October 19, 2008, 12:31:11 PM

Title: Gallery block changes
Post by: Mike Cooper on October 19, 2008, 12:31:11 PM
Looking to figure out how to make the image that shows up in the gallery block larger, any one know what file it is I need to change, thanks..Mike
Title: Re: Gallery block changes
Post by: Manu on October 19, 2008, 12:52:44 PM
Where is that file, closesrt thing I can find is sportal1-1template.php under themes/default/.

Sorry, I am use to the phpbb forums, and its been years since I worked with them, I am finding these much better, but the system is different

Sorry my mistake.  :-[
You will find it in SPortal1-1.php this file you will find in the source folder.
Title: Re: Gallery block changes
Post by: Mike Cooper on October 19, 2008, 01:03:25 PM
sorry, I realized I am in the wrong forum for this I think. I will know for next time, now, you delted the code when you changed your post, I found the file, but now I am looking for the code and no luck, i will keep looking, but if you could re-post it that would be great, thanks,
Title: Re: Gallery block changes
Post by: Mike Cooper on October 19, 2008, 01:12:11 PM
ok, found the code, and change the image peramiters, but when I refresh the page, the size of the image doesnt change, any ideas, thanks
Title: Re: Gallery block changes
Post by: Mike Cooper on October 23, 2008, 01:16:59 AM
I have tried everything I can think of, and still no luck, the image will not change size on the page, any suggestions?
Title: Re: Gallery block changes
Post by: ???1031 on October 23, 2008, 06:35:27 AM
How did you change this? :)
And how do it look now.

Bye
DIN1031
Title: Re: Gallery block changes
Post by: Mike Cooper on October 23, 2008, 11:30:58 AM
Figured it out Here is the code Chnage the ['thumbfilename'] to ['filename'] then change your image size settings
href="' . $scripturl . '?action=gallery;sa=view;id=' .$gallery_picture ['id'] . '"><img ' . ($GD_Installed == true ?  'src="' . $modSettings['gallery_url'] . $gallery_picture['thumbfilename'] . '" ' : 'src="' . $modSettings['gallery_url'] . $gallery_picture['filename'] . '" height="300" width="300" ')  . ' border="3" /></a>
Here is what it looks like
http://www.creativegardengoodies.com/jeepclub/
Title: Re: Gallery block changes
Post by: ???1031 on October 24, 2008, 12:58:43 AM
Code: [Select]
href="' . $scripturl . '?action=gallery;sa=view;id=' .$gallery_picture ['id'] . '"><img src="'.$modSettings['gallery_url'].$gallery_picture['filename'].'" height="300" width="300" border="3" /></a>

I think this should work.

Bye
DIN1031
SimplePortal 2.3.8 © 2008-2024, SimplePortal