Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-07-17 03:24:40

blazin6543
Member
From: Toronto, Canada
Registered: 2006-06-19
Posts: 103
Website

article image acting up

its strange, i have two articles that have images set but one article isnt showing the image …… is there any reason why its only working for one? they’re both jpgs and both have thumbnails and the article image code i have is on the form so im so lost why its only working for one article

Last edited by blazin6543 (2006-07-17 03:28:20)

Offline

#2 2006-07-17 03:40:15

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: article image acting up

Is one of the articles using an override form? Is the correct image id entered?

Offline

#3 2006-07-17 03:42:24

blazin6543
Member
From: Toronto, Canada
Registered: 2006-06-19
Posts: 103
Website

Re: article image acting up

i checked that before posting actually and no im not using a overide form….. its really odd because i have both articles side by side comparing and the only difference is time posted and category

also, i put the image id of the article that is working into one that isnt, and the image doesnt come up for the other one…. im so stumped

Last edited by blazin6543 (2006-07-17 03:44:11)

Offline

#4 2006-07-17 03:47:00

blazin6543
Member
From: Toronto, Canada
Registered: 2006-06-19
Posts: 103
Website

Re: article image acting up

could it be since im trying to add an image to an article i posted already?? because the most recent article i can change the image but older ones seem to be the ones where i cant change, or add, an image

Offline

#5 2006-07-17 03:51:09

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: article image acting up

Shouldn’t make a difference how old the article or image is, or the number of times it’s been used.

View source, what output do you get? If that doesn’t reveal anything, turn on debugging and post a tag trace.

Offline

#6 2006-07-17 04:03:56

blazin6543
Member
From: Toronto, Canada
Registered: 2006-06-19
Posts: 103
Website

Re: article image acting up

here the code …. i t00k out left and right column info and sql stuff…… i hope this is enough .. i dont know how to fix so all the other text shows up, sorry :(

<!— txp tag trace:
[Page: default]
<txp:output_form form=“head” /> [SQL (0.000042): select form from `txp_form` where `name` = ‘head’ limit 1] <txp:css/> <txp:page_title/> <txp:bas_lightbox_head/> <txp:link_to_home> </txp:link_to_home>
<txp:if_individual_article> [<txp:if_individual_article>: false]
</txp:if_individual_article>
<txp:article/> [SQL (0.000061): select name from `txp_section` where on_frontpage != ‘1’] [SQL (0.000912): select count(*) from `textpattern` where 1 and Status=‘4’ and Posted < now()and Section != ‘about’ and Section != ‘rants’ and Section != ‘takeaction’ and Section != ‘rolemodels’ and Section != ‘todolist’ and Section != ‘contact’ and Section != ‘rental’ and Section != ‘gallery’ and Section != ‘my-favorites’ and Section != ‘personal’ and Section != ‘raves’ and Section != ‘freestuff’ and Section != ‘videos’ and Section != ‘video’ and Section != ‘angryvegans’ and Section != ‘guestbook’ and Section != ‘gallery2’ and Section != ‘flickr’] [SQL (0.001542): select *, unix_timestamp(Posted) as uPosted from `textpattern` where 1 and Status=‘4’ and Posted < now()and Section != ‘about’ and Section != ‘rants’ and Section != ‘takeaction’ and Section != ‘rolemodels’ and Section != ‘todolist’ and Section != ‘contact’ and Section != ‘rental’ and Section != ‘gallery’ and Section != ‘my-favorites’ and Section != ‘personal’ and Section != ‘raves’ and Section != ‘freestuff’ and Section != ‘videos’ and Section != ‘video’ and Section != ‘angryvegans’ and Section != ‘guestbook’ and Section != ‘gallery2’ and Section != ‘flickr’ order by Posted desc limit 10, 10] [SQL (0.000043): select Form from `txp_form` where `name` = ‘default’ limit 1] [Form: default] [article 118] <txp:permlink> <txp:title/> </txp:permlink> <txp:category1 link=“y” /> <txp:posted/> <txp:comments_invite/> <txp:rss_article_edit> </txp:rss_article_edit> <txp:if_article_list> [<txp:if_article_list>: true] <txp:if_excerpt> [<txp:if_excerpt>: true] <txp:excerpt/> <txp:permlink> <txp:if_custom_field name=“continue”> [<txp:if_custom_field name=“continue”>: false] </txp:if_custom_field> </txp:permlink> </txp:if_excerpt> </txp:if_article_list>
<txp:if_individual_article> [<txp:if_individual_article>: false]
</txp:if_individual_article>
<txp:if_article_list> [<txp:if_article_list>: true] <txp:rsx_page_number_list/>
</txp:if_article_list>
<txp:output_form form=“footer” />
[ —- secondpass —- ] —>

Offline

#7 2006-07-17 04:34:25

blazin6543
Member
From: Toronto, Canada
Registered: 2006-06-19
Posts: 103
Website

Re: article image acting up

o ya i also want to add…….. the image only doesnt show up on the main page but when i click the article it comes up…. i would have thought it was something wrong with the code right, but the most recent articles image does work so i kind of rulled out wrong coding (from what i can tell)

Offline

#8 2006-07-17 04:49:13

blazin6543
Member
From: Toronto, Canada
Registered: 2006-06-19
Posts: 103
Website

Re: article image acting up

ok i got it….. do you know what it was??? one stupid missing bit of code …… i hate when that happens … to sum up, i had <code><txp:if_excerpt><txp:excerpt /></code> instead of <code><txp:if_excerpt><txp:article_image /><txp:excerpt /></code> i only placed the article image code with the body code but i didnt even consider the excerpt ;)

Offline

#9 2006-07-17 05:38:42

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: article image acting up

Glad you got it sorted. :)

Offline

Board footer

Powered by FluxBB