PDA

Zobacz pełną wersję : Jak dodać ikonkę PostDateIcon.png do nowotworzonego artykułu?



wicher111
30-10-2011, 17:02
W zasadzie temat mówi o wszystkim, pobrałem stąd http://www.pc-didi.at/demos/?template=network_v2 i chciałbym dodać do nowotworzonych artykułów ikonkę PostDateIcon.png. Mam już taka ikonkę, moje pytanie: gdzie i co trzeba dopisać w kodzie by wyświetlała się ona zawsze przy każdym nowotworzonym artykule? Pozdrawiam!

mboy
30-10-2011, 21:53
?? Co pobrałeś ?? Gdzie jest ten obrazek?
A CSS znasz ?

Jeśli chcesz przy tytule to:
Przejdź do edycji pliku template.css (wiersz 1648 ) i dodaj background-image ....

wicher111
31-10-2011, 10:24
Faktycznie nie jasno się wyraziłem. Chcę żeby w tej templatce, którą można zobaczyć tu: www.pc-didi.at/demos/?template=network_v2 (http://www.pc-didi.at/demos/?template=network_v2) i tu zrzut ode mnie 4587
można było dodać ikonkę jak w tej templatce:
4588
przy czym, chciałbym , żeby wspomniana ikonka była automatycznie dodawana do każdego nowotworzonego artykułu. Wiem, że to "bzdeta" ale chciałbym ,żeby ona tam była.

mboy
31-10-2011, 11:47
zalaczniki nie działają, a przynajmniej ja nie widze. wrzuc na image host

wicher111
31-10-2011, 13:28
ok.
tak jest:
http://www.freeimagehosting.net/4f33c ,
a tak chciałbym żeby było:
http://www.freeimagehosting.net/06a38

Podaję także link, z którego można pobrać szablon w którym chce dokonać zmian: http://www.joomla24.com/Joomla_1.5.x_Downloads/Joomla_1.5_Templates/Network_V2.html

wicher111
03-11-2011, 00:23
Wydaje mi się, że za wygląd strony głównej odpowiada plik templatka\html\com_content\frontapage\default_item .php oto zawartość ego pliku, jeśli to faktycznie ten plik, czy ktoś wie jak dodać ikonke przed wyświetlanym dniem?

zawartośc pliku default_item:

<?php
defined('_JEXEC') or die('Restricted access'); // no direct access
$canEdit = ($this->user->authorize('com_content', 'edit', 'content', 'all') || $this->user->authorize('com_content', 'edit', 'content', 'own'));
?>
<?php if ($this->item->state == 0) : ?>
<div class="system-unpublished">
<?php endif; ?>

<div class="art-post">
<div class="art-post-tl"></div>
<div class="art-post-tr"></div>
<div class="art-post-bl"></div>
<div class="art-post-br"></div>
<div class="art-post-tc"></div>
<div class="art-post-bc"></div>
<div class="art-post-cl"></div>
<div class="art-post-cr"></div>
<div class="art-post-cc"></div>
<div class="art-post-body">
<div class="art-post-inner">
<?php
if ($this->item->params->get('show_title')) {
ob_start();
?>
<h2 class="art-postheader">
<?php
artxFragmentBegin(ob_get_clean());
if ($this->item->params->get('link_titles') && $this->item->readmore_link != '')
artxFragmentContent('<a href="' . $this->item->readmore_link . '" class="PostHeader">' . $this->escape($this->item->title) . '</a>');
else
artxFragmentContent($this->escape($this->item->title));
ob_start();
?>

</h2>

<?php
artxFragmentEnd(ob_get_clean());
}
artxFragmentBegin("<div class=\"art-postheadericons art-metadata-icons\">\r\n");
if ($this->params->get('show_url') && $this->article->urls)
artxFragment('', '<a href="http://' . $this->item->urls . '" target="_blank">' . $this->item->urls . '</a>', '', ' | ');
if ($this->item->params->get('show_create_date')) {
artxFragment('', JHTML::_('date', $this->item->created, JText::_('DATE_FORMAT_LC2')), '', ' | ');
}
if (($this->item->params->get('show_author')) && ($this->item->author != "")) {
artxFragment('', JText::sprintf('Written by', ($this->item->created_by_alias ? $this->item->created_by_alias : $this->item->author)), '', ' | ');
}
if ($this->item->params->get('show_pdf_icon'))
artxFragment('', JHTML::_('icon.pdf', $this->item, $this->item->params, $this->access), '', ' | ');
if ($this->item->params->get('show_print_icon'))
artxFragment('', JHTML::_('icon.print_popup', $this->item, $this->item->params, $this->access), '', ' | ');
if ($this->item->params->get('show_email_icon'))
artxFragment('', JHTML::_('icon.email', $this->item, $this->item->params, $this->access), '', ' | ');
if ($canEdit)
artxFragment('', JHTML::_('icon.edit', $this->item, $this->item->params, $this->access), '', ' | ');
artxFragmentEnd("\r\n</div>\r\n");
echo "<div class=\"art-postcontent\">\r\n <!-- article-content -->\r\n";
if (!$this->item->params->get('show_intro'))
echo $this->item->event->afterDisplayTitle;
echo $this->item->event->beforeDisplayContent;
if (($this->item->params->get('show_section') && $this->item->sectionid) || ($this->item->params->get('show_category') && $this->item->catid)) {
?>
<table class="contentpaneopen<?php echo $this->item->params->get('pageclass_sfx' ); ?>">
<tr>
<td>
<?php
if ($this->item->params->get('show_section') && $this->item->sectionid && isset($this->item->section)) {
echo "<span>";
if ($this->item->params->get('link_section'))
echo '<a href="'.JRoute::_(ContentHelperRoute::getSectionRoute($t his->item->sectionid)).'">';
echo $this->item->section;
if ($this->item->params->get('link_section'))
echo '</a>';
if ($this->item->params->get('show_category'))
echo ' - ';
echo "</span>";
}
if ($this->item->params->get('show_category') && $this->item->catid) {
echo "<span>";
if ($this->item->params->get('link_category'))
echo '<a href="'.JRoute::_(ContentHelperRoute::getCategoryRoute($ this->item->catslug, $this->item->sectionid)).'">';
echo $this->item->category;
if ($this->item->params->get('link_category'))
echo '</a>';
echo "</span>";
}
?>
</td>
</tr>
</table>
<?php
}
if (isset ($this->item->toc))
echo $this->item->toc;
echo "<div class=\"art-article\">", $this->item->text, "</div>";
if (intval($this->item->modified) != 0 && $this->item->params->get('show_modify_date')) {
echo "<p class=\"modifydate\">";
echo JText::_('Last Updated') . ' (' . JHTML::_('date', $this->item->modified, JText::_('DATE_FORMAT_LC2')) . ')';
echo "</p>";
}
if ($this->item->params->get('show_readmore') && $this->item->readmore) {
?>
<p>
<span class="art-button-wrapper">
<span class="l"> </span>
<span class="r"> </span>
<a class="readon art-button" href="<?php echo $this->item->readmore_link; ?>">
<?php
if ($this->item->readmore_register) {
echo str_replace(' ', '&nbsp;', JText::_('Register to read more...'));
} elseif ($readmore = $this->item->params->get('readmore')){
echo str_replace(' ', '&nbsp;', $readmore);
} else {
echo str_replace(' ', '&nbsp;', JText::sprintf('Read more...'));
}
?>
</a>
</span>
</p>
<?php
}
echo "<span class=\"article_separator\">&nbsp;</span>";
echo $this->item->event->afterDisplayContent;
echo "\r\n <!-- /article-content -->\r\n</div>\r\n<div class=\"cleared\"></div>\r\n";
?>

</div>

<div class="cleared"></div>
</div>
</div>


<?php if ($this->item->state == 0) : ?>
</div>
<?php endif; ?>

wicher111
04-11-2011, 21:15
...chyba jednak nie tutaj. Spędza mi to sen z powiek,taka bzdeta... nikt nie pomoże? Żebym chociaż wiedział gdzie to siedzi.