K2 komentarai

Locked
Warnenas
Joomla! Intern
Joomla! Intern
Posts: 92
Joined: Wed Dec 13, 2006 12:27 pm

K2 komentarai

Post by Warnenas » Mon Apr 18, 2011 5:09 pm

Sveiki susiduriau su mazyte problema.
Kai parasai komentara atsiranda uzrasas, kad komentaras issiustas, bet laukeliai neisitina. ka daryti ka galetumete pasiulyti?
Nuorodoa su demo : http://banana.lt/adcom2/lt/tinklarastis ... statistika
sablomo html:

Code: Select all

<?php
/**
 * @version		$Id: item_comments_form.php 478 2010-06-16 16:11:42Z joomlaworks $
 * @package		K2
 * @author		JoomlaWorks http://www.joomlaworks.gr
 * @copyright	Copyright (c) 2006 - 2010 JoomlaWorks, a business unit of Nuevvo Webware Ltd. All rights reserved.
 * @license		GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
 */
 
// no direct access
defined('_JEXEC') or die('Restricted access');
?>
 
<h3><?php echo JText::_('Leave a comment') ?></h3>
 
<?php if($this->params->get('commentsFormNotes')): ?>
<div class="itemCommentsFormNotes"><?php echo nl2br($this->params->get('commentsFormNotesText')); ?></div>
<?php endif; ?>
<form action="<?php echo JURI::root(); ?>index2.php" method="post" id="comment-form" class="form-validate">
<div id="contact2">
            	<div id="contactform2">
 
	<div class="name" for="userName"><?php echo JText::_( 'Name' ); ?><br />
	<input class="conname" type="text" name="userName" id="userName"  on-blur="if(this.value=='') this.value='<?php echo JText::_( 'enter your name...' ); ?>';" on-focus="if(this.value=='<?php echo JText::_( 'enter your name...' ); ?>') this.value='';" /></div>
 
    <div class="text2" for="commentText"><?php echo JText::_( 'Message' ); ?><br />
	<textarea class="context2" on-blur="if(this.value=='') this.value='<?php echo JText::_( 'enter your message here...' ); ?>';" on-focus="if(this.value=='<?php echo JText::_( 'enter your message here...' ); ?>') this.value='';" name="commentText" id="commentText"></textarea></div>
 
	<div class="email" for="commentEmail"><?php echo JText::_( 'E-mail' ); ?><br />
	<input class="conemail" type="text" name="commentEmail" id="commentEmail" on-blur="if(this.value=='') this.value='<?php echo JText::_( 'enter your e-mail address...' ); ?>';" on-focus="if(this.value=='<?php echo JText::_( 'enter your e-mail address...' ); ?>') this.value='';" /></div>
 
	<div class="conweb" for="commentURL"><?php echo JText::_('Website URL'); ?><br />
	<input class="conweb" type="text" name="commentURL" id="commentURL"  on-blur="if(this.value=='') this.value='<?php echo JText::_( 'enter your site URL...' ); ?>';" on-focus="if(this.value=='<?php echo JText::_( 'enter your site URL...' ); ?>') this.value='';" /></div>
 
</div>
<input type="submit" class="consend2" id="submitCommentButton" value="<?php echo JText::_( 'Submit comment' ); ?>" />
 
<span id="formLog"></span>
 
	<input type="hidden" name="option" value="com_k2" />
	<input type="hidden" name="view" value="item" />
	<input type="hidden" name="task" value="comment" />
	<input type="hidden" name="itemID" value="<?php echo JRequest::getInt('id'); ?>" />
</form>
 
</div>
Bandziau nustatyti defoult k2 sablona, bet ir po komentavmo jie neisitrina. Gal kas galte ka pasiulyti?

Locked

Return to “Joomla! 1.5”