Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2005-09-26 21:37:21

aba
Plugin Author
Registered: 2004-04-14
Posts: 119

Re: [plugin] [ORPHAN] glx_admin_image_resize

ouch…
You are using Textpattern 4.01?

could you please send me the detailed textpattern diagnosis output be email?

Thanks

Offline

#17 2005-09-28 04:19:08

nardo
Member
From: tuvalahiti
Registered: 2004-04-22
Posts: 743

Re: [plugin] [ORPHAN] glx_admin_image_resize

heikki – is your temporary dload still available? and what does it do differently with the square thumbs?

also I want to use this plugin on a community-based site to make it easy for peops to insert images at predetermined sizes –

only a minor issue but – any way to hide the default txp-4x thumbnail creator?

doesn’t appear to work in conjunction with this plugin & anyway just confuses the scene

pity the table enclosing the default thumb creator doesn’t have an ID – or the admin_image_resize css could hide it

Offline

#18 2005-09-28 04:27:15

nardo
Member
From: tuvalahiti
Registered: 2004-04-22
Posts: 743

Re: [plugin] [ORPHAN] glx_admin_image_resize

next question

recommended method to set a default large-size and thumb-size … ? edit the plugin and swap every instance of “500” and “100” ?

thanks plugin people !

Offline

#19 2005-09-28 05:41:17

heikki74
Member
From: Finland
Registered: 2004-08-17
Posts: 100

Re: [plugin] [ORPHAN] glx_admin_image_resize

Hi Nardo. I modified ‘squaring’ so that only the longer side is cropped. The download was temporary because I don’t want confusion with different versions/mods going around. I was hoping that graumeister (author of the plugin at the moment) would pick up the changes and put them in. I’ll send the code him directly so he can take a look at it.

edit— typos..
edit2— typos..

Last edited by heikki74 (2005-09-28 15:16:48)

Offline

#20 2005-09-29 13:05:14

nardo
Member
From: tuvalahiti
Registered: 2004-04-22
Posts: 743

Re: [plugin] [ORPHAN] glx_admin_image_resize

graumeister – would you consider using the options like Dean provides on the default thumbnail creator?

<code>Create thumbnail
Width: [ ] Height: [ ] Crop: [ ]</code>

I’d like to set a consistent width on all thumbnails and at present it works on the longest side only

Last edited by nardo (2005-09-29 13:06:45)

Offline

#21 2005-09-30 05:10:12

graumeister
Plugin Author
From: Ban Bang Por, Samui, Thailand
Registered: 2005-01-16
Posts: 167
Website

Re: [plugin] [ORPHAN] glx_admin_image_resize

@nardo: i try to implement it as option so you decide via attribute if you want longest side or width or height.

@heikki: i will implement your changes this weekend.


Samui? Samui! (about the life as farang in thailand)
David’s Neighbour

Offline

#22 2005-10-04 18:39:45

Buddy Bradley
Member
From: Peterborough, UK
Registered: 2004-07-01
Posts: 12
Website

Re: [plugin] [ORPHAN] glx_admin_image_resize

Edit: never mind, I upgraded to 4.0.1 and it works now.

Last edited by Buddy Bradley (2005-10-04 19:27:59)

Offline

#23 2005-10-15 02:52:52

graumeister
Plugin Author
From: Ban Bang Por, Samui, Thailand
Registered: 2005-01-16
Posts: 167
Website

Re: [plugin] [ORPHAN] glx_admin_image_resize

Hi all. There is a new version available at grauhirn.org which adds heikkis changes for a better square-cropping.


Samui? Samui! (about the life as farang in thailand)
David’s Neighbour

Offline

#24 2006-01-27 18:43:07

jameslomax
Member
From: UK
Registered: 2005-05-09
Posts: 448
Website

Re: [plugin] [ORPHAN] glx_admin_image_resize

I use this plug in all the time, and its great. But how do you alter the default size for the thumbnails?

Offline

#25 2006-02-02 05:14:52

graumeister
Plugin Author
From: Ban Bang Por, Samui, Thailand
Registered: 2005-01-16
Posts: 167
Website

Re: [plugin] [ORPHAN] glx_admin_image_resize

hi jameslomax, thats a bug, sorry. i will fix it in the next release. the defaultimagesize should be the same like every else gravatar.
hi all, i released a reworked version with fixed thumbnailhandling and some hiding of txp-defaultforms, see the initial post.


Samui? Samui! (about the life as farang in thailand)
David’s Neighbour

Offline

#26 2006-02-07 23:33:27

jameslomax
Member
From: UK
Registered: 2005-05-09
Posts: 448
Website

Re: [plugin] [ORPHAN] glx_admin_image_resize

Hmm not sure you understood me. I dont have a problem, its working OK, but I simply want to change the default size. How can you do that? – it must be defined somewhere in the code, but I don’t know where it is.

Offline

#27 2006-02-12 21:48:18

jameslomax
Member
From: UK
Registered: 2005-05-09
Posts: 448
Website

Re: [plugin] [ORPHAN] glx_admin_image_resize

:-(

Anyone? – its a pretty basic question: somewhere in the code, the default thumbnail size is specified. I’d like to change it. But as I’m not a coder, I have no idea how to do this.

Offline

#28 2006-02-15 08:21:32

graumeister
Plugin Author
From: Ban Bang Por, Samui, Thailand
Registered: 2005-01-16
Posts: 167
Website

Re: [plugin] [ORPHAN] glx_admin_image_resize

hi jameslomax,

you could read the help of the plugin (yourpage.com/textpattern/index.php?event=plugin&step=plugin_help&name=glx_gravatar or I still dont understand your problem). You can change the size of the gravatar via the attribute “size”. Possible values are 0 til 80 and 80 is default.


Samui? Samui! (about the life as farang in thailand)
David’s Neighbour

Offline

#29 2006-02-15 12:42:00

jameslomax
Member
From: UK
Registered: 2005-05-09
Posts: 448
Website

Re: [plugin] [ORPHAN] glx_admin_image_resize

Hi,

Please note, this thread/question concerns glx_admin_image_resize.

Offline

#30 2006-02-15 18:30:48

RHD
Member
From: mid-Atlantic US
Registered: 2004-11-09
Posts: 29
Website

Re: [plugin] [ORPHAN] glx_admin_image_resize

jameslomax:

I’m also not a coder, but it looks like the plugin retains the thumbnail size in a cookie. If you set the thumbnail size to something other than 100, it should remember that value until the cookie expires (or you move to a different browser or machine).

I messed around a bit with editing the plugin, and I think you can get the effect you want (changing the default thumbnail size “for real”) by finding these two lines:

<code>$thumbValue = cs(“glx_image_thumb”) ? cs(“glx_image_thumb”) : 100;</code><br/><br/>

<code>var thumbValue = (getCookie(‘glx_image_thumb’)) ? getCookie(‘glx_image_thumb’) : 100</code><br/><br/>

… and changing “100” to whatever you want the default thumbnail size to be. Then be sure to delete the “glx_image_thumb” cookie from your browser.

Worked for me. Of course, I barely know what I’m doing, so please make a backup of the plugin — and maybe your whole database — before trying anything. You know that.

Hope that helps.

Last edited by RHD (2006-02-15 18:34:50)

Offline

Board footer

Powered by FluxBB