La situación es que me encuentro diseñando un website pero soy diseñador gráfico, es decir no conozco de programación y tampoco tengo mucha ayuda. Me encuentro trabajando con joomla 1.6.5 y estoy utilizando un componente llamado community answers version 1.7 Al tratar de ingresas a cualquiera de los items generados por este componente me genera el siguiente error:
Parse error: syntax error, unexpected '}' in C:\xampp\htdocs\saludsolnaciente\components\com_communityanswers\templates\default2\view_question.php on line 216
El código de view_question.php es el siguiente:
Código PHP :
<?php defined('_JEXEC') or die('Restricted access'); $config = &CommunityAnswersHelper::getConfig(); $itemid = CommunityAnswersHelper::get_itemid(); $user = &JFactory::getUser(); $allowed = CommunityAnswersHelper::authorize_user($this->question->permission_answer); ?> <script type="text/javascript">var switchTo5x=true;</script> <script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script> <script type="text/javascript">stLight.options({publisher: '<?php echo $config[A_SHARETHIS_PUBID]?>'});</script> <div class="navigation_table ui-widget-content ui-corner-all"> <div class="ca_ask" style="margin-bottom: 10px;"> <form id="askform" action="<?php echo JRoute::_('index.php?option='.APP_NAME.'&view=answers&task=ask'.$itemid);?>" method="post"> <input name="question_title" id="question_title" type="text"/> <a href="#" onclick="javascript: return false;" id="continuebutton" ><?php echo JText::_('LBL_CONTINUE');?></a> <input type="hidden" name="option" value="<?php echo APP_NAME;?>"> <input type="hidden" name="view" value="answers"> <input type="hidden" name="task" value="ask"> <input type="hidden" name="catid" value="<?php echo !empty($this->question) ? $this->question->catid : '0';?>"> <input type="hidden" name="Itemid" value="<?php echo isset($mnuitem) ? $mnuitem->id : '';?>"> </form> </div> </div> <div class="toolbar ui-widget-content ui-corner-all"> <ul class="submenu"> <li><a href="<?php echo JRoute::_('index.php?option='.APP_NAME.'&view=answers&task=index'.$itemid);?>" class="active"><?php echo JText::_('LBL_HOME')?></a></li> <?php if(!$user->guest):?> <li><a href="<?php echo JRoute::_('index.php?option='.APP_NAME.'&view=answers&task=myquestions'.$itemid);?>" class="active"><?php echo JText::_('LBL_MY_QUESTIONS')?></a></li> <li><a href="<?php echo JRoute::_('index.php?option='.APP_NAME.'&view=answers&task=myanswers'.$itemid);?>" class="active"><?php echo JText::_('LBL_MY_ANSWERS')?></a></li> <?php endif;?> </ul> </div> <?php if(!empty($this->question)){ ?> <script type="text/javascript"> jQuery(document).ready(function($){ AnswersFactory.initAnswerView(); }); </script> <?php echo CommunityAnswersHelper::loadModulePosition('answers_above_question_title');?> <div class="navigation_table ui-widget-content ui-corner-all"> <div class="avatar"><?php echo CommunityAnswersHelper::getUserAvatar($this->question->created_by, $config[A_AVATAR_SIZE]);?></div> <div class="title"><?php echo $this->escape($this->question->title);?></div> <div class="description"><?php echo CommunityAnswersHelper::process_html($this->question->description);?></div> <div class="clear"></div> <div class="meta-info"> <?php $catlink = JRoute::_( "index.php?option=" . APP_NAME . "&view=answers&task=list&catid=" . $this->question->catid . ':' . $this->question->calias . $itemid); echo JText::_('TXT_IN') . ' <a href="' . $catlink . '">' . $this->escape($this->question->category) . '</a> - ' . JText::_('LBL_ASKED_BY') . ' ' . $this->escape($this->question->created_by ? $this->question->username : $this->question->user_name) . ' - ' . CommunityAnswersHelper::getFormattedDate($this->question->created); ?> </div> <?php if(!empty($this->question->tags)):?> <div class="tags"> <span class="tags-title"><?php echo JText::_('LBL_TAGS');?>: </span> <?php foreach ($this->question->tags as $tag):?> <span class="quote-tag"><?php echo JHTML::link(JRoute::_('index.php?option='.APP_NAME.'&view=answers&task=tag&id='.$tag->id.':'.$tag->alias.$itemid), $this->escape($tag->title), 'class="question-tag"')?></span> <?php endforeach;?> </div> <?php endif;?> <?php if(($config[A_ENABLE_ATTACHMENTS] == '1') && !empty($this->question->attachments) ):?> <?php foreach($this->question->attachments as $qattachment):?> <div class="attachment"><?php echo sprintf(JText::_('LBL_ATTACHMENT'), JHtml::link(A_MEDIA_DIR_URL.$qattachment, $qattachment, 'target="_blank" rel="nofollow"'))?></div> <?php endforeach;?> <?endif;?> <?php if(!empty($config[A_SHARETHIS_PUBID]) || CAuthorization::authorise('answers.manage')):?> <div class="social-share"> <?php if(!empty($config[A_SHARETHIS_PUBID])):?> <div class="sharethis_help"><?php echo JText::_('TXT_SHARE_HELP')?></div> <?php endif;?> <span> <?php if(CAuthorization::authorise('answers.manage')):?> <a class="moderate_tools btn_unpublish" id="unpublishq-<?php echo $this->question->id;?>" style="border: 0; margin: 0" title="<?php echo JText::_('LBL_UNPUBLISH');?>" onclick="javascript: return false;" href="<?php echo JRoute::_("index.php?option=" . APP_NAME . "&view=answers&task=unpublishquestion&id=" . $this->question->id . $itemid);?>"></a> <a class="moderate_tools btn_delete" id="deleteq-<?php echo $this->question->id;?>" style="border: 0; margin: 0" title="<?php echo JText::_('LBL_DELETE');?>" onclick="javascript: return false;" href="<?php echo JRoute::_("index.php?option=" . APP_NAME . "&view=answers&task=deletequestion&id=" . $this->question->id . $itemid);?>"></a> <?php endif;?> </span> <?php if(!empty($config[A_SHARETHIS_PUBID])):?> <span class="st_email_hcount" displayText="Email"></span> <span class="st_sharethis_hcount" displayText="ShareThis"></span> <span class="st_twitter_hcount" displayText="Tweet"></span> <span class="st_plusone_hcount" ></span> <span class="st_fblike_hcount" ></span> <?php endif;?> </div> <?php endif;?> </div> <?php echo CommunityAnswersHelper::loadModulePosition('answers_below_question_title');?> <div class="answers_wrapper"> <?php if($this->question->answers){ ?> <div class="subtitle"><?php echo JText::_('TXT_ANSWERS');?></div> <ul class="answers"> <?php $i=0; foreach($this->question->answers as $answer){ ?> <li id="answer-<?php echo $answer->id;?>" class="ui-widget-content ui-corner-all <?php echo ($answer->id == $this->question->accepted_answer)?'accepted_answer':(($i==1)?'alt':'noalt');?>"> <table class="answer_table"> <?php if($answer->id == $this->question->accepted_answer):?> <tr> <td colspan="2"> <div class="subtitle"><?php echo JText::_('LBL_ACCEPTED_ANSWER');?></div> </td> </tr> <?php endif;?> <tr> <td valign="top"> <div id="description-<?php echo $answer->id;?>"><?php echo CommunityAnswersHelper::process_html($answer->description);?></div> <?php if(!empty($answer->source) && $config[A_ENABLE_REFERENCES]){ $sources = CommunityAnswersHelper::nl2a($this->escape($answer->source)); if(strlen($sources) > 10){ ?> <div class="references_title"> <?php echo JText::_('LBL_REFERENCES');?> </div> <div style="margin-bottom: 10px;" id="source-<?php echo $answer->id;?>"> <?php echo $sources;?> </div> <?php }else{ echo "<div><br></div>"; } } ?> </td> </tr> <?php if(($config[A_ENABLE_ATTACHMENTS] == '1') && !empty($answer->attachments) ):?> <tr> <td class="attachment"> <?php foreach($answer->attachments as $attachment):?> <div class="attachment"><?php echo sprintf(JText::_('LBL_ATTACHMENT'), JHtml::link(A_MEDIA_DIR_URL.$attachment, $attachment, 'target="_blank" rel="nofollow"'))?></div> <?php endforeach;?> </td> </tr> <?endif;?> <tr> <td valign="top"> <table class="question-meta"> <tr> <td valign="top"> <?php echo CommunityAnswersHelper::getUserAvatar($answer->created_by, $config[A_AVATAR_SIZE]);?> </td> <td valign="top" width="100%" align="left"> <?php $username = $answer->created_by ? CommunityAnswersHelper::getUserProfileUrl($answer->created_by, $this->escape( $answer->username)) : $answer->user_name; echo sprintf(JText::_('TXT_ANSWERED_BY'), $username, CommunityAnswersHelper::getFormattedDate($answer->created)); ?> </td> <td valign="bottom" nowrap="nowrap"> <?php if(!$user->guest):?> <a id="report_<?php echo $answer->id?>" class="moderate_tools btn_report" href="#" onclick="return false;"><?php echo JText::_('LBL_REPORT_THIS');?></a> <?php endif;?> <?php if(!$user->guest && ($this->question->accepted_answer == 0) && (($user->id == $this->question->created_by) || CAuthorization::authorise('answers.accept'))):?> <a id="<?php echo $answer->id;?>" href="<?php echo JRoute::_('index.php?option='.APP_NAME.'&view=answers&task=accept&id='.$answer->id.'&qid='.$this->question->id)?>" onclick="return false;" class="moderate_tools btn_accept"><?php echo JText::_('LBL_ACCEPT_ANSWER');?> </a> <?php endif;?> <?php if(CAuthorization::authorise('answers.accept') && ($this->question->accepted_answer > 0)):?> <a id="<?php echo $answer->id;?>" href="<?php echo JRoute::_('index.php?option='.APP_NAME.'&view=answers&task=unaccept&id='.$answer->id.'&qid='.$this->question->id)?>" onclick="return false;" class="moderate_tools btn_unaccept"><?php echo JText::_('LBL_MARK_IT_OPEN');?> </a> <?php endif;?> <a class="moderate_tools thumb_down" onclick="javascript: return false;" href="<?php echo JRoute::_("index.php?option=" . APP_NAME . "&view=answers&task=thumbdown&id=" . $answer->id . $itemid);?>"> <span><?php echo $answer->thumbdown;?></span> </a> <a class="moderate_tools thumb_up" onclick="javascript: return false;" href="<?php echo JRoute::_("index.php?option=" . APP_NAME . "&view=answers&task=thumbup&id=" . $answer->id . $itemid);?>"> <span><?php echo $answer->thumbup;?></span> </a> <?php if(CAuthorization::authorise('answers.manage')):?> <a class="moderate_tools btn_edit" id="edit-<?php echo $answer->id;?>" title="<?php echo JText::_('LBL_EDIT');?>" onclick="javascript: return false;" href="<?php echo JRoute::_("index.php?option=" . APP_NAME . "&view=answers&task=editanswer&id=" . $answer->id . $itemid);?>"></a> <a class="moderate_tools btn_unpublish" id="unpublish-<?php echo $answer->id;?>" title="<?php echo JText::_('LBL_UNPUBLISH');?>" onclick="javascript: return false;" href="<?php echo JRoute::_("index.php?option=" . APP_NAME . "&view=answers&task=unpublishanswer&id=" . $answer->id . $itemid);?>"></a> <a class="moderate_tools btn_delete" id="delete-<?php echo $answer->id;?>" title="<?php echo JText::_('LBL_DELETE');?>" onclick="javascript: return false;" href="<?php echo JRoute::_("index.php?option=" . APP_NAME . "&view=answers&task=deleteanswer&id=" . $answer->id . $itemid);?>"></a> <?php endif;?> <img id="progress-<?php echo $answer->id;?>" alt="..." src="<?php echo $templateUrlPath;?>/images/ui-anim_basic_16x16.gif" style="display: none;" /> </td> </tr> </table> </td> </tr> </table> </li> <?php $i = 1-$i;} ?> </ul> <?php }else{ ?> <?php if($allowed): ?> <div class="ui-widget"> <div class="ui-state-highlight ui-corner-all" style="margin-top: 10px; margin-bottom: 10px; padding: 0 .7em;"> <p><span class="ui-icon ui-icon-info" style="float: left; margin-right: .3em;"></span><strong><?php echo JText::_('TXT_NO_ANSWERS');?></strong></p> </div> </div> <?php endif;?> <?php } ?> <?php echo CommunityAnswersHelper::loadModulePosition('answers_above_answer_form');?> <?php if(($this->question->accepted_answer <= 0) && $allowed): ?> <div id="answer_form_wrapper" class="answer_form_wrapper ui-widget-content ui-corner-all" style="margin-top: 20px;"> <?php if(CAuthorization::authorise('answers.answer')): ?> <a href="#" onclick="return false;" id="btn_submit_answer" rel="#answer_form"><?php echo JText::_('LBL_SUBMIT_ANSWER');?></a> <?php if(!$user->guest):?> <?php if($this->question->subscription_id):?> <a id="btn_subscribe" onclick="return false;" href="<?php echo JRoute::_('index.php?option='.APP_NAME.'&view=answers&task=unsubscribe_qn&id='.$this->question->id.':'.$this->question->alias.$itemid);?>"><?php echo JText::_('LBL_UNSUBSCRIBE');?></a> <?php else: ?> <a id="btn_subscribe" onclick="return false;" href="<?php echo JRoute::_('index.php?option='.APP_NAME.'&view=answers&task=subscribe_qn&id='.$this->question->id.':'.$this->question->alias.$itemid);?>"><?php echo JText::_('LBL_SUBSCRIBE');?></a> <?php endif;?> <?php endif;?> <form id="answer_form" action="<?php echo JRoute::_('index.php?option='.APP_NAME.'&view=answers&task=answer'.$itemid);?>" method="post" style="margin-bottom: 20px; display: none;" enctype="multipart/form-data"> <div class="page_title"><?php echo JText::_('LBL_SUBMIT_ANSWER');?></div> <?php if($user->guest): ?> <label for="guest_username"><?php echo JText::_("LBL_NAME");?>:</label> <input type="text" name="user_name" id="guest_username"/> <label for="guest_email"><?php echo JText::_("LBL_EMAIL");?>:</label> <input type="text" name="email" id="guest_email"/> <?php endif;?> <label for="answer"><?php echo JText::_("LBL_ANSWER");?>:</label> <?php echo CommunityAnswersHelper::load_editor('answer', 'answer', '', '10', '40', '100%', '200px', null, 'width: 99%;'); ?> <?php if($config[A_ENABLE_REFERENCES]):?> <div style="margin: 5px 0 5px 0; font-weight: bold;"><?php echo JText::_('TXT_REFERENCES');?></div> <div><textarea id="sources" name="sources" rows="3" cols="40"></textarea></div> <?php endif;?> <?php if($config[A_ENABLE_ATTACHMENTS] == '1') :?> <label for="file_attachment"><?php echo JText::_('LBL_FILE_ATTACHMENT');?>:</label> <input type="file" name="attachment" id="attachment" size="25"> <?php endif;?> <?php if($user->guest && $config[A_ENABLE_CAPTCHA]){ require_once JPATH_COMPONENT.DS.'helpers'.DS.'recaptchalib.php'; echo '<div id="captcha">'.recaptcha_get_html($config[A_RECAPTCHA_PUBLIC_KEY]).'</div>'; } ?> <a href="#" onclick="return false;" id="btn_save_answer"><?php echo JText::_('LBL_SUBMIT_ANSWER');?></a> <a href="#" onclick="return false;" id="btn_cancel"><?php echo JText::_('LBL_CANCEL');?></a> <input type="hidden" name="question_id" value="<?php echo $this->question->id;?>"> <input type="hidden" name="answer_id" id="answer_id" value="0"> <input type="hidden" name="option" value="<?php echo APP_NAME;?>"> <input type="hidden" name="view" value="answers"> <input type="hidden" name="task" value="answer"> </form> <?php else: ?> <?php if($user->guest):?> <?php echo JText::_("MSG_REGISTER_LOGIN");?> <a href="" id="btn_login" onclick="return false;"><?php echo JText::_('LBL_CLICK_HERE_TO_LOGIN');?></a> <?php endif;?> <?php endif;?> </div> <?php endif;?> <?php echo CommunityAnswersHelper::loadModulePosition('answers_below_answer_form');?> <div class="toolbar ui-widget-content ui-corner-all"> <ul class="submenu"> <li><a href="<?php echo JRoute::_('index.php?option='.APP_NAME.'&view=answers&task=index'.$itemid);?>" class="active"><?php echo JText::_('LBL_HOME')?></a></li> <?php if(!$user->guest):?> <li><a href="<?php echo JRoute::_('index.php?option='.APP_NAME.'&view=answers&task=myquestions'.$itemid);?>" class="active"><?php echo JText::_('LBL_MY_QUESTIONS')?></a></li> <li><a href="<?php echo JRoute::_('index.php?option='.APP_NAME.'&view=answers&task=myanswers'.$itemid);?>" class="active"><?php echo JText::_('LBL_MY_ANSWERS')?></a></li> <?php endif;?> </ul> </div> <?php if(!empty($this->question->similar)):?> <div class="subtitle" style="margin: 10px 0 0 0;"><?php echo JText::_('LBL_SIMILAR');?></div> <ul class="data_table"> <?php $i=0; foreach($this->question->similar as $question){ $user_profile_link = $question->created_by ? CommunityAnswersHelper::getUserProfileUrl($question->created_by, $question->username) : $question->user_name; $question_date = CommunityAnswersHelper::getFormattedDate($question->created); $user_avatar = ($config[A_SHOW_AVATAR_IN_LISTING] == '1') ? CommunityAnswersHelper::getUserAvatar($question->created_by, $config[A_AVATAR_SIZE]) : ''; $new_posts = CommunityAnswersHelper::check_new_posts($question, $this->userstats); $question_href = JRoute::_( 'index.php?option='.APP_NAME.'&view=answers&task=view&id='.$question->id.(!empty ($question->alias)?':'.$question->alias:'').$itemid ); $category_href = JHtml::link( JRoute::_( 'index.php?option='.APP_NAME.'&view=answers&task=list&catid='.$question->catid.(!empty ($question->calias)?':'.$question->calias:'').$itemid), $question->category ); ?> <li class="ui-widget-content ui-corner-all <?php echo $i ? 'noalt' : 'alt';?>"> <div class="avatar"> <table border="0" cellpadding="2" cellspacing="0"> <tr> <td><?php echo $user_avatar;?></td> <td align="center" valign="top"> <div class="answerbox<?php echo $new_posts ? ' newposts' : '';?>"> <div class="answercount"><?php echo $question->answers;?></div> <div class="answerdesc"><?php echo ($question->answers == 1) ? JText::_('TXT_ANSWER') : JText::_('TXT_ANSWERS');?></div> </div> </td> </tr> </table> </div> <div class="question_title"> <a href="<?php echo $question_href; ?>"><?php echo $this->escape($question->title);?></a> <?php if($question->accepted_answer > 0):?> <img title="<?php echo JText::_('TXT_RESOLVED_QUESTION');?>" src="<?php echo $templateUrlPath.'/images/accept.png';?>"> <?php endif;?> </div> <div class="question_meta"> <?php echo sprintf(JText::_('LBL_QUESTION_META'), $category_href, $user_profile_link, $question_date)?> </div> <div class="clear"></div> </li> <?php $i=1-$i; } ?> </ul> <?php echo CommunityAnswersHelper::loadModulePosition('answers_below_similar_answers');?> <?php endif;?> <?php if(!empty($this->question->catqns)):?> <div class="subtitle" style="margin: 10px 0 0 0;"><?php echo sprintf(JText::_('LBL_QUESTIONS_IN_CATEGORY'), $this->question->category); ?></div> <ul class="data_table"> <?php $i=0; foreach($this->question->catqns as $question){ $user_profile_link = $question->created_by ? CommunityAnswersHelper::getUserProfileUrl($question->created_by, $question->username) : $question->user_name; $question_date = CommunityAnswersHelper::getFormattedDate($question->created); $user_avatar = ($config[A_SHOW_AVATAR_IN_LISTING] == '1') ? CommunityAnswersHelper::getUserAvatar($question->created_by, $config[A_AVATAR_SIZE]) : ''; $new_posts = CommunityAnswersHelper::check_new_posts($question, $this->userstats); $question_href = JRoute::_( 'index.php?option='.APP_NAME.'&view=answers&task=view&id='.$question->id.(!empty ($question->alias)?':'.$question->alias:'').$itemid ); $category_href = JHtml::link( JRoute::_( 'index.php?option='.APP_NAME.'&view=answers&task=list&catid='.$question->catid.(!empty ($question->calias)?':'.$question->calias:'').$itemid), $question->category ); ?> <li class="ui-widget-content ui-corner-all <?php echo $i ? 'noalt' : 'alt';?>"> <div class="avatar"> <table border="0" cellpadding="2" cellspacing="0"> <tr> <td><?php echo $user_avatar;?></td> <td align="center" valign="top"> <div class="answerbox<?php echo $new_posts ? ' newposts' : '';?>"> <div class="answercount"><?php echo $question->answers;?></div> <div class="answerdesc"><?php echo ($question->answers == 1) ? JText::_('TXT_ANSWER') : JText::_('TXT_ANSWERS');?></div> </div> </td> </tr> </table> </div> <div class="question_title"> <a href="<?php echo $question_href; ?>"><?php echo $this->escape($question->title);?></a> <?php if($question->accepted_answer > 0):?> <img title="<?php echo JText::_('TXT_RESOLVED_QUESTION');?>" src="<?php echo $templateUrlPath.'/images/accept.png';?>"> <?php endif;?> </div> <div class="question_meta"> <?php echo sprintf(JText::_('LBL_QUESTION_META'), $category_href, $user_profile_link, $question_date)?> </div> <div class="clear"></div> </li> <?php $i=1-$i; } ?> </ul> <?php echo CommunityAnswersHelper::loadModulePosition('answers_below_category_answers');?> <?php endif;?> </div> <?php }else{ JError::raiseError( 500, 'Unauthorised usage. Error code: 10005.' ); } ?> <div id="dialog-confirm" style="display:none;"> <div id="error-msg-wrapper" style="display: none;" class="ui-widget"> <div class="ui-state-highlight ui-corner-all" style="margin-top: 10px; margin-bottom: 10px; padding: 0 .7em;"> <p><span class="ui-icon ui-icon-info" style="float: left; margin-right: .3em;"></span><strong id="error-msg"></strong></p> </div> </div> <div id="msg-confirm"><?php echo JText::_('MSG_CONFIRM');?></div> <img id="progress-confirm" alt="..." src="<?php echo $templateUrlPath;?>/images/ui-anim_basic_16x16.gif" style="display: none;"/> </div> <span style="display: none" id="url_home"><a href="<?php echo JRoute::_('index.php?option='.APP_NAME.'&view=answers&task=index'.$itemid)?>"><?php echo JText::_('TXT_CLICK_HERE');?></a></span> <span style="display: none" id="url_ajax_captcha_check"><?php echo JRoute::_("index.php?option=".APP_NAME."&view=answers&task=verify_captcha".$itemid);?></span> <span style="display: none" id="lbl_submit_answer"><?php echo JText::_('LBL_SUBMIT_ANSWER');?></span> <span style="display: none" id="lbl_cancel"><?php echo JText::_('LBL_CANCEL');?></span> <span style="display: none" id="lbl_yes"><?php echo JText::_('LBL_YES');?></span> <span style="display: none" id="lbl_no"><?php echo JText::_('LBL_NO');?></span> <span style="display: none" id="lbl_error"><?php echo JText::_('LBL_ERROR');?></span> <span style="display: none" id="lbl_confirm"><?php echo JText::_('LBL_CONFIRM');?></span> <span style="display: none" id="lbl_question_deleted"><?php echo JText::_('LBL_OPERATION_SUCCESS');?></span> <span style="display: none" id="lbl_click_here"><?php echo JText::_('TXT_CLICK_HERE');?></span> <span style="display: none" id="lbl_ask_question"><?php echo JText::_("LBL_ASK");?></span> <span style="display: none" id="html_answer-temp"><li class="ui-widget-content ui-corner-all noalt"> <table class="answer_table"> <tr><td valign="top"><div class="description-temp"></div></td></tr> <tr> <td valign="top"> <table class="question-meta"> <tr> <?php $username = $user->guest ? JText::_('LBL_GUEST') : CommunityAnswersHelper::getUserProfileUrl($user->id, $this->escape($user->get($config[A_USER_NAME]))); ?> <td valign="top"><?php echo CommunityAnswersHelper::getUserAvatar($user->id, $config[A_AVATAR_SIZE]);?></td> <td valign="top" width="100%" align="left"><?php echo sprintf(JText::_('TXT_ANSWERED_BY'), $username, CommunityAnswersHelper::getFormattedDate('now')); ?></td> </tr> </table> </td> </tr> </table> </li></span> <span style="display: none" id="url_subscribe"><?php echo JRoute::_('index.php?option='.APP_NAME.'&view=answers&task=subscribe_qn&id='.$this->question->id.':'.$this->question->alias.$itemid);?></span> <span style="display: none" id="url_unsubscribe"><?php echo JRoute::_('index.php?option='.APP_NAME.'&view=answers&task=unsubscribe_qn&id='.$this->question->id.':'.$this->question->alias.$itemid);?></span> <span style="display: none" id="msg_subscribe"><?php echo JText::_('MSG_SUBSCRIBED'); ?></span> <span style="display: none" id="msg_unsubscribe"><?php echo JText::_('MSG_UNSUBSCRIBED'); ?></span> <span style="display: none" id="lbl_subscribe"><?php echo JText::_('LBL_SUBSCRIBE'); ?></span> <span style="display: none" id="lbl_unsubscribe"><?php echo JText::_('LBL_UNSUBSCRIBE'); ?></span> <span style="display: none" id="url_get_answer"><?php echo JRoute::_('index.php?option='.APP_NAME.'&view=answers&task=get_answer'.$itemid);?></span> <span style="display: none" id="lbl_report_this"><?php echo JText::_('LBL_REPORT_THIS'); ?></span> <span style="display: none" id="lbl_submit"><?php echo JText::_('LBL_SUBMIT'); ?></span> <span style="display: none" id="lbl_info"><?php echo JText::_('LBL_INFO'); ?></span> <form style="display: none;" id="dlg_report" action="<?php echo JRoute::_('index.php?option='.APP_NAME.'&view=answers&task=report&id='.$this->question->id.$itemid);?>" method="post"> <strong><label for="report_reason"><?php echo JText::_('LBL_REPORT_REASON')?>:</label></strong><br/> <input type="text" size="40" id="report_reason" name="report_reason"><br/><br/> <strong><label for="report_description"><?php echo JText::_('LBL_REPORT_DESCRIPTION');?>:</label></strong><br/> <textarea rows="4" cols="40" id="report_description" name="report_description"></textarea><br/><br/> <input type="hidden" id="report_answer_id" name="report_answer_id" value="0"> </form> <form action="<?php echo JRoute::_( 'index.php', true); ?>" method="post" name="login" id="ca-form-login" style="display: none;" title="<?php echo JText::_('Login');?>"> <fieldset class="input"> <p id="form-login-username"> <label for="modlgn_username"><?php echo JText::_('Username') ?></label><br /> <input id="modlgn_username" type="text" name="username" class="inputbox" alt="username" size="18" /> </p> <p id="form-login-password"> <label for="modlgn_passwd"><?php echo JText::_('Password') ?></label><br /> <input id="modlgn_passwd" type="password" name="passwd" class="inputbox" size="18" alt="password" /> </p> <?php if(JPluginHelper::isEnabled('system', 'remember')) : ?> <p id="form-login-remember"> <label for="modlgn_remember"><?php echo JText::_('Remember me') ?></label> <input id="modlgn_remember" type="checkbox" name="remember" class="inputbox" value="yes" alt="Remember Me" /> </p> <?php endif; ?> <input type="submit" name="Submit" class="button" value="<?php echo JText::_('LOGIN') ?>" /> </fieldset> <ul> <li> <a href="<?php echo JRoute::_( 'index.php?option=com_user&view=reset' ); ?>"> <?php echo JText::_('LBL_FORGOT_YOUR_PASSWORD'); ?></a> </li> <li> <a href="<?php echo JRoute::_( 'index.php?option=com_user&view=remind' ); ?>"> <?php echo JText::_('LBL_FORGOT_YOUR_USERNAME'); ?></a> </li> <?php $usersConfig = JComponentHelper::getParams( 'com_users' ); if ($usersConfig->get('allowUserRegistration')) : ?> <li> <a href="<?php echo JRoute::_( 'index.php?option=com_user&view=register' ); ?>"> <?php echo JText::_('LBL_REGISTER'); ?></a> </li> <?php endif; ?> </ul> <input type="hidden" name="option" value="<?php echo APP_VERSION == '1.5' ? 'com_user' : 'com_users';?>" /> <input type="hidden" name="task" value="login" /> <input type="hidden" name="return" value="<?php echo base64_encode(JRoute::_('index.php?option='.APP_NAME.'&view=answers&task=view&id='.$this->question->id.':'.$this->question->alias.$itemid));?>" /> <?php echo JHTML::_( 'form.token' ); ?> </form>
Por favor espero puedan ayudarme con esto, ya que urgentemente necesito solucionarlo gracias de antemano.