Ronald
|
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
|
Hi,
i have the same problem. Give it a bugfix for this?
Greetings
|
|
Mary
|
I have this as well and have sent info to Artisteer support including my artisteer files and Joomla template.
|
|
Corine
|
I have tried to change the code in several ways, unfortunately without any succes . I hope there will be a quick fix.
|
|
Corine
|
I didn't give up and found a working solution
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
|
confirmed this bug!
PostHeaderIcon.png not there
instead '26', 'height' => '26')); ?>
indeed, the default.html is causing that.
|
|
lewax
|
Same bug for me but i didnt understand Corine's solution...
Where is this default.php file???
|
|
lewax
|
Yes, Corine's solution works...
|
|
Ronald
|
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
|
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
|
This issue is several times reported to the Artisteer team.
But.......... they are more bussy with twitter and the mac release.
|
|
Karl
|
Noticed the same error. Will this be fixed in the next version? Dont want to fix the file by hand everytime.
Best,
Karl
|
|
Zeel
|
Has this been fixed yet?
|
|
Bastiaan
|
Worked like a charm thank you!
|
|
Garry
|
It was very old bug and was fixed.
|
|
Polleke
|
Worked for me. Thanks Corine.
Do not forget the change the width and heigth to your own size.
Jan
|
|
skateroma
|
Thank you!!!! It worked for me
|
|
Jo
|
Does anyone have the same fix for this for Wordpress??? I so need to get rid of what appear like pig stomachs!!!
|
|
Homer
|
Mmmm, pork.
|
|