Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » [archived] glx_image

#49 2005-05-20 02:14:08

multiverso
Member
From: Spain
Registered: 2004-03-07
Posts: 16
Website

Re: [archived] glx_image

> osei wrote:
> plugin updated to version 0.7, the titles should now work ok.

Hi osei

As always thank you for your work and dedication to this plugin, that I reallly think should be integrated into TXP.

I still seem to have the some problems with this new version 0.7

If I put something like this (from plugin documentation) in an article:
<code>
<txp:glx_image src=“http://olof.galaxen.net/bilder/fuldans.gif” link=“http://olof.galaxen.net/” linktitle=“Goto Olofs webpage” caption=“A friend of mine is doing the fuldans” class=“center” />
</code>

When viewing the source of the output page I get:
<code>
<p><div class=“image-element right”>
<a href=“http://olof.galaxen.net/“Goto Olofs webpage>
<img src=“http://olof.galaxen.net/bilder/fuldans.gif” alt=”“ />
</a>
<div class=“caption”>A friend of mine is doing the fuldans</div>
</div>
</p>
</code>
As you can see the title gets messed up, and the alt tag comes empty…

If I use the same code as above with id instead of src the result seems ok:
<code>
<p><div class=“image-element center”>
<a href=“http://olof.galaxen.net/” title=“Goto Olofs webpage”>
<img src=”/images/3.jpg” alt=“My alt text” />
</a>
<div class=“caption”>A friend of mine is doing the fuldans</div>
</div>
</p>
</code>
Now the title shows up on the code BUT as you have an alt text when you hover the image you see the alt text on the tooltip, not the title.

Also the same thing happens when I use link=“large” with an id, the custom title that I may specify using linktitle or the default title “Link to a larger version of this image” shows up in the code, but as the image has an alt text you see the alt text on the tooltipo, not on the title.

I hope you can fix these bugs, as this coudl be ohe of the most useful plugins out there if it works ok.

Last edited by multiverso (2005-05-20 02:15:11)


webloggin’ from Spain with Textpattern

Offline

#50 2005-05-20 11:59:10

osei
Plugin Author
From: Stockholm, Sweden
Registered: 2004-07-01
Posts: 178
Website

Re: [archived] glx_image

ohh, thanks for spotting this.

I will look into it as soon i get the time, hopefully this weekend…


Johan Nilsson

Offline

#51 2005-05-20 12:11:58

Etz Haim
Archived Plugin Author
From: Karlstad, Sweden
Registered: 2005-01-24
Posts: 262
Website

Re: [archived] glx_image

Can you please include in your forthcoming update of glx_image the ability to add width and height parameters for thumbnails? This is useful for pages to load smoothly/correctly.

Just an example:

http://www.agitprop.gr/article/19/balibar

Load the page with firefox once and notice that the footer bar is placed a little above of where it should be, the page bottom. Hit the refresh button, and then the page displays OK. This is because the image has been cached and its dimensions are already known.

Thanks in advance.

Last edited by Etz Haim (2005-05-20 12:12:35)

Offline

#52 2005-05-20 12:25:53

osei
Plugin Author
From: Stockholm, Sweden
Registered: 2004-07-01
Posts: 178
Website

Re: [archived] glx_image

yes, i could add that,
it could be in two different ways as i see it, one is that it is automaticly added with php, and another one is that you write it as a param to the plugin… i think the last one is to prefer when you should load lot of pictures… ideas?


Johan Nilsson

Offline

#53 2005-05-20 15:58:45

soulship
Member
From: Always Sunny Charleston
Registered: 2004-04-30
Posts: 669
Website

Re: [archived] glx_image

Hmmm I wonder if that has something to do with some of my pages collapsing a little on first load. I use this plugin very frequently. I would like to see it (sizing) added aoutomatically if possible. One less thing to have to deal with/remember. :0

Last edited by soulship (2005-05-20 17:14:32)

Offline

#54 2005-05-20 19:19:40

Etz Haim
Archived Plugin Author
From: Karlstad, Sweden
Registered: 2005-01-24
Posts: 262
Website

Re: [archived] glx_image

osei: What I was thinking of is to query the database for the dimensions of the thumbnail. But if the database does not hold that data (it should) you could either find the thumbnail’s dimensions through the PHP wrapping of GD or ImageMagick, or you could enter the data manually as parameters to the plugin as you suggested.

I’d expect that using PHP to get the image dimensions every time from the file itself to be a little problematic in terms of performance… Maybe you should add a manual option too.

Last edited by Etz Haim (2005-05-21 04:52:45)

Offline

#55 2005-05-21 00:49:52

multiverso
Member
From: Spain
Registered: 2004-03-07
Posts: 16
Website

Re: [archived] glx_image

> Etz Haim wrote:

> osei: What I was thinking of is to query the database for the dimensions of the thumbnail. But if the database does not hols that data (it should) you could either find the thumbnail’s dimensions through the PHP wrapping of GD or ImageMagick, or you could enter the data manually as parameters to the plugin as you suggested.

>I’d expect that using PHP to get the image dimensions every time from the file itself to be a little problematic in terms of performance… Maybe you should add a manual option too.

I totally agree with Etz Haim this would be a great enhancement for this plugin!


webloggin’ from Spain with Textpattern

Offline

#56 2005-05-21 06:56:52

osei
Plugin Author
From: Stockholm, Sweden
Registered: 2004-07-01
Posts: 178
Website

Re: [archived] glx_image

The database only holds the width and height of the large image.


Johan Nilsson

Offline

#57 2005-05-21 20:50:45

sekhu
Member
Registered: 2005-05-12
Posts: 428
Website

Re: [archived] glx_image

any chance this could be more automated?

Say within the article page there’s a link called Add Image, clicking it pops up a JS window asking:

id: enter image
src: if yes enter, otherwise no
link: pop, large otherwise no
linktitle: required
caption: enter cap or continue
alt: required
class: l, r, c or s

Is anything like this possible? With so many images ( 300+) it’s hard work to add the above code to each image.

Thanks in advance

Offline

#58 2005-05-22 07:17:40

osei
Plugin Author
From: Stockholm, Sweden
Registered: 2004-07-01
Posts: 178
Website

Re: [archived] glx_image

Earlier i did a hack to the admin area to automate this, but iam planning to do a admin plugin for this, but i havent got the time, but i definitly hope i got that soon


Johan Nilsson

Offline

#59 2005-05-22 11:57:28

sekhu
Member
Registered: 2005-05-12
Posts: 428
Website

Re: [archived] glx_image

ok osei I’ll leave it for now – I actually tried the plugin and although it did the image alignment and such, it displayed a small empty box (even with the right image id), and the alt text was to the left of the image, and kinda messed up the content of the box. Very odd.

Offline

#60 2005-05-22 14:30:50

osei
Plugin Author
From: Stockholm, Sweden
Registered: 2004-07-01
Posts: 178
Website

Re: [archived] glx_image

Did you use the same css that is found in the help? its sounds like a css problem to me.


Johan Nilsson

Offline

  1. Index
  2. » Archives
  3. » [archived] glx_image

Board footer

Powered by FluxBB