Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » upm_img_popper

#301 2005-09-05 06:09:06

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: upm_img_popper

<code>
<txp:upm_image type=“thumb” image_id=“48” class=“image” />
</code>

I have all boxes checked. width, height, alt text, caption, assign class. (in both the popup and the extensions folder)
I have made sure all my images have alt text.
I think that’s what you meant by tag and parameters?

I hope that helps.

Matthew


Offline

#302 2005-09-05 17:44:30

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: upm_img_popper

Wait, that
<txp:upm_image type="thumb" image_id="48" class="image" />

gave this
<img src="http://www.artiswork.org/images/51t.jpg" width="40" height="40" class=".thumb-work"1 />

or are these two different examples?

Offline

#303 2005-09-05 20:40:14

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: upm_img_popper

Mary,
Yes. The tag <code><txp:upm_image type=“thumb” image_id=“48” class=“image” /></code>

output this:
<code>
<img src=“http://www.artiswork.org/images/51t.jpg” width=“40” height=“40” class=”.thumb-work“1 />
</code>
to the source.

See for yourself (view source)

Cheers,

matthew


Offline

#304 2005-09-05 21:31:31

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: upm_img_popper

Aha. You had:

bc..<txp:upm_image type=“thumb” image_id=“48” class=“image” />
<img src=“http://www.artiswork.org/images/48t.jpg” width=“40” height=“40” class=“image“1 />

<txp:upm_image type=“thumb” image_id=“51” class=”.thumb-work” />
<img src=“http://www.artiswork.org/images/51t.jpg” width=“40” height=“40” class=”.thumb-work“1 />

I removed the dot from the second one’s class call, so you didn’t get the dot in there. Then adjusted my side of things. Download and try again. :)

Offline

#305 2005-09-05 21:50:34

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: upm_img_popper

Mary,

Well done. Dropped the “.” in the class. Duh! Should have known that one. And the work you did on your end worked great.

It all validates.

You’re a star.

Matthew


Offline

#306 2005-09-06 19:40:06

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

Re: upm_img_popper

Hey Mary, I am trying to use your plugin with mic_tinymce and the editor attaches to the hidden input that your plugin creates, <code><input type=“hidden” name=“Body” value=”“></code>. mic_tinymce uses name=“body” to attach to the article body textarea.

Can this be fixed?

Offline

#307 2005-09-06 23:21:26

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: upm_img_popper

TinyMCE should call by the full name, document.article.Body, or use an id, but obviously it doesn’t. Interestingly, if you toggle it off and back on again, then it appears to do it correctly.

Plugin updated.

Offline

#308 2005-09-07 05:55:56

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,367
Website GitHub Mastodon Twitter

Re: upm_img_popper

Hi mary. Just updated to 4.0.1 and i am confirming the bug you found <a href=“http://forum.textpattern.com/viewtopic.php?id=11125”>here</a>. Will you be updating the plug in to work for 4.0.1?

Last edited by colak (2005-09-07 05:56:31)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#309 2005-09-07 05:59:13

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: upm_img_popper

I’d like to. I don’t know what’s causing it. For whatever reason, its emptying the value of that particular variable. Its driving me mad that this worked just fine and now its broken with no apparent cause.

Offline

#310 2005-09-07 06:11:30

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: upm_img_popper

BAH! I found it, how did that happen… gremlins. One moment…

Offline

#311 2005-09-07 06:33:02

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: upm_img_popper

Okay, plugin updated… again.

Offline

#312 2005-09-07 08:36:52

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,367
Website GitHub Mastodon Twitter

Re: upm_img_popper

<strike>Hi mary that was fast!!! Unfortunatetely it still returns errors.
Step by step…
Installed the plugin and enabled it.
went to the Images tab which returned this error
“Warning: Division by zero in /users/home/giorgio/web/public/main/textpattern/include/txp_image.php on line 62”.
Chose “View 50 per page” and the images loaded.
Clicked on the “write tab” and then on “Insert Image”.
the pop up window returned this error
“Warning: Division by zero in /users/home/giorgio/web/public/main/textpattern/lib/txplib_misc.php(429) : eval()’d code on line 786” :(</strike>

All works fine! I had to refresh the page of the plugin code which you offer. (ie v.82 the plugin was retrieved from my cache insted of v.83)

Last edited by colak (2005-09-07 08:57:11)


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#313 2005-09-07 09:21:16

Garfield
Member
From: Barcelona
Registered: 2005-07-09
Posts: 11
Website

Re: upm_img_popper

Hi Mary,

I’ve installed your wonderful plugin (I talk seriously, it’s a very usefull plugin :)).

The plugin was installed and it seems works nice, but in testing mode it give me a warning when it shows a page with images:

<code>Warning: getimagesize(): URL file-access is disabled in the server configuration in /usr/www/users/cogito/cogito/web/textpattern/lib/txplib_misc.php(429) : eval()’d code on line 1505</code>

<code>Warning: getimagesize(http://www.cogitoergosum.com/web/images/2t.jpg): failed to open stream: no suitable wrapper could be found in /usr/www/users/cogito/cogito/web/textpattern/lib/txplib_misc.php(429) : eval()’d code on line 1505</code>

I supouse that your plugin is trying to obtain the width and height from the image reading the file through HTTP:

- If my imagination is not flying, why did not read the file locally?

- In any case, the warning is not shoed in production mode, but is “dangerous” or can work fine?

- And a last one a bit off-topic, in debugging mode the plugin “warns” a lot about optional parameters not present, if they are optional why it warned?

Thanks very much for your time and your noice plugins,

Last edited by Garfield (2005-09-07 13:43:34)

Offline

#314 2005-09-07 13:12:34

senzo
New Member
Registered: 2005-06-07
Posts: 3

Re: upm_img_popper

<strike>Hi Mary,
first of all thank you for your plugin(s).
to my question: I have the same problem as you and colak described before.
(“Warning: Division by zero in /web/textpattern/include/txp_image.php on line 62” under “images”)
In my case, updating the plugin to version 0.8.3 couldn’t solve the problem.
I found the variable “image_list_pageby” with phpmyadmin and there is still no value set.
Is there an other way to fix it?</strike>

i have set the value manually and it works

Last edited by senzo (2005-09-07 13:17:44)

Offline

#315 2005-09-08 02:27:12

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: upm_img_popper

Oh I’m sorry Garfield, I know why its doing that, and it is my fault, I’ll get on that asap.

There’s also some other strange JavaScript error occuring, but I just wanted to get this other fix out quickly because it broke the whole images tab.

Offline

  1. Index
  2. » Archives
  3. » upm_img_popper

Board footer

Powered by FluxBB