PDA

Zobacz pełną wersję : com_comments - nie dzialaja komentarze



trzepiz
10-10-2006, 12:05
Witam uzywam Joomla PE

chce wlączyc komentarze do artykułów, postepuje zgodnie ze wskazówka:

Musisz dokonać odpowiednich zmian w pliku szablonu by komentarze mogły ukazywać się przy artykułach.
Edytuj plik templati i poszukaj :
Zmień w następujący sposób: mosMainBody(); ?>


mosMainBody(); ?><?php if (file_exists($mosConfig_absolute_path."/components/com_comments/comments.php")) { require_once($mosConfig_absolute_path."/components/com_comments/comments.php"); } ?>


to zrobilem .. natomiast nadal nie dzialaja komentarze ..
co jeszcze nalezy zrobic .?


MosComBot jest opublikowany .. >

sogo
10-10-2006, 14:28
<?php mosMainBody(); ?><?php if (file_exists($mosConfig_absolute_path."/components/com_comments/comments.php")) { require_once($mosConfig_absolute_path."/components/com_comments/comments.php"); } ?>

trzepiz
10-10-2006, 14:51
no mam tak ..


<td valign="top">
<?php mosMainBody(); ?><?php if (file_exists($mosConfig_absolute_path."/components/com_comments/comments.php")) { require_once($mosConfig_absolute_path."/components/com_comments/comments.php"); } ?>
</td>

sogo
10-10-2006, 15:16
co to znaczy nie działają?, nie możesz dodawać komentarzy? nie wyświetla się wogóle pozycja komentarze? Może jesteś nie zalogowany?
pozdr.

trzepiz
10-10-2006, 15:29
http://naszatrojka.go.pl/

zobacz sam ..

sogo
10-10-2006, 15:51
może miałeś ten fragment kodu np. ("mainbody.php"); ?> a nie mosMainBody(); ?> , sprawdź, to zależy od rodzaju templatki. Dodaje się na końcu takiej linijki ten kod : <?php if (file_exists($mosConfig_absolute_path."/components/com_comments/comments.php")) { require_once($mosConfig_absolute_path."/components/com_comments/comments.php"); } ?>

trzepiz
10-10-2006, 16:01
oto moj index.php templatki


<?php defined( "_VALID_MOS" ) or die( "Direct Access to this location is not allowed." );?>
<!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">
<head>
<?php if ( $my->id ) { initEditor(); } ?>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
<?php mosShowHead(); ?>
<?php echo "<link rel=\"stylesheet\" href=\"$GLOBALS[mosConfig_live_site]/templates/$GLOBALS[cur_template]/css/template_css.css\" type=\"text/css\"/>" ; ?><?php echo "<link rel=\"shortcut icon\" href=\"$GLOBALS[mosConfig_live_site]/images/favicon.ico\" />" ; ?>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-image: url();
background-repeat: no-repeat;
background-color: #2175BC;
}
-->
</style>
<style type="text/css">

#ddblueblockmenu{
border: 1px solid black;
border-bottom-width: 0;
width: 185px;
}

#ddblueblockmenu ul{
margin: 0;
padding: 0;
list-style-type: none;
font: normal 90% 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif;
}

#ddblueblockmenu li a{
display: block;
padding: 3px 0;
padding-left: 9px;
width: 169px; /*185px minus all left/right paddings and margins*/
text-decoration: none;
color: white;
background-color: #2175bc;
border-bottom: 1px solid #90bade;
border-left: 7px solid #1958b7;
}

* html #ddblueblockmenu li a{ /*IE only */
width: 187px; /*IE 5*/
w\idth: 169px; /*185px minus all left/right paddings and margins*/
}

#ddblueblockmenu li a:hover {
background-color: #2586d7;
border-left-color: #1c64d1;
}

#ddblueblockmenu div.menutitle{
color: white;
border-bottom: 1px solid black;
padding: 1px 0;
padding-left: 5px;
background-color: black;
font: bold 90% 'Trebuchet MS', 'Lucida Grande', Arial, sans-serif;
}

</style>


</head>

<body>
<table width="900" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="182" colspan="2" valign="bottom" background="templates/joomladrive/images/top.jpg"><table width="96%" height="44" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="282" height="44">&nbsp;</td>
<td width="582" valign="bottom"><div class="shadetabs"><?php mosLoadModules ('user3' ); ?></div></td>
</tr>
</table></td>
</tr>
<tr>
<td height="33" colspan="2" background="templates/joomladrive/images/head.jpg"><table width="96%" height="26" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="33%" height="26"><table width="70%" height="20" border="0" align="right" cellpadding="0" cellspacing="0">
<tr>
<td><div align="center"><?php echo mosCurrentDate(); ?></div></td>
</tr>
</table></td>
<td width="67%" valign="middle"><?php mosPathWay(); ?></td>
</tr>
</table></td>
</tr>
<tr>
<td width="295" height="130" valign="top" background="templates/joomladrive/images/left.jpg"><table width="71%" height="21" border="0" align="right" cellpadding="0" cellspacing="0">
<tr>
<td valign="top"><table width="191" height="21" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="191" valign="top" bgcolor="#2175BC">
<div id="blueblock"><?php mosLoadModules ( 'left' ); ?></div></td></tr>
</table></td>
</tr>
</table></td>
<td width="605" rowspan="2" valign="top" background="templates/joomladrive/images/content.jpg"><table width="91%" height="22" border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top"><?php mosMainBody(); ?><?php if (file_exists($mosConfig_absolute_path."/components/com_comments/comments.php")) { require_once($mosConfig_absolute_path."/components/com_comments/comments.php"); } ?></td>
</tr>
</table> </td>
</tr>
<tr>
<td height="19" valign="top" background="templates/joomladrive/images/spacer.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="36" background="templates/joomladrive/images/leftbot.jpg">&nbsp;</td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="2"><img src="templates/joomladrive/images/bottom.jpg" width="900" height="56" border="0" usemap="#Map" /></td>
</tr>
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td height="35" colspan="2"><div align="center">
<?php include_once('includes/footer.php'); ?>
</div></td>
</tr>
</table>

<map name="Map" id="Map"><area shape="rect" coords="107,10,239,27" href="http://beprofessional.net" alt="web development - joomla template" />
</map></body>
</html>


Wlaśnie doszedlem dlaczego brak było komentarzy .. >
Mianowicie wpisany artykuł musi miec Wstep .. i częsc dalszą .. tak żeby pokazał sie napis :
"Czytaj całość…" - wowczas po klieknieciu .. mam mozliwos komentowania .. >

szkoda ze nigdzie nie znalazlem wczesniej takiej informacji ... Swoja droga nie lepiej byłoby zeby przy artykule .. nawet jesli jest jednolinijkowy .. i nie ma dalszej czesci był przycisk :Komentuj ? ...

Hymm >? bo teraz to troche bez sensu ..