By shoulders on Tuesday, 09 January 2018
Replies 0
Likes 0
Views 702
Votes 0
Hi,

I am just upgrading my komento integration plugin and tutorial for rsfeedback and require a little advise.

https://quantumwarp.com/kb/articles/106-extension-development/889-rsfeedback-komento-plugin-and-integration-tutorial

And one issue has popped up. I use the code below to show the comments and everything works


case '5' :
require_once( JPATH_ROOT . '/components/com_komento/bootstrap.php' );
$comments->listing = Komento::commentify('com_rsfeedback', $id);
$comments->form = '';
break;


As you can see there is 2 parts to this, the comments and the form, but in this code i only use the comments option to display komento. Is there a way to seperate the comments and the submit form. maybe something like


case '5' :
require_once( JPATH_ROOT . '/components/com_komento/bootstrap.php' );
$comments->listing = Komento::commentify('com_rsfeedback', $id, 'comments-only');
$comments->form = Komento::commentify('com_rsfeedback', $id, 'submit-form-only');
break;


I want to be able to show comments only, or comments with the submit form depending on the permnissions set in RSFeedback (which i can sort myself)

If the comments and submit form cannot be seperated, is there a flag I can use to show or hide submit form?

if this is not a thing, it really needs to be added.

Lastly, is there a flag I can send to enable or disable subscriptions, perhaps add this feature for some or all of the other options in komento?

Thanks
View Full Post