×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Pre-sale question - CComment

Pre-sale question - CComment 12 years 8 months ago #14842

  • Geraint Edwards
  • Geraint Edwards's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Before purchase I wanted to know if its possible to migrate comment and comment thread data from jxComments?

Also do you support K2 in Joomla 1.7 - I know you say you support K2 just wanted to know if this was for the latest version of K2 in Joomla 1.7

Thanks

Geraint

Pre-sale question - CComment 12 years 8 months ago #14843

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey Geraint!
The answer to both questions is yes. And of course if you experience any problems while migrating or integrating with K2 - you can always count on my support ;)

Just a note - don't forget to check out the documentation for the k2 integration :)

Cheers,
Daniel

Pre-sale question - CComment 12 years 8 months ago #14844

  • Geraint Edwards
  • Geraint Edwards's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Cool - I'll subscribe now.


Geraint

Pre-sale question - CComment 12 years 8 months ago #14845

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Welcome to the club ;) Btw - there is already a jevents plugin ;)
Cheers,
Daniel

Pre-sale question - CComment 12 years 8 months ago #14847

  • Geraint Edwards
  • Geraint Edwards's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Ok I've subscribed and am attempting to import the data but have a problem. In jXComments the comment and thread data are stored in separate tables but the manual migration tool only provides a single table to get this information.
CREATE TABLE `vpo_jxcomments_comments` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `thread_id` int(11) unsigned NOT NULL COMMENT 'The comments thread id - Foreign Key',
  `user_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Map to the user id',
  `context` varchar(50) NOT NULL COMMENT 'The context of the comment',
  `context_id` int(11) NOT NULL DEFAULT '0' COMMENT 'The id of the item in context',
  `trackback` int(2) NOT NULL DEFAULT '0' COMMENT 'Is the comment a trackback',
  `notify` int(2) NOT NULL DEFAULT '0' COMMENT 'Notify the user on further comments',
  `score` int(2) NOT NULL DEFAULT '0' COMMENT 'The rating score of the commentor',
  `referer` varchar(255) NOT NULL COMMENT 'The referring URL',
  `page` varchar(255) NOT NULL COMMENT 'Custom page field',
  `name` varchar(255) NOT NULL COMMENT 'Name of the commentor',
  `url` varchar(255) NOT NULL COMMENT 'Website for the commentor',
  `email` varchar(255) NOT NULL COMMENT 'Email address for the commentor',
  `subject` varchar(255) NOT NULL COMMENT 'The subject of the comment',
  `body` text NOT NULL COMMENT 'Body of the comment',
  `created_date` datetime NOT NULL COMMENT 'When the comment was created',
  `published` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Published state, allows for moderation',
  `address` varchar(50) NOT NULL COMMENT 'Address of the commentor (IP, Mac, etc)',
  `link` varchar(255) NOT NULL COMMENT 'The link to the page the comment was made on',
  PRIMARY KEY (`id`),
  KEY `idx_context` (`context`,`context_id`,`published`),
  KEY `idx_user_id` (`user_id`),
  KEY `pub` (`published`),
  KEY `pubidx` (`published`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8
CREATE TABLE `vpo_jxcomments_threads` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `context` varchar(50) NOT NULL COMMENT 'The context of the comment thread',
  `context_id` int(11) NOT NULL DEFAULT '0' COMMENT 'The id of the item in context',
  `page_url` varchar(255) NOT NULL COMMENT 'The URL of the page for which the thread is attached',
  `page_route` varchar(255) NOT NULL COMMENT 'The route of the page for which the thread is attached',
  `page_title` varchar(255) NOT NULL COMMENT 'The title of the page for which the thread is attached',
  `created_date` datetime NOT NULL COMMENT 'The created date for the comment thread',
  `status` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Thread status',
  `pings` mediumtext NOT NULL,
  PRIMARY KEY (`id`),
  KEY `idx_context` (`context`,`context_id`,`status`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8

The context (comopent name e.g. content or jevents) and context_id are both blank in the comments table and are picked up from the JOIN on thread id.

I therefore did ,y own raw SQL import (which appears to work) but have a question

What does the 'usertype' field represent?

Pre-sale question - CComment 12 years 8 months ago #14848

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
the usertype field is a legacy thing... On joomla 1.7 you don't need it anymore and the next version is actually going to be a major rewrite and this field won't be there anymore...

So did you manage to import the comments through a raw sql or should I jump in and write the query for you?

Kind regards,
Daniel

Pre-sale question - CComment 12 years 8 months ago #14851

  • Geraint Edwards
  • Geraint Edwards's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
I got the migration done using a custom INSERT/SELECT SQL query.

The one remaining issue I face is that your JEvents plugin doesn't make a distinction between comments on events and comments on specific repeats. The plugin I had written for jXComments had a config option to allow both and in the case of events (as opposed to repeats) the comments addon stored the id as a negative number to differentiate between the two.

I'll need to modify your plugin to accomodate this config option for the site I'm migrating to J17. Would you like me to send you the changes (in the subscriber forum)?

Geraint

p.s. If you included a simple star rating in the next version that would be cool!

Pre-sale question - CComment 12 years 8 months ago #14852

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Hey,
Check the hwdvideoshare plugins - basically they are nearly the same with a few small differences in the functions... I think this would be everything you need to do to get it working.
Daniel
  • Page:
  • 1
Time to create page: 0.105 seconds