View Full Version : Latest thumb in other size than archive
silfver
08-11-2006, 12:38 PM
Yes, as I wrote in the topic. Is it possible for pixelpost to generate a thumb of the latest post in, say, 168x168px?
I want to display this picture on a external site, but I don't want to change the size on the archive thumbnails.
Is this possible? If yes, how can I do it? :)
Connie
08-11-2006, 12:40 PM
no, it just takes the thumbnail of the last post
but it is always possible to present an image in another size than the file-dimension
so check the addon, look for the <img- output there and change the width and the height
silfver
08-11-2006, 12:44 PM
Ops. Sorry about that. Maybe some moderator can move the thread...
I don't want to change the image height by changing the HEIGHT attribute. That will make the picture look reallt strange. I'm looking for an addon that generates me a thumbail in my desired dimensions.
Connie
08-11-2006, 01:16 PM
again: you must generate a new thumbnail
just the output of the image must be changed!
<img src="some.jpg" width="168" height="168" .... >
silfver
08-11-2006, 01:50 PM
First of all, can you be a little more specific? Because I don't understand a word of what you just said.
What addon are you talking about?
Connie
08-11-2006, 04:25 PM
it is very easy to get what you want:
there is an addon, Latestthumb
you can get it here:
http://www.pixelpost.org/v1/index.php?x=downloads&details=80
upload this to your Addon-Directory
check in admin/addons that it is set to "ON", that it is active
now you do the following:
in the website, where you want to show your latest thumbnail in another size than the original thumbnail, you enter the following HTML-Snippet:
<a href='http://www.your_photoblog.com/' >
<img src='http://www.your_photoblog.com/index.php?showthumb=latest&thumbtag=image' width='168' height='168' /></a>
the "width" and "height"-attribute will show the thumbnail in the size which you want to have
do not forget to enter the correct URL of your photoblog there! (It's marked in red)
@silfver: there is addon supporting thumbnail of last image. You can always hack it and get what you want.
Connie
08-11-2006, 06:41 PM
that's exactly what I presented... it must not be hacked at all, just the way it is integrated in any other website is extended with height- and width-attributes
it works, I tested it
silfver
08-12-2006, 08:28 AM
Well, guys. You still don't get it. If I change the dimension in the picture attribute the picture gets blurry. It's logical.
If you have a picture in 100x75px and changes the measurements to 159x159px, the picture will look weird! And that's what this addon does to my thumbnail.
Do you understand what I mean? And am I doing something wrong? Because I really appreciate the help you give me.
Connie
08-12-2006, 08:55 AM
No, you do not anything wrong
I just wanted to point out that with one of the existing addons you can get what you want as long as the different dimensions are not too different(and if width-to-height-relation is the same)
I know that a picture will be presented in worse quality as the browser-rendering is not too good...
so we come back to the beginning:
there is no solution existing for that until now
it could be done by an addon
this addon is not written until now
so you have an answer for your question whether there is something or not..
unfortunately
Dennis
08-17-2006, 05:36 AM
It would require two thumbnails for the last photo. This could be done by an addon. It isn't hard, just make a new thumbnail, for instance named "latestpic.jpg" when a new picture is uploaded and always replace the old one.
Come to think of it, I could also use this feature so I'll have a stab at writing the addon. (provided I have the time the next couple of days).
Connie
08-17-2006, 05:42 AM
great... I am glad you think about that Addon, keep us informed!
I am sure you will find betatesters here :rolleyes:
Dennis
08-17-2006, 06:07 AM
Sure would do Connie, however I'm a little bit swamped at the moment so it might just take me a week.
Some pointers on how to use the adminpanel to set the settings would also be great. How do you, as the developers, feel about changing (adding) fields to the pixelpost tables? (e.g. for settings)
Connie
08-17-2006, 06:20 AM
a week is nothing ;=)
my 3 cents:
it is no good to change fields of the pixelpost tables at all
how to deal with updates?
any addon should use it's own table, which could be joined etc. with the existing tables
have a look into the description of the admin-addons in the /doc-folder
there you will find all hooks listed which can be used for additional admin functionality
Dennis
08-17-2006, 09:12 AM
The dealing with updates is quite easy: always check if the fields exists, if not, create them.
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.