Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#346 2005-09-15 05:20:04
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: upm_img_popper
What you want is under article image. They are rather self-explanatory, which is why they aren’t documented – don’t try and think too hard. :) Make sure the “Article image” input on the left-hand side is visible, then click on each one of those links a couple times and you’ll see what it does: append, or replace. Append is for assisting adding multiple article images (people use this for portfolios, etc), so in this case you’ll only want “replace”.
Offline
#347 2005-09-15 05:35:05
Re: upm_img_popper
ok. it’s a bit clearer now. i see the image number in the Advanced Options, Article image tab. In that field i have “19”
So this is the image that should replace the main HEADER image only for the article “MyTest” with HEADER image 19 …. but it doesn’t.
In my Archive Form i have this code:<code>
<txp:article form=“Single” />
<txp:if_individual_article>
<txp:article form=“header” />
</txp:if_individual_article>
</code>
If i put the above code in between the <code><head> </head> </code>section it puts the comment fields above eveything else.
so are we close???!!!
Last edited by bici (2005-09-15 05:45:39)
…. texted postive
Offline
#348 2005-09-15 05:59:59
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: upm_img_popper
Ugh, it’s that damned auto-append again/still. Further reading:
http://forum.textpattern.com/viewtopic.php?id=11341
I’m not sure if Justin has kept it updated to work with 4.0, but its worth a shot:
http://forum.textpattern.com/viewtopic.php?pid=33485
Offline
#349 2005-09-15 06:15:08
Re: upm_img_popper
well. i am now getting close. I have added the code <code>
<txp:if_individual_article>
<txp:article form=“header” />
</txp:if_individual_article>
</code>
Back between <code> <HEAD> </HEAD> </code> sections of the ARCHIVE form, and the HEADER image is replaced at the article level!! whew!
BUT… The “comments” fields are added twice: once the way i want at the end of the artilce, but it also appears a second time in large fornat at the head of the page!!! if i can get rid of this wee problem …all will be ok!
…. texted postive
Offline
#350 2005-09-15 06:24:18
Re: upm_img_popper
mary – i may soon be out of your hair! I added JUST this line to the ARCHIVE form; <code><txp:article form=“header” /></code>
so that it reads:
<code><div id=“main”>
<div id=“content”>
<txp:article form=“Single” />
<txp:if_individual_article>
<txp:article form=“header” />
<p>
<txp:link_to_prev><txp:prev_title /></txp:link_to_prev>
<txp:link_to_next><txp:next_title /></txp:link_to_next>
</p>
</txp:if_individual_article>
</code>
and so far it’s all hunky dory!
Last edited by bici (2005-09-15 06:25:20)
…. texted postive
Offline
#351 2005-09-15 07:16:44
Re: upm_img_popper
yep its now working. many thx mary for all your help and patience!
…. texted postive
Offline
#352 2005-09-15 07:48:59
Re: upm_img_popper
PS: i used this to properly place the image:<code>
<style type=“text/css”>
#header {
background: url(<txp:upm_img_full_url />) no-repeat bottom;
width: <txp:upm_img_full_width />;-
height: <txp:upm_img_full_height />;
}</style>
</code>
…. texted postive
Offline
#353 2005-09-17 06:12:46
Re: upm_img_popper
i’m back! This piece of code :
<code><txp:article form=“header” /></code> does allow for a new image on the article page, but it also
adds a <b>second</b> “comment_form” to the end of the article. I seems that the “header” is calling for a comment form to be added… can this be changed? if so where?
…. texted postive
Offline
#354 2005-09-17 06:29:23
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: upm_img_popper
Offline
#355 2005-09-18 00:49:14
Re: upm_img_popper
ok. done.
Would it be cleaner to have added an option to yr plugin that one can toggle off/on the comments_display option? …just a thought.
…. texted postive
Offline
#356 2005-09-18 01:50:08
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: upm_img_popper
article isn’t part of my plugin.
Offline
#357 2005-09-27 02:11:16
Re: upm_img_popper
Hey Mary,
I need some help again.
On this page:
http://www.ohword.com/features/33/time-travel-with-the-genius
The thumbnails were working fine for a while and suddenly are not. Where you see “Time Traveling With The Genius” in the box with the border around it should be a thumbnail image. For some reason when I check the html code now img src is “” empty. The db shows that this image does have a thumbnail associated with it.
The code being used in that form is:
<code>
<div class=“article_thumb_right”>
<a href=”<txp:upm_img_full_url />” onclick=“mapthumbnail(‘<txp:upm_img_full_url />’,’<txp:upm_img_alt />’,<txp:upm_img_full_width />,<txp:upm_img_full_height />,’<txp:upm_img_caption />’); return false;”>
<img src=”<txp:upm_img_thumb_url />” alt=”<txp:upm_img_alt />”
height=”<txp:upm_img_thumb_height />” width=”<txp:upm_img_thumb_width />” /></a>
<p class=“thumb_caption”><txp:upm_img_caption />
<br />
<span class=“thumb_link”><a href=”<txp:upm_img_full_url />” onclick=“mapthumbnail(‘<txp:upm_img_full_url />’,’<txp:upm_img_alt />’,<txp:upm_img_full_width />,<txp:upm_img_full_height />,’<txp:upm_img_caption />’); return false;”>Click for full image</a></span></p>
</div>
</code>
I can’t figure out why all of the sudden txp:upm_img_thumb_url doesn’t seem to be returning anything.
Last edited by arkham (2005-09-27 02:11:35)
Offline
#358 2005-09-27 04:37:07
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: upm_img_popper
Can you tell me:
- the tag and parameters you’re using (the tag that calls the form you posted above)?
- does your host have allow_url_fopen on or off?
Offline
#359 2005-09-27 09:15:05
Re: upm_img_popper
> mary wrote:
> Can you tell me:
- the tag and parameters you’re using (the tag that calls the form you posted above)?
<code><txp:upm_image type=“popup” image_id=“37” class=“image” form=“article_thumb_right” /></code>
- does your host have allow_url_fopen on or off?
allow_url_fopen On On
Unless I’m overlooking something, the changes I made yesterday before I noticed this involved getting rss_thumbpop and your file plugin working for the gallery section.
Thanks for your assistance in advance. ;-)
Offline
#360 2005-09-28 00:21:32
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: upm_img_popper
Hmm. Can you tell me what the changes entailed? It may have nothing to do with it, but best to cover all bases. Oh and are you running the latest version, 0.8.4?
Offline