Jump to content

Make Owner Reply a paid feature


mikkox

Recommended Posts

hello

 

Sorry to come again with this request... In fact Kristian gave me the solution in a previous topic here :

 

http://www.reviewsforjoomla.com/forum/index.php?topic=12739.0

 

The problem is this solution worked fine when using old Jreview 2.2 version and now with the new version 2.3 the code and theme file related to OwnerReply have totally changed...

 

Actually the new code inside "review_layout.thtml" is this one:

 

 

		<?php if(!$this->ajaxRequest && $Access->canAddOwnerReply($listing,$review)):?>
		<!-- OWNER REPLY -->  
		<?php 
			if (Sanitize::getInt($listing['Criteria'],'state')!=2) {
				echo $Routes->ownerReply(__t("Reply to this review",true),$review,array('class'=>'jrButton','id'=>'jr_ownerReplyLink'.$review['Review']['review_id']));
			} else {
				echo $Routes->ownerReply(__t("Reply to this comment",true),$review,array('class'=>'jrButton','id'=>'jr_ownerReplyLink'.$review['Review']['review_id']));
			}
		?>
	<?php endif;?>

 

I tried to adapt this code with the follow conditional provided by Kristian:

 

 

<?php if ($Paid->getVar('ownerReply',$listing) == 'enabled'): ?>
<?php echo $Routes->ownerReply(__t("Reply to this review",true),$review,array('id'=>'jr_ownerReplyLink'.$review['Review']['review_id']));?>
<?php endif;?>

 

...but without success  :( :(

 

Do you can show me the correct syntax to use please?

 

many thank

Link to comment
  • 6 months later...
  • 3 months later...
×
×
  • Create New...