Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Admin plugin: glx_admin_image_resize
hmm, that sounds strange, i did some testing and i couldnt reproduce what you describe.
There shouldnt be any delete sql queries in this plugin, have you maybe done some other hacks to the txp_image.php file that might affect this plugin?
Johan Nilsson
Offline
Re: Admin plugin: glx_admin_image_resize
Nope, no hacks. I ended up just manually uploading the new image and then I was able to create the thumbnail with no problem.
Offline
Re: Admin plugin: glx_admin_image_resize
strange, does this happen evrytime you are replacing an uploaded image?
Johan Nilsson
Offline
Re: Admin plugin: glx_admin_image_resize
This does seem to happen every time when I replace an image that was already in my database. The replacement goes fine for images I uploaded recently using the plugin. I wonder if it has to do with my export/import of my database. Agreed, very strange.
Offline
Re: Admin plugin: glx_admin_image_resize
Hi all,
Ok I fixed my problem of not being able to specifically target the rotate and resize buttons by adding IDs directly (#rotateButton and #resizeButton) in the plugin where the submit inputs are created in Javascript.
Just add:
<pre><code>submit.setAttribute(‘ID’, ‘resizeButton’);</code></pre>
directly following
<pre><code>//add submit
var submit = document.createElement(‘input’);
</code></pre>
Then add
<pre><code>submit.setAttribute(‘ID’, ‘rotateButton’);</code></pre>
directly following
<pre><code>var submitRotate = document.createElement(‘input’);</code></pre>
Now I have a space efficient layout css that I like for this plugin. Yay!
Here’s what it looks like:

my css file can be downloaded here
Thanks to osei for a great plugin.
Last edited by mrdale (2005-04-25 18:17:15)
Offline
Re: Admin plugin: glx_admin_image_resize
Mr. Dale do you have a screenshot of what you’ve done?
Jamie
Offline
Re: Admin plugin: glx_admin_image_resize
mrdale that does look very nice, great work, must try your css out later…
wilshire, hmm if you find out what is causing this please tell, i really dont know what is going on… does this only happen when this plugin is active by the way?
Johan Nilsson
Offline
Re: Admin plugin: glx_admin_image_resize
Thanks Mr.Dale That looks good, I think I’ll give it a spin!
Jamie
Offline
Re: Admin plugin: glx_admin_image_resize
wow. very nice plugin. really appreciate your work.
a very nice dhtml solution for cropping images can be found here: http://allayers.com/myimage
maybe you can have a look at it to work yours out …
Offline
Re: Admin plugin: glx_admin_image_resize
Stupid question : does the plugin handle non-jpeg (gif, but mainly png) images ?
Offline
Re: Admin plugin: glx_admin_image_resize
jeremie: not at the moment, maybe in another version.
Johan Nilsson
Offline
#72 2005-04-29 11:28:42
- marios
- Archived Plugin Author

- Registered: 2005-03-12
- Posts: 1,253
Re: Admin plugin: glx_admin_image_resize
Ah ,yes, I think out of laziness I had missed this plugin all these weeks.And in fact I’m going to need this.
I’ll test this now on revision 328 and report back how it went.
regards, marios
⌃ ⇧ < ⎋ ⌃ ⇧ >
Offline
#73 2005-04-29 12:09:49
- marios
- Archived Plugin Author

- Registered: 2005-03-12
- Posts: 1,253
Re: Admin plugin: glx_admin_image_resize
> mrdale wrote:
> Hi all,
Ok I fixed my problem of not being able to specifically target the rotate and resize buttons by adding IDs directly (#rotateButton and #resizeButton) in the plugin where the submit inputs are created in Javascript.
Just add:
<pre><code>submit.setAttribute(‘ID’, ‘resizeButton’);</code></pre>
directly following
<pre><code>//add submit
var submit = document.createElement(‘input’);
</code></pre>
Then add
<pre><code>submit.setAttribute(‘ID’, ‘rotateButton’);</code></pre>
directly following
<pre><code>var submitRotate = document.createElement(‘input’);</code></pre>
Now I have a space efficient layout css that I like for this plugin. Yay!
Here’s what it looks like:

my css file can be downloaded here
Thanks to osei for a great plugin.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Hi,
For some reason, I couldn’t get the style sheet to work.I followed the instructions and complemented with the two nodes.
this is how my code looks now:
<code>
//add submit
submit.setAttribute(‘ID’, ‘resizeButton’);
var submit = document.createElement(‘input’);
submit.setAttribute(‘ID’, ‘rotateButton’);
submit.setAttribute(‘class’, ‘smallerbox’);
submit.setAttribute(‘type’, ‘submit’);
submit.setAttribute(‘value’, ‘Resize’);
submit.setAttribute(‘name’, ‘Mod’);
</code>
I replaced oseis style sheet with your style sheet with out shanging the name of cours.
may be I forgot something?Nothing is styled the way it shows in the screenshot.
regards, marios
Last edited by marios (2005-04-29 12:11:16)
⌃ ⇧ < ⎋ ⌃ ⇧ >
Offline
Re: Admin plugin: glx_admin_image_resize
I have one request which would be great and make this plugin quite handy. Well I have two but let’s see what happens:)
1) could you add image positioning? whether an image is placed left, right or in the centre of a document? I don’t know how diffcult it would be to add, but I would also like to use floats for this feature rather than v and hspace.
2) any chance that the images could be browsed via a pop up during writing content? Use clicks an image selector link within the content area > user is displayed with a popup of current images > user selects thumbnail or full image with an option to link to the main image > image is selected and entered into the content.
My other question is what is the current behaviour of thumbnails, do they currently link to the main image, and is this done automatically or a setting has to be applied? Would really like to see 1)in a feature :)
Thanks for a really useful plugin
Offline
Re: Admin plugin: glx_admin_image_resize
For 1) you can use glx_image
For 2) there’s a plugin available, too, I think… it’s bas_img_selector
Offline