Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

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

#13 2004-11-02 12:41:12

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

Re: [archived] glx_image

Iam thinking maybe the output will be better with a definition list like in my gallery plugin hmm or maybe not…


Johan Nilsson

Offline

#14 2005-02-08 10:42:39

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

Re: [archived] glx_image

Is there any way to include a glx_image inside an article body without breaking the valid XHTML?

Offline

#15 2005-02-08 11:07:32

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

Re: [archived] glx_image

hey Etz Haim,
if the problem is that the glx_image code is being wrapped with a p then there is a fix for it but it include a hack to the textile class. Take a look at this thread and thekolonels post.

If it is something else, please let me know so i (hopefully) can fix this problem with my plugin.


Johan Nilsson

Offline

#16 2005-02-08 11:38:49

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

Re: [archived] glx_image

(This did it. Thank you very much.)

Update: Now I’m using RC3, and its enough to put a whitespace before of the tag to keep it from being parsed by Textile.

Last edited by Etz Haim (2005-05-15 15:22:52)

Offline

#17 2005-02-09 21:38:38

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: [archived] glx_image

Why would the output be “Wrong imageID: 1” when the id does exist? It says so for every id I try.

In my article I have <code><txp:glx_image id=“1” link=“pop” caption=“standard” class=“left” /></code>, I copied exactly your CSS and I have installed and activated dca_pop.

Offline

#18 2005-02-11 11:22:06

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

Re: [archived] glx_image

That sounds strange, but i will soon release a rewritten update to this plugin, hang on til next week and i will have it up.


Johan Nilsson

Offline

#19 2005-02-11 12:41:41

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: [archived] glx_image

Thank you, osei, I will wait for that.

That output by the way was on my local build. When I try using the plugin on my live site, I still get the ‘wrong image ID’ output, but also this:

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /path to httpdocs/textpattern/publish.php(764) : eval()’d code on line 301

Offline

#20 2005-02-16 19:19:01

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

Re: [archived] glx_image

osei,

Just for reference I am getting the same error as doggiez ““Wrong imageID: 57

Offline

#21 2005-02-17 07:43:54

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

Re: [archived] glx_image

Plugin updated 0.4

I rewrote the old plugin from scratch so i hope the errors you got is not gonna happen again.

New in 0.4

  • <code>src</code>: Source for external image, when this is used dont use id.
  • <code>debug</code>: Set this to 1 to display the sql query that is used to get an internal image.

I also would like to point out this article at Textpattern Resources that when using this plugin will help you to simple create new tags from the image section in textpattern.


Johan Nilsson

Offline

#22 2005-02-19 15:19:58

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: [archived] glx_image

Johan,

It still doesn’t seem to work for me with link=“pop”. Link=“large” does work. My article looks like this (with two glx_image tags, one with link=“large” and one with link=“pop” and a dca_pop tag for comparison):

<code>
<br /><txp:glx_image id=“1” link=“large” caption=“standard” class=“left” /> (glx_image link=“large”)
<br /><br /><br />
<txp:glx_image id=“1” link=“pop” caption=“standard” class=“left” /> (glx_image link=“pop”)
<br /><br /><br />
<txp:dca_pop id=“1”><img src=”/images/1t.jpg” border=“0” /></txp:dca_pop> (dca_pop)
</code>

You can see it here. The second tag creates a link to http://www.doggiez.nl/test1/pop, which of course does not exist?

Also the title element in the anchor tag doesn’t look right, it outputs the following html: <code><a href=“pop” title=” title=“Link to a larger version of this image></code>.

Offline

#23 2005-02-19 16:30:11

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

Re: [archived] glx_image

ohh, sorry… But now i really hope it will work for you!

Download link updated above.

Last edited by osei (2005-02-19 16:32:25)


Johan Nilsson

Offline

#24 2005-02-19 17:20:03

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

Re: [archived] glx_image

Yes it does, thank you very much!

Edit: just one thing, using class=”…” causes a validation error. This is not important to me, I just leave it out.

Edit again: leaving it out doesn’t help, oh well, never mind…

Last edited by doggiez (2005-02-19 17:29:38)

Offline

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

Board footer

Powered by FluxBB