Witam
Aby usunąć short_description proszę w pliku components/com_djclassifieds/views/additem/tmpl/default.php usunąć /zakomentować linie 85-93
Kod PHP:
<tr>
<td width="100" align="right" class="label">
<?php echo JText::_('Intro description');?>
<div id="ile">(120)</div>
</td>
<td>
<textarea id="intro_desc" name="intro_desc" rows="5" cols="55" class="inputbox" onkeyup="checkt();" onkeydown="checkt();"><?php echo $this->nl->intro_desc; ?></textarea>
</td>
</tr>
a następnie w tym samym pliku w liniach 212-224 funkcję submit_checkt należy zamienić z
Kod PHP:
function submit_checkt(){
if(document.getElementById("name").value==''){
alert("<?php echo JText::_('Please enter title');?>");
}else if(document.getElementById("cat_id").value=='0'){
alert("<?php echo JText::_('Please select category');?>");
}else if(document.getElementById("intro_desc").value==''){
alert("<?php echo JText::_('Please enter description intro');?>");
}else if(document.getElementById("description").value==''){
alert("<?php echo JText::_('Please enter description');?>");
}else{
document.djForm.submit();
}
}
na
Kod PHP:
function submit_checkt(){
if(document.getElementById("name").value==''){
alert("<?php echo JText::_('Please enter title');?>");
}else if(document.getElementById("cat_id").value=='0'){
alert("<?php echo JText::_('Please select category');?>");
}else if(document.getElementById("description").value==''){
alert("<?php echo JText::_('Please enter description');?>");
}else{
document.djForm.submit();
}
}
Następnie w pliku classifieds/components/com_djclassifieds/controller.php należy zmienić linie 421-422 z
$intro_desc = JRequest::getVar('intro_desc', '', 'post', 'string', JREQUEST_ALLOWRAW);
$row->intro_desc = substr($intro_desc,0, 120);
na
$row->intro_desc = JRequest::getVar('description', '', 'post', 'string');
i przed linią 643 trzeba dodać
$row->intro_desc = JRequest::getVar('description', '', 'post', 'string');
Wtedy pełny opis zostanie przypisany do intro_description.
Aby w administratorze wyłączyć limit znaków w intro_description proszę w pliku administrator/components/com_djclassifieds/views/edititem/tmpl/default.php zamienić linię 118 z
<textarea id="intro_desc" name="intro_desc" rows="5" cols="55" class="inputbox" onkeyup="checkt(this.form);" onkeydown="checkt(this.form);"><?php echo $this->nl->intro_desc; ?></textarea>
na
<textarea id="intro_desc" name="intro_desc" rows="5" cols="55" class="inputbox" ><?php echo $this->nl->intro_desc; ?></textarea>
oraz usunąć linię 113
<div id="ile">(120)</div>
Pozdrawiam,
Lukasz
---------- Post dodany o 17:53 ---------- Poprzedni post był o 17:44 ----------
Wysłane przez
aduko
Witam, mam problem taki, jeżeli chcę dodać ogłoszenie z frontu, po zatwierdzeniu, pokazuje mi się strona błędem:
Not Acceptable
An appropriate representation of the requested resource /index.php could not be found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Ale po powrocie na główną, ogłoszenie widnieje w kategoriach.
Czy link www.adresstrony.pl/index.php działa bez problemu? Podejrzewam jakieś błędne przekierowanie przez .htaccess lub jakiś program do SEF. Czy na stronie jest jakiś program do przyjaznych linków? Czy .htaccess ma jakieś dodatkowe wpisy poza tymi od joomli? Proszę o link do strony wtedy może łatwiej będzie pomóc.
Pozdrawiam,
Lukasz