comments in a new page

Hello
I searched the forum documents and information on how to put comments in a page I think.
If I create a page, as I do to receive the feedback form below so that members can make their comments.
Thanks for your reply.

Quote · 2 Feb 2010

Hello, you will can read regards this in - /inc/classes/BxDolCmts.php

for example :

<?php

bx_import('BxTemplCmtsView');


$oMyComments  = new BxTemplCmtsView   ('my_comments',  $iID /*put here you unique Id*/);
$sOutputCode     = $oMyComments   -> getExtraJs();
$sOutputCode    .= ( !$oMyComments  -> isEnabled() )
? null
: $oMyComments  -> getCommentsFirst();


echo $sOutputCode;

?>

Also you will need register your 'my_comments' into Db :

CREATE TABLE `my_comments_cmts_track` (
`cmt_system_id` int(11) NOT NULL default '0',
`cmt_id` int(11) NOT NULL default '0',
`cmt_rate` tinyint(4) NOT NULL default '0',
`cmt_rate_author_id` int(10) unsigned NOT NULL default '0',
`cmt_rate_author_nip` int(11) unsigned NOT NULL default '0',
`cmt_rate_ts` int(11) NOT NULL default '0',
PRIMARY KEY  (`cmt_system_id`,`cmt_id`,`cmt_rate_author_nip`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

--
-- Table structure for table `PollsCmts`
--

CREATE TABLE `my_comments_cmts` (
`cmt_id` int(11) NOT NULL auto_increment,
`cmt_parent_id` int(11) NOT NULL default '0',
`cmt_object_id` int(12) NOT NULL default '0',
`cmt_author_id` int(10) unsigned NOT NULL default '0',
`cmt_text` text NOT NULL,
`cmt_mood` tinyint(4) NOT NULL default '0',
`cmt_rate` int(11) NOT NULL default '0',
`cmt_rate_count` int(11) NOT NULL default '0',
`cmt_time` datetime NOT NULL default '0000-00-00 00:00:00',
`cmt_replies` int(11) NOT NULL default '0',
PRIMARY KEY  (`cmt_id`),
KEY `cmt_object_id` (`cmt_object_id`,`cmt_parent_id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;

INSERT INTO
`sys_objects_cmts`
(`ObjectName`, `TableCmts`, `TableTrack`, `AllowTags`, `Nl2br`, `SecToEdit`, `PerView`, `IsRatable`, `ViewingThreshold`, `AnimationEffect`, `AnimationSpeed`, `IsOn`, `IsMood`, `RootStylePrefix`, `TriggerTable`, `TriggerFieldId`, `TriggerFieldComments`, `ClassName`, `ClassFile`)
VALUES
('my_comments', 'my_comments_cmts', 'my_comments_cmts_track', 0, 1, 90, 5, 1, -3, 'slide', 2000, 1, 1, 'cmt', '', '', '', '', '');

PS: If possible do not write me personally, please try to ask on the forum first
Quote · 2 Feb 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.