 |
 |
 |
 |
#248039 - 09/25/04 02:04 AM
Re: TLD Bv1.5 Released - Threads Links Directory
[Re: Luka_dup1]
|
I type Like navaho
Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
|
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.<br />If I find myself with free time, I will. But for now I'm swamed.<br /><br />To use this mod with 6.5 - I did the following.<br /><br />inks.php:<br />require ("./includes/main.inc.php");<br />require ("./languages/{$myprefs['language']}/links.php");<br /><br />links_admin.php<br />require ("./includes/main.inc.php");<br /><br />links_redirect.php<br />require ("./includes/main.inc.php"); <br /><br /><br />Then I manually created the tables using my Threads SQL interface. The following 3 queries need to be run.<br /><br />CREATE TABLE `w3t_links_categories` (<br /> `cat_id` int(11) NOT NULL auto_increment,<br /> `parent_id` int(11) default NULL,<br /> `title` varchar(50) NOT NULL default '',<br /> `cat_order` tinyint(10) NOT NULL default '0',<br /> `cat_desc` varchar(60) default NULL,<br /> PRIMARY KEY (`cat_id`)<br />) TYPE=MyISAM AUTO_INCREMENT=32 ;<br /><br /><br /><br /><br />CREATE TABLE `w3t_links_favorites` (<br /> `num` int(9) unsigned NOT NULL auto_increment,<br /> `lid` int(9) unsigned NOT NULL default '0',<br /> `uid` int(9) unsigned NOT NULL default '0',<br /> PRIMARY KEY (`num`),<br /> KEY `FAV_indx1` (`uid`)<br />) TYPE=MyISAM AUTO_INCREMENT=11 ;<br /><br /><br /><br /><br />CREATE TABLE `w3t_links_links` (<br /> `lid` int(11) NOT NULL auto_increment,<br /> `cat_id` int(11) default NULL,<br /> `approved` tinyint(4) NOT NULL default '1',<br /> `title` varchar(100) NOT NULL default '',<br /> `url` varchar(100) NOT NULL default '',<br /> `description` text NOT NULL,<br /> `date_added` int(11) unsigned NOT NULL default '0',<br /> `name` varchar(100) NOT NULL default '',<br /> `email` varchar(100) NOT NULL default '',<br /> `hits` int(11) NOT NULL default '0',<br /> `user_number` int(11) NOT NULL default '0',<br /> `member` char(2) NOT NULL default '',<br /> `linkratingsummary` double(6,4) NOT NULL default '0.0000',<br /> `totalvotes` int(11) NOT NULL default '0',<br /> PRIMARY KEY (`lid`)<br />) TYPE=MyISAM AUTO_INCREMENT=65 ;<br /><br /><br />Once you make those tweaks, and create the tables, then it should all function normally.<br /><br />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. <img src="http://www.ubbdev.com/forum/images/graemlins/smile.gif" alt="" />
|
|
Top
|
|
|
|
 |
 |
 |
 |
|
|