Jump to content

Archived

This topic is now archived and is closed to further replies.

mikkox

Make Owner Reply a paid feature

Recommended Posts

mikkox

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

Share this post


Link to post
Alejandro

This section is only visible with a valid subscription. If you have a valid subscription, please login.

Share this post


Link to post
mikkox

This section is only visible with a valid subscription. If you have a valid subscription, please login.

Share this post


Link to post
CK Loh

This section is only visible with a valid subscription. If you have a valid subscription, please login.

Share this post


Link to post
Kristian

This section is only visible with a valid subscription. If you have a valid subscription, please login.

Share this post


Link to post
CK Loh

This section is only visible with a valid subscription. If you have a valid subscription, please login.

Share this post


Link to post
Kristian

This section is only visible with a valid subscription. If you have a valid subscription, please login.

Share this post


Link to post
CK Loh

This section is only visible with a valid subscription. If you have a valid subscription, please login.

Share this post


Link to post
CK Loh

This section is only visible with a valid subscription. If you have a valid subscription, please login.

Share this post


Link to post
CK Loh

This section is only visible with a valid subscription. If you have a valid subscription, please login.

Share this post


Link to post
no particular

This section is only visible with a valid subscription. If you have a valid subscription, please login.

Share this post


Link to post
Kristian

This section is only visible with a valid subscription. If you have a valid subscription, please login.

Share this post


Link to post
no particular

This section is only visible with a valid subscription. If you have a valid subscription, please login.

Share this post


Link to post
adam parker1424296087

This section is only visible with a valid subscription. If you have a valid subscription, please login.

Share this post


Link to post
Kristian

This section is only visible with a valid subscription. If you have a valid subscription, please login.

Share this post


Link to post
adam parker1424296087

This section is only visible with a valid subscription. If you have a valid subscription, please login.

Share this post


Link to post
Kristian

This section is only visible with a valid subscription. If you have a valid subscription, please login.

Share this post


Link to post
adam parker1424296087

This section is only visible with a valid subscription. If you have a valid subscription, please login.

Share this post


Link to post
Kristian

This section is only visible with a valid subscription. If you have a valid subscription, please login.

Share this post


Link to post
adam parker1424296087

This section is only visible with a valid subscription. If you have a valid subscription, please login.

Share this post


Link to post
Kristian

This section is only visible with a valid subscription. If you have a valid subscription, please login.

Share this post


Link to post
adam parker1424296087

This section is only visible with a valid subscription. If you have a valid subscription, please login.

Share this post


Link to post
Kristian

This section is only visible with a valid subscription. If you have a valid subscription, please login.

Share this post


Link to post
adam parker1424296087

This section is only visible with a valid subscription. If you have a valid subscription, please login.

Share this post


Link to post
Kristian

This section is only visible with a valid subscription. If you have a valid subscription, please login.

Share this post


Link to post

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Please refer to our Privacy Policy.