Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-02-06 06:26:07

Kujila
New Member
Registered: 2007-02-06
Posts: 3

New Articles DO NOT POST! Article Images DO NOT WORK!

I have just spent about 6 hours attempting to correct these problems. New articles are posted to a directory, but not to the front page. Article images do not display whatsoever. I can use an ID, HTML, or any other menagerie of tags and it won’t display unless I add in that tag. Adding the image tag then destroys the formatting of the page and is a huge hassle.

I am using a customized theme and style derived from the ‘‘USB’‘ style.

I am very, very frustrated right now and I’m hoping one of you can help me out.

#1) Posting an article will not show it on the main page unless it has NO CATEGORY

#2) Article Image will not display at all

I doubt it’s the CSS so here is the “default” HTML:

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=“http://www.w3.org/1999/xhtml” xml:lang=“en” lang=“en”>
<head>
<meta http-equiv=“Content-Type” content=“text/html; charset=utf-8” />
<title><txp:page_title /></title> <link rel=“stylesheet” type=“text/css” media=“screen” href=”<txp:css />” />

<script language=“JavaScript” src=“images/rollovers.js” type=“text/javascript”></script>

<script language=“JavaScript” type=“text/javascript”>
<!—
JSFX.Rollover(“main_page”, “images/main_page_over.gif”);
JSFX.Rollover(“forums”, “images/forums_over.gif”);
JSFX.Rollover(“login”, “images/login_over.gif”);
JSFX.Rollover(“signup”, “images/signup_over.gif”);

//—>
</script>

</head>
<body>

<!— accessibility —>
<div id=“accessibility”> <ul> <li><a href=”#content”>Go to content</a></li> <li><a href=”#sidebar-1”>Go to navigation</a></li> <li><a href=”#sidebar-2”>Go to search</a></li> </ul>
</div>

<div id=“container”>

<!— head —> <div id=“head”> <h1>&nbsp;</h1> </div>
<div id=“nav”><table border=“0” cellspacing=“0” cellpadding=“0” align=“left”> <tr>

<!— Register —><!— /Register —> <!— UserCP —><td align=“left”><table width=“78” border=“0” cellpadding=“0” cellspacing=“0”> <tr> <td style=“background:#FFFFFF url(images/main_page.gif);”><a href=“http://www.thepriceislol.com/” onmouseover=“JSFX.fadeIn(‘main_page’)” onmouseout=“JSFX.fadeOut(‘main_page’)”><img src=“images/main_page.gif” name=“main_page” width=“78” height=“39” border=“0” class=“imgFader” id=“main_page” alt=”“ /></a></td> </tr> </table></td> <!— /UserCp —> <!— FAQ —><td><table width=“78” border=“0” cellpadding=“0” cellspacing=“0”> <tr> <td style=“background:#FFFFFF url(images/forums.gif);”><a href=“http://forums.thepriceislol.com/” accesskey=“5” onmouseover=“JSFX.fadeIn(‘forums’)” onmouseout=“JSFX.fadeOut(‘forums’)”><img src=“images/forums.gif” name=“forums” width=“78” height=“39” border=“0” class=“imgFader” id=“forums” alt=”“ /></a></td> </tr> </table></td><!— /FAQ —> <!— Members —><td><table width=“78” border=“0” cellpadding=“0” cellspacing=“0”> <tr> <td style=“background:#FFFFFF url(images/login.gif);”><a href=“http://www.thepriceislol.com/textpattern/index.php” onmouseover=“JSFX.fadeIn(‘login’)” onmouseout=“JSFX.fadeOut(‘login’)”><img src=“images/login.gif” name=“login” width=“78” height=“39” border=“0” class=“imgFader” id=“login” alt=”“ /></a></td> </tr> </table></td><!— /Members —> <!— Calendar —><td><table width=“78” border=“0” cellpadding=“0” cellspacing=“0”> <tr> <td style=“background:#FFFFFF url(images/signup.gif);”><a href=”#” onmouseover=“JSFX.fadeIn(‘signup’)” onmouseout=“JSFX.fadeOut(‘signup’)”><img src=“images/signup.gif” name=“signup” width=“78” height=“39” border=“0” class=“imgFader” id=“signup” alt=”“ /></a></td> </tr> </table></td><!— /Calendar —>

</table></div>
<!— left —> <div id=“sidebar-1”>

</div>

<!— right —> <div id=“sidebar-2”> <txp:search_input label=“Search” wraptag=“p” /> <txp:popup type=“c” label=“Browse” wraptag=“p” /> <p><txp:feed_link label=“RSS” /> / <txp:feed_link flavor=“atom” label=“Atom” /></p>

<p>&nbsp;</p> </div>

<!— center —> <div id=“content”> <txp:article allowoverride=“0” form=“default” limit=“7” pgonly=“0” searchall=“1” searchsticky=“0” sort=“Posted desc” status=“4” />

<txp:if_individual_article> <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:else /> <p><txp:older>Previous</txp:older> <txp:newer>Next</txp:newer></p>
</txp:if_individual_article> </div>

<div class=“caps” id=“foot”>TextPattern Powered <br /> </div>

</div>

</body>
</html>

Offline

#2 2007-02-06 16:56:45

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

Re: New Articles DO NOT POST! Article Images DO NOT WORK!

<txp:article allowoverride="0" form="default" limit="7" pgonly="0" searchall="1" searchsticky="0" sort="Posted desc" status="4" />

You can leave all attributes except limit out because they are the defaults. And it could be the status="4" that’s causing problems, it should be status="live" (but that’s also the default value so leave it out).

If that doesn’t make a difference check this:

  • Is the section your articles are in set to appear on the front page (Presentation > Sections)?
  • Is there a <txp:article_image /> tag in the ‘default’ article form?

Last edited by els (2007-02-06 16:57:06)

Offline

#3 2007-02-06 20:14:14

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: New Articles DO NOT POST! Article Images DO NOT WORK!

The FAQ includes a number of helpful suggestions for diagnosing template problems.


Alex

Offline

#4 2007-02-07 00:55:25

Kujila
New Member
Registered: 2007-02-06
Posts: 3

Re: New Articles DO NOT POST! Article Images DO NOT WORK!

Els wrote:

  • Is there a <txp:article_image /> tag in the ‘default’ article form?

Nope should there be?

Offline

#5 2007-02-07 17:19:10

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

Re: New Articles DO NOT POST! Article Images DO NOT WORK!

If you want to display the article image, yes ;)

Offline

#6 2007-02-08 01:54:09

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

Re: New Articles DO NOT POST! Article Images DO NOT WORK!

…it could be the status="4" that’s causing problems…

(FYI: either works, actually. :))

Posting an article will not show it on the main page unless it has NO CATEGORY

What does your default form look like?

FAQ: Diagnosing template problems

Last edited by Mary (2007-02-08 01:54:47)

Offline

#7 2007-02-09 00:02:31

Kujila
New Member
Registered: 2007-02-06
Posts: 3

Re: New Articles DO NOT POST! Article Images DO NOT WORK!

Els wrote:

If you want to display the article image, yes ;)

Ah I got it fixed now, with thumbnails! It’s great thanks :)

Offline

Board footer

Powered by FluxBB