OK- I've put this on a couple of 6.5 forums. I don't have a "pretty" way to do it, or else I'd re-post the mod for 6.5.
If I find myself with free time, I will. But for now I'm swamed.
To use this mod with 6.5 - I did the following.
inks.php:
require ("./includes/main.inc.php");
require ("./languages/{$myprefs['language']}/links.php");
links_admin.php
require ("./includes/main.inc.php");
links_redirect.php
require ("./includes/main.inc.php");
Then I manually created the tables using my Threads SQL interface. The following 3 queries need to be run.
CREATE TABLE `w3t_links_categories` (
`cat_id` int(11) NOT NULL auto_increment,
`parent_id` int(11) default NULL,
`title` varchar(50) NOT NULL default '',
`cat_order` tinyint(10) NOT NULL default '0',
`cat_desc` varchar(60) default NULL,
PRIMARY KEY (`cat_id`)
) TYPE=MyISAM AUTO_INCREMENT=32 ;
CREATE TABLE `w3t_links_favorites` (
`num` int(9) unsigned NOT NULL auto_increment,
`lid` int(9) unsigned NOT NULL default '0',
`uid` int(9) unsigned NOT NULL default '0',
PRIMARY KEY (`num`),
KEY `FAV_indx1` (`uid`)
) TYPE=MyISAM AUTO_INCREMENT=11 ;
CREATE TABLE `w3t_links_links` (
`lid` int(11) NOT NULL auto_increment,
`cat_id` int(11) default NULL,
`approved` tinyint(4) NOT NULL default '1',
`title` varchar(100) NOT NULL default '',
`url` varchar(100) NOT NULL default '',
`description` text NOT NULL,
`date_added` int(11) unsigned NOT NULL default '0',
`name` varchar(100) NOT NULL default '',
`email` varchar(100) NOT NULL default '',
`hits` int(11) NOT NULL default '0',
`user_number` int(11) NOT NULL default '0',
`member` char(2) NOT NULL default '',
`linkratingsummary` double(6,4) NOT NULL default '0.0000',
`totalvotes` int(11) NOT NULL default '0',
PRIMARY KEY (`lid`)
) TYPE=MyISAM AUTO_INCREMENT=65 ;
Once you make those tweaks, and create the tables, then it should all function normally.
Probably wouldn't be difficult to figure out how to allow the admin script by the SQL error on initial install. Or create a "createlinktable.php" script which you could run first and then delete it. But the above works just fine.
