Dear Edwin,
I have now installed Kunena with shared tables fro my slave site. In addition I have a hack, which sends out email to all kunena users when a post is made. The developer of the hack has sent following question:
"I was not able to apply this DB hack on yourclimatetv.tv as the database tables are created via a View. If you know how these table were created as a View please let me know."
----------------
Here is the hack:
Step 1) Copy 3 files in this zip here: components/com_kunena/templates/default/
Step 2) Run these 2 queries in database(Please not if the joomla database prefix is same or change accordingly.)
ALTER TABLE jos_fb_subscriptions CHANGE `thread` `thread` INT( 11 ) NULL DEFAULT '0'
ALTER TABLE jos_fb_subscriptions ADD `category` INT( 11 ) NULL DEFAULT '0'
Step 3) Backup your "jos_fb_subscriptions" table. Open the backup sql file in an editor. You will see a create table command as
--
-- Table structure for table `jos_fb_subscriptions`
--
CREATE TABLE `jos_fb_subscriptions` (
`thread` int(11) default '0',
`userid` int(11) NOT NULL default '0',
`future1` int(11) default '0',
`category` int(11) default '0',
UNIQUE KEY `thread` (`thread`,`userid`),
KEY `userid` (`userid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
Remove UNIQUE KEY command from this so it should look like:
--
-- Table structure for table `jos_fb_subscriptions`
--
CREATE TABLE `jos_fb_subscriptions` (
`thread` int(11) default '0',
`userid` int(11) NOT NULL default '0',
`future1` int(11) default '0',
`category` int(11) default '0',
KEY `userid` (`userid`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
.Now drop "jos_fb_subscriptions" from your database and run this backup to restore the table.
|