error in template build 2.2 - when using PostHeaderIcon


Author Message
Ronald

Posted: 6/13/2009
Quote message 

When using PostHeaderIcon in article view some of the code shows up.
You'll see
 '27', 'height' => '27')); ?>
(or similar) in front of your Title.

When you look at the source (using IE/FF) you see some code which isn't executed by PHP:
 <?php echo JHTML::_('image.site', 'PostHeaderIcon.png', null, null, null, JText::_(\"PostHeaderIcon\"), array('width' => '27', 'height' => '27')); ?>


This error is in article\default.php line 14:
 artxFragmentBegin("<h2 class=\"art-PostHeaderIcon-wrapper\"><?php echo JHTML::_('image.site', 'PostHeaderIcon.png', null, null, null, JText::_(\"PostHeaderIcon\"), array('width' => '27', 'height' => '27')); ?> ");


Seems like the <?php tags should not be used there while in a IF statement...
 
Thomas

Posted: 6/14/2009
Quote message 

Hi,

i have the same problem. Give it a bugfix for this?

Greetings
 
Mary

Posted: 6/15/2009
Quote message 

I have this as well and have sent info to Artisteer support including my artisteer files and Joomla template.
 
Corine

Posted: 6/16/2009
Quote message 

I have tried to change the code in several ways, unfortunately without any succes :(. I hope there will be a quick fix.
 
Corine

Posted: 6/17/2009
Quote message 

I didn't give up and found a working solution 8-)

Open html\com_content\article\default.php.

Replace:


<?php
if ($this->params->get('show_title')) {
artxFragmentBegin("<h2 class=\"art-PostHeaderIcon-wrapper\"><?php echo JHTML::_('image.site', 'PostHeaderIcon.png', null, null, null, JText::_(\"PostHeaderIcon\"), array('width' => '32', 'height' => '32')); ?> ");
artxFragmentBegin("<span class=\"art-PostHeader\">");
if ($this->params->get('link_titles') && $this->article->readmore_link != '')
artxFragmentContent('<a href="' . $this->article->readmore_link . '" class="PostHeader">' . $this->escape($this->article->title) . '</a>');
else
artxFragmentContent($this->escape($this->article->title));
artxFragmentEnd("</span>\r\n");
artxFragmentEnd("</h2>\r\n");
}


By:


<?php
if ($this->params->get('show_title')) {
ob_start();
?>
<h2 class="art-PostHeaderIcon-wrapper"><?php echo JHTML::_('image.site', 'PostHeaderIcon.png', null, null, null, JText::_("PostHeaderIcon"), array('width' => '32', 'height' => '32')); ?> <span class="art-PostHeader">
<?php
artxFragmentBegin(ob_get_clean());
if ($this->params->get('link_titles') && $this->article->readmore_link != '')
artxFragmentContent('<a href="' . $this->article->readmore_link . '" class="PostHeader">' . $this->escape($this->article->title) . '</a>');
else
artxFragmentContent($this->escape($this->article->title));
ob_start();
?>
</span>
</h2>

<?php
artxFragmentEnd(ob_get_clean());
}

 
Rene

Posted: 6/18/2009
Quote message 

confirmed this bug!
PostHeaderIcon.png not there
instead '26', 'height' => '26')); ?>
indeed, the default.html is causing that.
 
lewax

Posted: 6/18/2009
Quote message 

Same bug for me but i didnt understand Corine's solution...

Where is this default.php file???
 
lewax

Posted: 6/18/2009
Quote message 

Yes, Corine's solution works...
 
Ronald

Posted: 6/23/2009
Quote message 

Thanks! I did check to code and couldn't figure it out fast enough...

Does someone report this to artisteer for the next build? btw, can't they get a real forum? I would like to register and follow my topics...
 
Corine

Posted: 6/23/2009
Quote message 

Quote lewax:

Same bug for me but i didnt understand Corine's solution...

Where is this default.php file???


First export your theme as a folder or download your theme when already in use. In your theme folder go to: html\com_content\article\default.php

The default.php file is the php file that needs to be edited
 
Rene

Posted: 6/24/2009
Quote message 

This issue is several times reported to the Artisteer team.
But.......... they are more bussy with twitter and the mac release.
 
Karl

Posted: 6/26/2009
Quote message 

Noticed the same error. Will this be fixed in the next version? Dont want to fix the file by hand everytime.

Best,
Karl
 
Zeel

Posted: 10/6/2009
Quote message 

:-(
Has this been fixed yet?
 
Bastiaan

Posted: 11/15/2009
Quote message 

Worked like a charm thank you!


 
Garry

Posted: 11/15/2009
Quote message 

It was very old bug and was fixed.
 
Polleke

Posted: 1/24/2010
Quote message 

Worked for me. Thanks Corine.
Do not forget the change the width and heigth to your own size.

Jan
 
skateroma

Posted: 3/7/2010
Quote message 

:-D Thank you!!!! It worked for me :-D
 
Jo

Posted: 10/21/2010
Quote message 

Does anyone have the same fix for this for Wordpress??? I so need to get rid of what appear like pig stomachs!!! :-@
 
Homer

Posted: 10/22/2010
Quote message 

Mmmm, pork.