Forumlar / Cotonti / Extensions / Support / Comments in plugin Siena how ?!

How to use comments in plugin Siena

Pimenta
#1 2016-11-11 09:23

Dear,

It have been along time ago since I have been here , but anyway many things have been change since I have used the old Seditio .

So that is why I am stuck at this moment with an plugin what i am trying to make called stream (jwplayer) 

I wanne add comments on that plugin the old way was very easy in Seditio but I found that its harder in Siena .

The old way was like : 

//comments and rating build
$ratings = sed_import('ratings','G','BOL',1,TRUE);
$comments = sed_import('comments','G','BOL',1,TRUE);

 

list($comments_link, $comments_display, $comments_count) = sed_build_comments($item_code, $stream_url, $comments);
list($ratings_link, $ratings_display) = sed_build_ratings($item_code, $stream_url, $ratings);

 

I hope someone can help me with is that will be great , thanks :) 

 

 

NewMega V2 - My New Project TV and Online Radio - www.newme.ga
Dayver
#2 2016-11-12 01:49

Unfortunately to date the developer documentation for the rapid implantation plugin comments in their plug-ins do not have. But do not despair if you have programming skills then I think to understand and implement comments in your plugin you should get. To get started, try to insert the code in your plugin example super_plug

require_once cot_incfile('comments', 'plug');
$t->assign(array(
	'SUPER_PLUG_COMMENTS' => cot_comments_link('super_plug', $pageurl_params, 'super_plug', $row['super_plug_id'], $row['super_plug_cat'], $row),
	'SUPER_PLUG_COMMENTS_DISPLAY' => cot_comments_display('super_plug', $row['super_plug_id'], $row['super_plug_cat']),
	'SUPER_PLUG_COMMENTS_COUNT' => cot_comments_count('super_plug', $row['super_plug_id'], $row),
	'SUPER_PLUG_COMMENTS_RSS' => cot_url('rss', 'm=comments&id=' . $row['super_plug_id'])
));

And use php_doc info for comments plugin for more understanding of the code and parameters used in call functions. 

Pavlo Tkachenko aka Dayver

Bu konu Dayver tarafından düzenlendi(2016-11-12 01:54, 7 yıllar önce)
Pimenta
#3 2016-11-12 09:35

Thanks alot Dayver for the time and help wink

NewMega V2 - My New Project TV and Online Radio - www.newme.ga