Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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)
VC3 :: weblog :: my wishlist
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
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
Re: [archived] glx_image
osei,
Just for reference I am getting the same error as doggiez ““Wrong imageID: 57
Offline
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
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
Re: [archived] glx_image
great :)
Johan Nilsson
Offline
#26 2005-02-19 17:32:38
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: [archived] glx_image
Okay, in the plugin code I changed ‘div’ to ‘span’, now it validates.
Offline
Re: [archived] glx_image
hmm, what do you mean? the default markup should validate.
Johan Nilsson
Offline
#28 2005-02-19 17:37:48
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: [archived] glx_image
It was the div inside the h4 tags, so it was probably just because of my article form.
Offline
Re: [archived] glx_image
Ah it must be, because my dev page for the plugin do validate.
Johan Nilsson
Offline
Re: [archived] glx_image
Thanks for the plugin, it’s working fine except for the feeds. In the feeds, < txp:glx_image … / > shows up as tag, it doesn’t display an image. Is it normal plugins don’t work in the feeds or just a problem with this one?
example: http://www.julianstahnke.de/rss
Last edited by zoeglingjulian (2005-03-26 15:34:52)
Offline