This is originally Fishtails TLD Link Directory Addon, so I take no credit for the scripts. All credit and rights go to fishtails. I simply "wrapped" the scripts to function within UBB7 so that anyone who used this mod in the past, can add it again, and presuming you still have your old links tables, all your old links will still be there.
To Install images - goes in images/links scripts - go in /scripts directory templates - go in /templates/default directory
Once installed, you can add a link to your menubar for /ubbthreads.php?ubb=links for a link to the Link Directory. If you are installing for the first time, you can click the "Admin" link at the bottom of the link directory area and create the tables.
If you had this installed under the older version of UBB.Threads (6 series) then it presumes your w3t_links_links, w3t_links_categories, and w3t_links_favorites are still present in your database, and still have the w3t_ table prefix.
If the table prefix is different, then you'll see a spot in each of the 3 scripts to edit this: $config['tbprefix'] = "w3t_";
Hey Josh, there were a good number of mac files in there (ds store, etc.). I removed them and uploaded the replacement zip. If I broke something, let me know
The queries in the script are wrong also, atleast I had to rework them manually to be able to create the databases.
For those who want to play, I executed this in phpmyadmin (I did change the table prefix to ubbt_:
Code
CREATE TABLE ubbt_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) )
CREATE TABLE ubbt_links_categories (
cat_id int(11) NOT NULL auto_increment, parent_id int(11) default NULL, title varchar(50) NOT NULL default '', cat_desc varchar(60) default NULL, cat_order tinyint(10) NOT NULL default '0', PRIMARY KEY (cat_id) )
CREATE TABLE ubbt_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) )
Thanks AA. This was based off whatever my client was running - which in looking now, I see was 1.5. I assumed it was the latest - but guess not. Doah. Good catch on the language file.
ok, thanks. There were quite a few changes by you, myself, omegatron, ekempter, gardner, id242 and a few others between Mark's release in may '03 and our last one in 12/05 - some were to just update to work with the different 6-series threads, others were to fix a lotta bugs and add some nice features. I may look at it at some point. If I do I need to write an importer for the old classic links script, it imported from the OLD gossamer threads links script
If you don't know what Google is, you've obviously been living under a Rock, so yahoo it...
If you don't know what yahoo is, you're obviously highly handicapped and should ask your parental guardian to smack you in the head and how to live life online ... lol
CREATE TABLE ubbt_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) )
CREATE TABLE ubbt_links_categories (
cat_id int(11) NOT NULL auto_increment, parent_id int(11) default NULL, title varchar(50) NOT NULL default '', cat_desc varchar(60) default NULL, cat_order tinyint(10) NOT NULL default '0', PRIMARY KEY (cat_id) )
CREATE TABLE ubbt_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) )
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'CREATE TABLE ubbt_links_categories
I have allmost the same problem. Centos 5.0 latest mysql.
SQL-query:
CREATE TABLE ubbt_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', memberchar( 2 ) NOT NULL default '', linkratingsummary double( 6, 4 ) NOT NULL default '0.0000', totalvotes int( 11 ) NOT NULL default '0', PRIMARY KEY ( lid ) ) CREATE TABLE ubbt_links_categories( cat_id int( 11 ) NOT NULL AUTO_INCREMENT , parent_id int( 11 ) default NULL , title varchar( 50 ) NOT NULL default '', cat_desc varchar( 60 ) default NULL , cat_order tinyint( 10 ) NOT NULL default '0', PRIMARY KEY ( cat_id ) ) CREATE TABLE ubbt_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 ) )
MySQL retourneerde:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'CREATE TABLE ubbt_links_categories (
I take a closer look to TLD running under UBB.threads 7.3 I found some layout problems if you use sidebars. I try to fix it and here you can download my fix. I split the template in links and links_admin.
I am making some headway in updating this to use more of 7.3's features (like SEO cats and links) and completely 'wordletizing' it. It will be a few days before I have it completed for testing tho... headed to Austin shortly and I need to get some work done here
I take it no-one has actually run this script? If so, are you able to actually add links?
When I submit the script to add the link it refreshes the page back to the submit link page - this time with all fields blank *except* now the title you added for the previously submitted site is now sitting in the category box.
Not counting the install bug (it won't install without creating the tables manually), this is still pretty buggy. Will need some more work before it's ready for public use.
Zarzal, do you mind attaching the links.inc.php file you are using? I am having a few issues with the submission. And if you can, can you see about turning on the .html option just for a minute to test adding one site to see if that's the issue? Turning the .html extension off didn't fix the issue on my site.
Thank you - I get the same problem like I mentioned before. I am using mysql and php 5+. I have no idea what the problem might be. If you look at the form for submitting the info there's something odd going on with the categories, there's several options in there for categories. I'm going to work on it and see if I can get it cleaned up.
Part of the issue is "title" is used for the name of the site being submitted and the name of the category being submitted to. Need to update them to cat_title and url_title.
Hmmm i just installed this, manually put in the tables as noted on the past posts, and it worked. Awesome... I dont notice any issues yet. Running version 7.1 threads still though. but at least this is working now for our site.
I loved this mod years ago, and so glad to have it back again! Thanks for all your work on this guys!
I just encounter a little problem on my site. My mods seems not to be able to click the green LED to edit a link in the DB. They get a message that they must be admin to do this. I cannot find the check. I guess I must just change a little thing to allow mods to edit the links.
But the link dont help you because you are not a mod If you register I can change it if you like.
I guess its a missing compare of the rights. it must be administratos && moderatrors or something like this.
In links.inc starting line 109 I found this:
Code
// Set links admin link if (($user['USER_MEMBERSHIP_LEVEL'] != 'Administrator') && ($user['USER_MEMBERSHIP_LEVEL'] != 'Moderator')) { $links_admin_delete_link = ""; // Don't give option to delete a link } else { $links_admin_link = " * <a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=links_admin&op=links_admin\">{$ubbt_lang['LINKS_ADMIN']}</a>"; // Provide a link to the links admin $links_admin_delete_link = " * <a href=\"{$config['BASE_URL']}/ubbthreads.php?ubb=links_admin&op=delete_link&lid={$row[lid]}\">{$ubbt_lang['LINKS_ADMIN_DELETE']}</a> "; }
I believe Fishtails has it on his site still. It is kinda hidden if not registered. But you can see it at http://www.firstcoastangler.com/forum/ubbthreads.php?ubb=links Matter of fact try this topic HERE It is a more current topic and it has a demo link that is more active. I just noticed fishtails is using this version(ubb links) in lieu of the tld flavor
Okay Allen I am confused now. What Mod is really the most current. ubb links or this tld version I can't find a demo link on this post. At least not the topic start post.
The other one is much more current, Josh based this version off the fishtails version and missed out on quite a bit of the updates - plus this one states it's for threads 7.2, the other is for 7.3+