Edit Note: I updated the file to reflect Omegatrons html corrections. Thanks Chuck. Sorry it took so long. Note: Language files are not complete for this release.
BETA Version 2 - New Features:
Search Links - search in/for links
Popular Links - based on number of hits - admin chooses how many hits before becoming popular
Newest Links - Admin chooses number of links to display on latest links page
Ratings and top rated - allow member only or anyone to rate a script. Top Rated views - admin chooses number to display
My Favorites - members 'bookmark' links from the database in their Favorite Links
Admin receives email when link is submitted
Admin submissions are automatically approved
After submission a link to add another is provided
Categories may be edited
Main categories may be sorted in the order you want
Instructions and Configuration:
Open links.php in a text editor of your choice. Note pad does just fine. On or around line 38 find the following variables and set the the way you want:
// Define a few config variables
$CatColumns = 4; // number of columns for category display from 1 to infinity / suggested number is 4
$AllowAnon = 'yes'; // allow anonymous to suggest links? yes or no
$popular = 10; // how many hits before a site is considered popular
$newest_links = 10; // how many new links to display in most recent links
Once you have these defined, upload the files to your Ubbthreads directory. BACK UP your files and database. ( If you are upgrading from v1.o, it is suggested that you delete all TLD v1.0 files and upload the new ones. There are numerous changes and new files, as well as some files (a few template files) have been deleted. The database has also changed. )
Add a link to your menu to go to
http://yourdomain.com/your_threads_install/links.php . Be sure you are logged in as admin. There will be a link to the links admin script. When clicked on you will find links to either upgrade from Beta 1.0 or new install. Click the appropriate link. If everything goes well, you are now ready to create categories and add links. That's it. Any problems, bugs found or fixed, or suggestions please use this thread. Thanks.
Basically, the sequence of adding links is as follows.
Admin creates a category
A user browses to the category he/she wishes to add their link and clicks the Submit Link button from that category.
When the user submits the link, the script will check to make sure that the form is filled out completely, that the email address is of the correct format, that the url is of the correct format, and validates the url to make sure it is not a dead link. If everything is OK, then the link is entered into the database (but can not be seen in the links directory yet), otherwise the submitter gets an error message.
After the link has been submitted, the admin has to approve the submission. The Admin can check the link for appropriate content for their link content requirements / rules, if any.
The admin adds the link, edits the link or deletes it from the database.
Users can now see the link in the directory if it was added.
Enjoy TLD, and please report bugs or problems in this thread, as well as any suggestions or comments. Thanks. The other TLD thread may be locked or deleted.
Mark
Note:
Versions:
(v1.5 - released 5/26/2003) - Original release by Mark
(v1.8 - released 8/23/2004) - Updated release with bugfixes and features added by ekempter
(v1.8.1 - released 10/10/2004) - Updated release with bugfixes for 6.5 by josh
(v1.8.3 - released 07/20/2005) - a few small bugfixes
(v2 - released 08/01/2005) - search function added by ekempter + a few small bugfixes

(v2.1 - Released 12/04/2005) - updated to work with 6.5.2 and a few small bugfixes
