TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 447
  • Total: 447

[Block] SMF Gallery Random Picture

Started by Thurnok, December 01, 2006, 09:32:24 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

alhaudhie

how can i resize image with this script to put all the image in the same size at the block?

Thurnok

The SMF Gallery Random Picture block doesn't do any sizing of the picture at all.  What you see is the thumbnail created by the SMF Gallery Mod itself.

So whatever the thumbnail size is, that's what is displayed.  The thumbnails are created by the SMF Gallery Mod and based on the original size of the picture.  I'm not sure what the maximum height/width of the thumbnail is, but it is beyond the control of the block itself.

haxen

This is a really nice piece of coding, very clean. I implemented it at www.ps3hax.com
thanks.

SteveW

Hello there!

I get a message "Error, no database found!" where the block would be.
The only bit I altered (because it was incorrect was path in my case was /gallery2


Any help appreciated thanks :)

EDIT : Bugger, thought this was for Gallery2, not SMF Gallery, ah welll  :-X  :(

houston

Wonderful Mod. Thanks for putting it together for us.

O0

Blanc

Quote from: houston on January 26, 2007, 12:55:17 AM
Wonderful Mod. Thanks for putting it together for us.

O0

Yup exactly, thx alot!  :up:

EdwinK

Got it on my site as well. G6 told me to get this block code, so I did :)

vanguard


Gourgi


Thurnok


This website is proudly hosted on Crocweb Cloud Website Hosting.