Uzzi Ohana Posted September 22, 2010 at 07:13 PM Share Posted September 22, 2010 at 07:13 PM Hola, Alejandro. Intenté configurar los tabs según las indicaciones de http://docs.reviewsforjoomla.com/Adding_jQuery_UI_tabs_to_listing_detail_page, pero no tuve éxito. Al momento de editar el código, creo que algo hice mal en el archivo components/com_jreviews/jreviews/views/helpers/assets.php, apelo a tus conocimientos. Aquí está el código que modifiqué: /********************************************************************************** * ComContent Controller **********************************************************************************/ function ComContentComContentView() { $assets = array( 'js'=>array('jreviews','jquery','jq.ui.core','jq.ui.tabs','jq.jreviews.plugins','jq.fancybox'), 'css'=>array('theme','theme.detail','theme.form','paginator','jq.ui.core','jq.fancybox') ); if(!isset($this->assetParams['review_fields'])){ $datePickerCheck = true; $addReviewCheck = true; } else { $datePickerCheck = $this->CustomFields->findDateField($this->assetParams['review_fields']); $addReviewCheck = $this->Access->canAddReview(); } if($addReviewCheck) { if($datePickerCheck) { // Check to determine whether datepicker library is loaded $assets['js']['jq.ui.datepicker'] = 'jq.ui.datepicker'; } if($this->Config->rating_selector == 'stars'){ $assets['js'][] = 'jq.ui.rating'; $assets['css'][] = 'jq.ui.rating'; } $assets['js'][] = 'jq.tooltip'; $assets['css'][] = 'jq.tooltip'; if($this->Access->isManager()) { $assets['js'][] = 'jq.autocomplete'; $assets['css'][] = 'jq.autocomplete'; } } ?> <script type="text/javascript"> jQuery(document).ready(function() { jreviews.lightbox(); <?php if($addReviewCheck): // Init tooltips for reviews ?> jreviews.tooltip(); <?php endif;?> <?php if($addReviewCheck && $datePickerCheck): // Init datepicker for review fields?> jreviews.datepicker(); <?php endif;?> jQuery(".jr_tabs").tabs(); // Add this line }); <?php if($this->Access->canAddReview() && !$this->Access->moderateReview() && $this->Config->facebook_enable && $this->Config->facebook_reviews):?> if(!jQuery('#fb-root').length) jQuery("body").append('<div id="fb-root"></div>'); jreviews.facebook.init({ 'appid':'<?php echo $this->Config->facebook_appid;?>', 'optout':<?php echo $this->Config->facebook_optout;?>, 'success':function(){ jreviews.facebook.checkPermissions({ 'onPermission':function(){jreviews.facebook.setCheckbox('jr_submitButton',true);}, 'onNoSession':function(){jreviews.facebook.setCheckbox('jr_submitButton',false);} }); }, 'publish_text': '<?php __t("Publish to Facebook");?>' }); <?php endif; ?> }); </script> <?php $this->send($assets); } function ComContentComContentBlog() { $assets = array( 'js'=>array('jreviews'), 'css'=>array('theme','theme.list') ); $this->send($assets); } /********************************************************************** Link to comment
Alejandro Posted September 22, 2010 at 07:40 PM Share Posted September 22, 2010 at 07:40 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Uzzi Ohana Posted September 22, 2010 at 07:45 PM Author Share Posted September 22, 2010 at 07:45 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Alejandro Posted September 22, 2010 at 11:37 PM Share Posted September 22, 2010 at 11:37 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Uzzi Ohana Posted September 22, 2010 at 11:41 PM Author Share Posted September 22, 2010 at 11:41 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Uzzi Ohana Posted September 22, 2010 at 11:42 PM Author Share Posted September 22, 2010 at 11:42 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Alejandro Posted September 23, 2010 at 12:39 AM Share Posted September 23, 2010 at 12:39 AM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Uzzi Ohana Posted September 23, 2010 at 01:34 AM Author Share Posted September 23, 2010 at 01:34 AM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Alejandro Posted September 23, 2010 at 02:35 AM Share Posted September 23, 2010 at 02:35 AM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Uzzi Ohana Posted September 23, 2010 at 02:41 AM Author Share Posted September 23, 2010 at 02:41 AM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Uzzi Ohana Posted September 23, 2010 at 04:30 AM Author Share Posted September 23, 2010 at 04:30 AM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Uzzi Ohana Posted September 23, 2010 at 12:04 PM Author Share Posted September 23, 2010 at 12:04 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Alejandro Posted September 23, 2010 at 12:52 PM Share Posted September 23, 2010 at 12:52 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Uzzi Ohana Posted September 23, 2010 at 02:32 PM Author Share Posted September 23, 2010 at 02:32 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Alejandro Posted September 23, 2010 at 10:03 PM Share Posted September 23, 2010 at 10:03 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Uzzi Ohana Posted September 24, 2010 at 01:38 AM Author Share Posted September 24, 2010 at 01:38 AM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Alejandro Posted September 24, 2010 at 12:09 PM Share Posted September 24, 2010 at 12:09 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Uzzi Ohana Posted September 24, 2010 at 08:35 PM Author Share Posted September 24, 2010 at 08:35 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Alejandro Posted September 27, 2010 at 04:50 PM Share Posted September 27, 2010 at 04:50 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Uzzi Ohana Posted September 27, 2010 at 04:52 PM Author Share Posted September 27, 2010 at 04:52 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Recommended Posts