Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#373 2005-09-30 23:54:48
- nardo
- Member
- From: tuvalahiti
- Registered: 2004-04-22
- Posts: 743
Re: upm_img_popper
time for a pina colada, mary …
and when you’ve enjoyed that, I think just the xhtml value needs attention:
<p><img src="http://localhost/domain/images/1t.jpg" alt="This is alt text" height="233" width="177"></p>
by default it should be as below, right?
<p><img src="http://localhost/domain/images/1t.jpg" alt="This is alt text" height="233" width="177" /></p>
Offline
#374 2005-10-01 05:15:28
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: upm_img_popper
That one I can’t seem to replicate. What tag and parameters?
Offline
#375 2005-10-02 01:25:05
- nardo
- Member
- From: tuvalahiti
- Registered: 2004-04-22
- Posts: 743
Re: upm_img_popper
from the help docs – for upm_article_image:
<code>xhtml=“value” Whether the tag outputs xhtml or html. Required: No. Available values: yes (default) or no.</code>
my form:
<txp:upm_article_image type="thumbnail" wraptag="p" limit="1" xhtml="yes" />
result:
<p><img src="http://localhost/domain/images/1t.jpg" alt="This is alt text" height="233" width="177"></p>
normally I am not this @nil (dash) but might as well go the whole hog… should be a xhtml style closing bracket for single tag, right?
Offline
#376 2005-10-02 02:13:19
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: upm_img_popper
xhtml is the default so you don’t have to call it.
I still get the correct output (yes, that should end like ' />'
) from exact tag you’ve given (I copied and pasted), in my case I got back:
<p><img src="http://local.dev/txp-stable/images/4t.gif" width="25" height="25" alt="" /></p>
Your posted result source looks funny compared to mine though: I have a very picky and specific order (src, width, height, alt, title, id, class) I use for image tags, which I follow to the letter in the plugin (helps avoid forgetting anything). It shouldn’t be possible at all for your to get your attributes in that order. Very strange…
Offline
#377 2005-10-02 14:39:24
- nardo
- Member
- From: tuvalahiti
- Registered: 2004-04-22
- Posts: 743
Re: upm_img_popper
I’ll try it on a live site on txd server and get back to you… maybe apachefriends has some quirks
Offline
#378 2005-10-08 20:50:28
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: upm_img_popper
v.0.8.7 is here. It includes a fix for the bug you found, Andreas. In a moment I’ll be posting the fixed upm_file_packets as well.
Offline
#379 2005-10-08 21:08:54
Re: upm_img_popper
mary, it works well I re-enabled hpw_admincss and they work together fine now.
However, on one of my sites I get this error, when I try to use the image popper:
Warning: Division by zero in /home/www/ww6199/html/akv2/textpattern/lib/txplib_misc.php(429) : eval()'d code on line 845
It appears in the popup window that should contain the images. The error occured with the previous version and occurs with the current one. Any ideas?
P.S. I know it’s not nice to bug you with a problem just after you’ve squashed another one, but I just came across it again.
Last edited by andreas (2005-10-08 21:10:50)
Offline
#380 2005-10-08 22:55:43
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: upm_img_popper
Hmm. I found and squashed another bug, but not this one. I’m thinking this might be another plugin conflict thing, since the line number doesn’t make any sense and I can’t seem to replicate it.
What other plugins are you using?
Offline
#381 2005-10-09 08:28:50
Re: upm_img_popper
I only have two admin plugins installed: rss_admin_show_adv_opts and hpw_admincss.
Switching both of them off doesn’t solve the problem. Apart from that, I’ve got a lot of other plugins. The complete list is in my colophon . But can a non-admin plugin affect this?:
Last edited by andreas (2005-10-09 08:29:35)
Offline
#382 2005-10-11 13:50:26
Re: upm_img_popper
> andreas wrote:
> mary, it works well I re-enabled hpw_admincss and they work together fine now.
However, on one of my sites I get this error, when I try to use the image popper:
Warning: Division by zero in /home/www/ww6199/html/akv2/textpattern/lib/txplib_misc.php(429) : eval()'d code on line 845
It appears in the popup window that should contain the images. The error occured with the previous version and occurs with the current one. Any ideas?
P.S. I know it’s not nice to bug you with a problem just after you’ve squashed another one, but I just came across it again.
I have the same problem, same line:
<code>Warning: Division by zero in /home/httpd/vhosts/wpfgroningen.nl/httpdocs/textpattern/lib/txplib_misc.php(429) : eval()’d code on line 845</code>
if you need any specifics, let me know…
Thanx
“Bartender, a bit of advice. Always inspect a jukebox carefully.
These machines can be deadly.” — Adam West, the Original Batman
Offline
#383 2005-10-11 13:54:47
Re: upm_img_popper
And when I go to the images tab, txp returns:
<code>Warning: Division by zero in /home/httpd/vhosts/wpfgroningen.nl/httpdocs/textpattern/include/txp_image.php on line 62<code>
After switching the upm_img_popper plugin, it works again. I switched upm_img_popper on, and now it seem to work fine…?! Strange.
“Bartender, a bit of advice. Always inspect a jukebox carefully.
These machines can be deadly.” — Adam West, the Original Batman
Offline
#384 2005-10-11 14:24:01
Re: upm_img_popper
HI.
I have found this same bug on my website
In the “Image” tab i see this:
<code>
Warning: Division by zero in /users/home/druzli/domains/dzdesign.dk/public_html/dk/textpattern/include/txp_image.php on line 62
</code>
And I see this in my “Insert image” popup window:
<code>
Warning: Division by zero in /users/home/druzli/domains/dzdesign.dk/public_html/dk/textpattern/lib/txplib_misc.php(455) : eval()’d code on line 845
</code>
The strange thing is, I have 2 websites, both hosted at TXD. Both where broken like this but changeing to the newest version of the plugin fixed 1 of them but not the other :)
I,m running rev1021.
regards,
Agust
Offline