Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#181 2005-07-14 01:30:46
- mjarecki
- Member
- Registered: 2005-06-17
- Posts: 21
Re: upm_img_popper
Sorry Mary
I realised that it was caused by a silly mod I made to your plug-in (and not your wonderful work) that made things render nicely in my XHTML pages but caused RSS problems i.e. inserting an image in a <code><div id=“image>….</code> tag.
Again sorry
Mark
Offline
#182 2005-07-14 01:51:09
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: upm_img_popper
Its okay. :) Makes me feel better ‘cuz my eyes were buggin out for a moment there. hehe.
Offline
#183 2005-07-14 02:40:04
- mjarecki
- Member
- Registered: 2005-06-17
- Posts: 21
Re: upm_img_popper
Ah yes, your big green robotic eyes!
After much trial and error I’ve learnt something – Textile doesn’t much like my mods. For when I switch it off everything is just fine, even the RSS. Is there a way to have textile work on some of the page and not on another? Some kind of Textile switch perhaps? I could just put a header image in a custom field and it would work, but I do like the idea of inserting image with labels underneath them contained within a DIV tag wherever I want on a page. I was using upm_img_popper to do this, but only when Textile is OFF. If only it worked with RSS with Textile ON I would be happy, well maybe if I found inner tranquility then maybe I’d be truly happy but that is a topic for another time and another forum, so I’ll stick with wanting RSS to work for now.
I just want the following to be output in my article pages using upm_img_popper:
<code>
<div id=“image”><img src=“http://localhost/current/images/3.jpg” width=“360” height=“240” class=“image” alt=“Some text” title=“Some text” /><p class=“caption”><strong>Photo:</strong> Some Text</p></div>
</code><br/>
Incidentally typing the following into a Textile article page works when using the original 0.6.3 plug-in, but it is certainly far from ideal:
<code>
<div id=“image”><txp:upm_image type=“image” image_id=“3” class=“image” /><p class=“caption”><strong>Photo: </strong>Some Text</p></div>
</code><br/>
I just want to enter to get the same results (and work in RSS):
<code>
<txp:upm_image type=“image” image_id=“3” class=“image” />
</code><br/>
Any suggestions? Or should I just get used to entering text with XHTML.
Thanks
Mark
Last edited by mjarecki (2005-07-14 03:31:27)
Offline
#184 2005-07-14 04:40:39
- aesop1
- Archived Plugin Author
- Registered: 2004-09-19
- Posts: 142
Re: upm_img_popper
I don’t want to butt in here, Mark, but are you placing a space before your opening DIV tags? If you don’t, Textile will encapsulate your div in a <code><p></code> element, thus creating invalid XHTML markup. This may or may not be an issue for the way TXP renders its RSS, but I’m not sure.
Last edited by aesop1 (2005-07-14 04:41:56)
Offline
#185 2005-07-14 05:14:12
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: upm_img_popper
Yes, that would be a good thing to check.
You can turn off Textile per article, if that’s what you’re after – under Advanced Preferences in the article page.
Also, you could use a custom form and an article image with the tag in the article form.
Offline
#186 2005-07-14 23:24:10
- aesop1
- Archived Plugin Author
- Registered: 2004-09-19
- Posts: 142
Re: upm_img_popper
I think I learned the “space before xhtml element” rule from you, Mary, in another thread! That was a problem that vexed me for a while. Thanks for the support and the plugins—upm_section_title is one that I use pretty frequently.
Offline
#187 2005-07-15 02:35:43
- mjarecki
- Member
- Registered: 2005-06-17
- Posts: 21
Re: upm_img_popper
Yeah I know about the space before the tag in textile thing, and had been using it.
Incidentally, all my HTML pages validate (W3C) (infact look the same in Safari, Firefox, IE and Amaya) so I don’t understand why the RSS shouldn’t work. I would have imagined if the HTML worked, the RSS should work.
Interestingly, I’ve updated to Rev 496 and now – using a freshly downloaded, unaltered 0.6.3 – I get the following different error (see error from previous post where there was an error on line 612):
<code>
<br />
<b>Notice</b>: Undefined variable: custom in <b>/Library/WebServer/Documents/current/textpattern/lib/txplib_misc.php(379) : eval()’d code</b> on line <b>622</b><br />
</code><br />
I get this error when using the following in an article (with a space and without a space, with Textile on or off)
<code>
<txp:upm_image type=“image” image_id=“3” class=“image” />
</code><br />
If I delete the above line from my article all errors disappear. Again, this is now happening with a fresh 0.6.3 install on Rev 496.
I get the same error message in my RSS, be the website set to <code>production_live</code> or <code>production_test</code>. My understanding is that changing it to live should supress error messages of this sort, but it doesn’t seem to work for me.
Offline
#188 2005-07-15 02:59:56
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: upm_img_popper
Ahhhhh.
I just checked again, and got the error. Before I had custom and function, but I thought better of it and replaced them with form. . That is what’s left over that was supposed to be deleted. (Oh I hate not looking at my own scripts after a while…).
I’ll run a few more checks and repost the plugin shortly.
Offline
#189 2005-07-15 03:22:19
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: upm_img_popper
v.0.6.4.
Sorry to those who do not download from svn: this plugin won’t work for you. See the first post of this thread. (Obviously if you’ve already downloaded it and it works, its not going to suddenly cease working.)
Offline
#190 2005-07-15 03:33:02
- mjarecki
- Member
- Registered: 2005-06-17
- Posts: 21
Re: upm_img_popper
Thanks again Mary.
All is back to normal. Even my very dodgy mods work – in HTML and RSS to boot!
Don’t worry within a couple of days I’ll have you at 0.6.5. :)
Last edited by mjarecki (2005-07-15 04:16:01)
Offline
#191 2005-07-15 03:38:17
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: upm_img_popper
Oh you are just pure evil aren’t you? ;D
Offline
#192 2005-07-15 04:00:25
- Vitruvius
- Plugin Author
- Registered: 2004-09-21
- Posts: 125
Re: upm_img_popper
Neat plugin!
I’m using it on RC3 r496 and it appears to be working, but I am getting the following error in the insert image pop-up:
<code>Notice: Undefined variable: upm_img_popper_the_class in /home/usr/public_html/textpattern/lib/txplib_misc.php(379) : eval()’d code on line 431</code>
Any ideas?
SH
Offline