php forum
php mysql forum
php mysql smarty
 
Page 1 of 3 1 2 3 >
Topic Options
#315098 - 08/07/07 11:34 PM TLD 7.2 - Link Directory
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
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_";

Author - Fishtails - http://www.fish-tails.net
Updated by - Joshua Pettit - http://www.JoshuaPettit.com
Credits - Rick Baker, Gardener, Raconteur and ThreadsDev.com

Working Under - UBB.Threads Version 7.2


Attachments
2462-TLD7.2.zip (50 downloads)
Description: The Link Directory - TLD v. 7.2


_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#315104 - 08/08/07 10:23 AM Re: TLD 7.2 - Link Directory [Re: JoshPet]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25452
Loc: Texas
Thank you Josh, very appreciated thumbsup
_________________________
- Allen wavey
- What Drives You?

Top
#315107 - 08/08/07 10:39 AM Re: TLD 7.2 - Link Directory [Re: AllenAyres]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25452
Loc: Texas
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 smile
_________________________
- Allen wavey
- What Drives You?

Top
#315108 - 08/08/07 10:49 AM Re: TLD 7.2 - Link Directory [Re: AllenAyres]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25452
Loc: Texas
When accessing it the first time I am getting:

Script:
Line#:
SQL Error: Table 'threads.w3t_links_links' doesn't exist
SQL Error #: 1146
Query: SELECT lid,cat_id FROM w3t_links_links WHERE approved = '1'

I don't have it installed from the old version, so I don't have tables created yet.
_________________________
- Allen wavey
- What Drives You?

Top
#315112 - 08/08/07 04:12 PM Re: TLD 7.2 - Link Directory [Re: AllenAyres]
GEN Offline
Power User

Registered: 01/01/07
Posts: 52
Loc: UK
Same error here

frown
_________________________
GEN
Give Yourself to the Dark Side @ http://www.galacticempire.net
Give Yourself to the Geek Side @ http://www.movingimagetoys.com
"Anakin, duck!"
"What's a duck?"

Top
#315114 - 08/08/07 05:29 PM Re: TLD 7.2 - Link Directory [Re: GEN]
blaaskaak Offline
Enthusiast

Registered: 02/25/07
Posts: 304
Loc: The Netherlands
Same here, and http://themepark.nl/ubb/ubbthreads.php?ubb=links_admin&op=create_tables doesn't work also.

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)
			)


Edited by blaaskaak (08/08/07 05:31 PM)
_________________________

Top
#315119 - 08/08/07 10:50 PM Re: TLD 7.2 - Link Directory [Re: blaaskaak]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25452
Loc: Texas
hmmm...

/ubbthreads.php/ubb/links/op/links_admin

doesn't throw an error, but it doesn't do much either crazy
_________________________
- Allen wavey
- What Drives You?

Top
#315120 - 08/08/07 10:56 PM Re: TLD 7.2 - Link Directory [Re: AllenAyres]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25452
Loc: Texas
hmmmm, a good part of the issue is we didn't get a language file, so there's no text smile
_________________________
- Allen wavey
- What Drives You?

Top
#315121 - 08/08/07 11:03 PM Re: TLD 7.2 - Link Directory [Re: AllenAyres]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25452
Loc: Texas
language file added to original zip above.
_________________________
- Allen wavey
- What Drives You?

Top
#315122 - 08/08/07 11:30 PM Re: TLD 7.2 - Link Directory [Re: AllenAyres]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25452
Loc: Texas
Was this based off tld 1.5 or 2.1? Some things like the search function we added and some bug fixes look to be missing crazy
_________________________
- Allen wavey
- What Drives You?

Top
#315123 - 08/09/07 12:25 AM Re: TLD 7.2 - Link Directory [Re: AllenAyres]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
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.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#315125 - 08/09/07 12:50 AM Re: TLD 7.2 - Link Directory [Re: JoshPet]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25452
Loc: Texas
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 smile
_________________________
- Allen wavey
- What Drives You?

Top
#315552 - 09/06/07 06:57 AM Re: TLD 7.2 - Link Directory [Re: AllenAyres]
Carte Blanche Offline
Newbie

Registered: 10/08/06
Posts: 19
Loc: Auckland, NZ
Ok...so...er...what's the mod do?

Top
#315553 - 09/06/07 10:14 AM Re: TLD 7.2 - Link Directory [Re: Carte Blanche]
Gizmo Administrator Online   shocked
Wizard

Registered: 01/10/00
Posts: 5134
Loc: Portland, OR, USA
Think DMOZ, but for your UBB (if you don't know what DMOZ is, google it)
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#315554 - 09/06/07 02:36 PM Re: TLD 7.2 - Link Directory [Re: Gizmo]
blaaskaak Offline
Enthusiast

Registered: 02/25/07
Posts: 304
Loc: The Netherlands
Originally Posted By: Gizmo
(if you don't know what DMOZ is, google it)


what's google? wink
_________________________

Top
#315557 - 09/06/07 06:44 PM Re: TLD 7.2 - Link Directory [Re: blaaskaak]
Gizmo Administrator Online   shocked
Wizard

Registered: 01/10/00
Posts: 5134
Loc: Portland, OR, USA
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 wink... lol
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#315559 - 09/07/07 02:48 AM Re: TLD 7.2 - Link Directory [Re: Gizmo]
blaaskaak Offline
Enthusiast

Registered: 02/25/07
Posts: 304
Loc: The Netherlands
I'll settle for the smack on the head and live happely after smile
_________________________

Top
#315560 - 09/07/07 03:16 AM Re: TLD 7.2 - Link Directory [Re: blaaskaak]
Gizmo Administrator Online   shocked
Wizard

Registered: 01/10/00
Posts: 5134
Loc: Portland, OR, USA
Happily ever after? so you discovered the booze cabinet in the admin lounge? :x
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#315726 - 09/17/07 09:22 AM Re: TLD 7.2 - Link Directory [Re: JoshPet]
Zarzal Offline
Coder

Registered: 07/03/01
Posts: 806
Loc: Berlin, Germany
works very well, thank you!
_________________________
my forum: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de

Top
#315729 - 09/17/07 01:59 PM Re: TLD 7.2 - Link Directory [Re: Zarzal]
GEN Offline
Power User

Registered: 01/01/07
Posts: 52
Loc: UK
I couldn't get it to work with 7.2

frown
_________________________
GEN
Give Yourself to the Dark Side @ http://www.galacticempire.net
Give Yourself to the Geek Side @ http://www.movingimagetoys.com
"Anakin, duck!"
"What's a duck?"

Top
#315730 - 09/17/07 02:22 PM Re: TLD 7.2 - Link Directory [Re: GEN]
Zarzal Offline
Coder

Registered: 07/03/01
Posts: 806
Loc: Berlin, Germany
There are 2 little bugs in links.inc.php:

line 141 and line 1167 contains a double }
change it to a single }

what the first }} do .. I dont now but the second break the breadcrumb link

The same problem in links_admin.php on line 805 and links_redirect.php line 157
_________________________
my forum: http://www.dragon-clan.de
my hobby: http://www.biker-reise.de

Top
#315731 - 09/17/07 03:54 PM Re: TLD 7.2 - Link Directory [Re: Zarzal]
GEN Offline
Power User

Registered: 01/01/07
Posts: 52
Loc: UK
I tried running Blasskaaks query

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)
			)


to create the table - as I get this:

We encountered a problem. The reason reported was

Script:
Line#:
SQL Error: Table 'galactiF.ubbt_links_links' doesn't exist
SQL Error #: 1146
Query: SELECT lid,cat_id FROM ubbt_links_links WHERE approved = '1'


but it says :

#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
_________________________
GEN
Give Yourself to the Dark Side @ http://www.galacticempire.net
Give Yourself to the Geek Side @ http://www.movingimagetoys.com
"Anakin, duck!"
"What's a duck?"

Top
#315802 - 09/24/07 03:02 PM Re: TLD 7.2 - Link Directory [Re: GEN]
GEN Offline
Power User

Registered: 01/01/07
Posts: 52
Loc: UK
Anyone know what I'm doing wrong to get this error ? I REALLY want to get this working.

smile
_________________________
GEN
Give Yourself to the Dark Side @ http://www.galacticempire.net
Give Yourself to the Geek Side @ http://www.movingimagetoys.com
"Anakin, duck!"
"What's a duck?"

Top
#315810 - 09/24/07 11:54 PM Re: TLD 7.2 - Link Directory [Re: Zarzal]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25452
Loc: Texas
Originally Posted By: Zarzal
There are 2 little bugs in links.inc.php:


If I remember right there's a good number of little bugs here and there in the code this is based on. If I ever get time I'll look at updating it.
_________________________
- Allen wavey
- What Drives You?

Top
#315811 - 09/24/07 11:55 PM Re: TLD 7.2 - Link Directory [Re: GEN]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25452
Loc: Texas
Originally Posted By: GEN
Anyone know what I'm doing wrong to get this error ? I REALLY want to get this working.

smile


?? What platform are you running on?
_________________________
- Allen wavey
- What Drives You?

Top
#315813 - 09/25/07 12:06 AM Re: TLD 7.2 - Link Directory [Re: AllenAyres]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25452
Loc: Texas
It looks like you didn't create all the tables, or they are of a different prefix
_________________________
- Allen wavey
- What Drives You?

Top
#315830 - 09/25/07 12:18 PM Re: TLD 7.2 - Link Directory [Re: AllenAyres]
GEN Offline
Power User

Registered: 01/01/07
Posts: 52
Loc: UK
Oh, the prefix is the same.

It's just every time I run the query to create the tables it doesn't do it in phpMyAdmin
_________________________
GEN
Give Yourself to the Dark Side @ http://www.galacticempire.net
Give Yourself to the Geek Side @ http://www.movingimagetoys.com
"Anakin, duck!"
"What's a duck?"

Top
#315831 - 09/25/07 01:21 PM Re: TLD 7.2 - Link Directory [Re: GEN]
mikey81 Offline
Lurker

Registered: 09/20/07
Posts: 5
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
(

cat_id int(11) NOT NULL auto_inc' at line 21



Edited by mikey81 (09/25/07 01:22 PM)

Top
#315833 - 09/25/07 03:13 PM Re: TLD 7.2 - Link Directory [Re: mikey81]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25452
Loc: Texas
Can you try running each create table on its own and see which one it chokes on?
_________________________
- Allen wavey
- What Drives You?

Top
#315834 - 09/25/07 03:30 PM Re: TLD 7.2 - Link Directory [Re: AllenAyres]
blaaskaak Offline
Enthusiast

Registered: 02/25/07
Posts: 304
Loc: The Netherlands
Originally Posted By: AllenAyres
It looks like you didn't create all the tables, or they are of a different prefix


I did rename the w3t prefix to ubbt, I also updated the code itselve to use that new prefix.
_________________________

Top
#315836 - 09/25/07 05:37 PM Re: TLD 7.2 - Link Directory [Re: blaaskaak]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25452
Loc: Texas
Are you having the same problems? Did anyone get it to install correctly?
_________________________
- Allen wavey
- What Drives You?

Top
#315837 - 09/25/07 05:39 PM Re: TLD 7.2 - Link Directory [Re: AllenAyres]
blaaskaak Offline
Enthusiast

Registered: 02/25/07
Posts: 304
Loc: The Netherlands
I got to install correctly...

I changed the default prefix to ubbt_
created the tables manually
_________________________

Top
#315861 - 09/26/07 03:00 AM Re: TLD 7.2 - Link Directory [Re: AllenAyres]
mikey81 Offline
Lurker

Registered: 09/20/07
Posts: 5
Originally Posted By: AllenAyres
Can you try running each create table on its own and see which one it chokes on?


Seperately the tables create with no problems!?!

Top
#315862 - 09/26/07 03:20 AM Re: TLD 7.2 - Link Directory [Re: mikey81]
GEN Offline
Power User

Registered: 01/01/07
Posts: 52
Loc: UK
Same here.

Now all I need to do is get some of the display issues sorted.
_________________________
GEN
Give Yourself to the Dark Side @ http://www.galacticempire.net
Give Yourself to the Geek Side @ http://www.movingimagetoys.com
"Anakin, duck!"
"What's a duck?"

Top
#315865 - 09/26/07 07:49 AM Re: TLD 7.2 - Link Directory [Re: GEN]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25452
Loc: Texas
Good, if I get time I'll look at it later this week, it really needs a few issues worked out smile
_________________________
- Allen wavey
- What Drives You?

Top
#315866 - 09/26/07 08:16 AM Re: TLD 7.2 - Link Directory [Re: AllenAyres]
GEN Offline
Power User

Registered: 01/01/07
Posts: 52
Loc: UK
smile
_________________________
GEN
Give Yourself to the Dark Side @ http://www.galacticempire.net
Give Yourself to the Geek Side @ http://www.movingimagetoys.com
"Anakin, duck!"
"What's a duck?"

Top
#315868 - 09/26/07 10:20 AM